/* ============================================================
   Islamic E-Learning School — shared stylesheet
   Palette: navy #1B3A4B · green #2D4A3E · gold #E5C879
           text #F5EFE0 · whatsapp #25D366 · danger #E05C5C
   ============================================================ */

:root {
  --bg: #1B3A4B;
  --bg-2: #2D4A3E;
  --bg-card: rgba(245, 239, 224, 0.05);
  --bg-card-hover: rgba(245, 239, 224, 0.09);
  --border: rgba(229, 200, 121, 0.22);
  --gold: #E5C879;
  --gold-dark: #c9a94f;
  --text: #F5EFE0;
  --text-dim: rgba(245, 239, 224, 0.75);
  --wa: #25D366;
  --danger: #E05C5C;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --font-bn: "Hind Siliguri", "Noto Sans Bengali", sans-serif;
  --font-en: "Poppins", "Lato", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-bn);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; }

.en { font-family: var(--font-en); }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--bg);
  padding: 10px 18px; border-radius: 0 0 10px 0;
  font-weight: 600; z-index: 200;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Layout helpers ---------- */
.container { width: min(1120px, 92%); margin-inline: auto; }

.section { padding: 64px 0; }
.section-alt { background: var(--bg-2); }

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  text-align: center;
  margin-bottom: 8px;
  color: var(--gold);
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-gold { background: var(--gold); color: #17303f; }
.btn-gold:hover { background: #efd489; }

.btn-green { background: var(--wa); color: #06301a; }
.btn-green:hover { background: #3ee07a; }

.btn-outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: rgba(229, 200, 121, 0.12); }

.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(27, 58, 75, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3e2ab, var(--gold) 60%, var(--gold-dark));
  display: grid; place-items: center;
  color: #17303f; font-weight: 800; font-size: 1.05rem;
  font-family: var(--font-en);
}
img.brand-logo {
  object-fit: cover;
  background: #fff;
  border: 2px solid var(--gold);
}
.brand-name { line-height: 1.25; }
.brand-name .bn { display: block; font-weight: 700; color: var(--text); font-size: 1rem; }
.brand-name .en { display: block; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--gold); text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-menu a { color: var(--text); font-weight: 500; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--gold); text-decoration: none; }
.nav-menu a[aria-current="page"] { border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

.nav-cta { white-space: nowrap; padding: 10px 20px; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  background: none; border: 2px solid var(--border);
  border-radius: 10px; padding: 8px 10px;
  color: var(--text); font-size: 1.3rem; line-height: 1;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { text-align: center; }
  .nav-menu a { display: block; padding: 14px; }
  .nav-menu a[aria-current="page"] { border-bottom: none; background: rgba(229, 200, 121, 0.08); }
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23E5C879' stroke-width='1'%3E%3Cpath d='M48 6l12 30 30 12-30 12-12 30-12-30-30-12 30-12z'/%3E%3Ccircle cx='48' cy='48' r='10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 {
  font-size: clamp(1.7rem, 5vw, 2.9rem);
  max-width: 820px; margin: 0 auto 18px;
}
.hero .sub {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--text-dim);
  max-width: 680px; margin: 0 auto 10px;
}
.hero .en-line {
  font-family: var(--font-en);
  font-size: 0.92rem; letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--bg-2); border-block: 1px solid var(--border); }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; padding: 22px 0; text-align: center;
}
.trust-item { font-weight: 600; font-size: 0.98rem; }
.trust-item .ico { display: block; font-size: 1.5rem; margin-bottom: 4px; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; } }

/* ---------- Cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 860px) { .cards-3, .cards-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.card:hover { background: var(--bg-card-hover); transform: translateY(-3px); }
.card h3 { color: var(--gold); margin-bottom: 10px; font-size: 1.25rem; }
.card .en-sub { font-family: var(--font-en); font-size: 0.95rem; color: var(--text-dim); }

/* ---------- Course cards ---------- */
.course-card { display: flex; flex-direction: column; }
.course-card .badge {
  align-self: flex-start;
  background: rgba(229, 200, 121, 0.14);
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 700;
  padding: 3px 14px; margin-bottom: 14px;
}
.course-card ul { list-style: none; margin: 12px 0 18px; }
.course-card ul li { padding: 5px 0 5px 28px; position: relative; }
.course-card ul li::before {
  content: "◆"; position: absolute; left: 4px;
  color: var(--gold); font-size: 0.7rem; top: 11px;
}
.course-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 10px; padding: 16px 18px;
  margin-bottom: 18px; font-size: 0.95rem;
}
.course-meta dt { color: var(--gold); font-weight: 600; font-size: 0.82rem; }
.course-meta dd { font-weight: 600; }
.course-fee { font-size: 1.15rem; font-weight: 800; color: var(--gold); margin-bottom: 18px; }
.course-fee small { display: block; font-weight: 500; color: var(--text-dim); font-size: 0.85rem; }
.course-card .btn { margin-top: auto; }

.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.feature-tags span {
  font-size: 0.8rem; font-weight: 600;
  background: rgba(45, 74, 62, 0.65);
  border: 1px solid rgba(245, 239, 224, 0.16);
  border-radius: 999px; padding: 4px 12px;
}

/* ---------- Teachers ---------- */
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .people-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .people-grid { grid-template-columns: 1fr; } }

.person { text-align: center; }
.person .avatar {
  width: 84px; height: 84px; margin: 0 auto 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3e2ab, var(--gold) 65%, var(--gold-dark));
  color: #17303f; font-weight: 800; font-size: 1.6rem;
  display: grid; place-items: center;
  font-family: var(--font-en);
}
.person h3 { font-size: 1.1rem; color: var(--text); }
.person .role { color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.person .detail { color: var(--text-dim); font-size: 0.88rem; margin-top: 4px; }

/* ---------- Testimonials ---------- */
.testimonial { display: flex; flex-direction: column; gap: 14px; }
.testimonial .t-head { display: flex; align-items: center; gap: 14px; }
.testimonial .avatar {
  width: 56px; height: 56px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3e2ab, var(--gold) 65%, var(--gold-dark));
  color: #17303f; font-weight: 800; display: grid; place-items: center;
  font-family: var(--font-en);
}
.testimonial .t-name { font-weight: 700; }
.testimonial .t-city { color: var(--text-dim); font-size: 0.88rem; }
.testimonial .stars { color: var(--gold); letter-spacing: 3px; }
.testimonial .t-badge {
  align-self: flex-start;
  font-size: 0.78rem; font-weight: 700;
  background: rgba(37, 211, 102, 0.14); color: #8fe8b5;
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 999px; padding: 2px 12px;
}
.testimonial blockquote { color: var(--text-dim); font-style: italic; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-2), #24413a);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  padding: 48px 28px;
}
.cta-banner h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--gold); margin-bottom: 10px; }
.cta-banner p { color: var(--text-dim); margin-bottom: 24px; }

/* ---------- Contact ---------- */
.contact-strip { border-block: 1px solid var(--border); }
.contact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; padding: 30px 0; text-align: center; font-size: 0.95rem;
}
.contact-grid .label { color: var(--gold); font-weight: 700; font-size: 0.82rem; display: block; }
.contact-grid a { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-form { max-width: 560px; margin: 0 auto; display: grid; gap: 16px; }
.contact-form label { font-weight: 600; display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 13px 16px;
  font-family: inherit; font-size: 1rem;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(245, 239, 224, 0.4); }
.form-note { font-size: 0.88rem; color: var(--text-dim); text-align: center; }

.info-list { list-style: none; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: baseline; }
.info-list .label { color: var(--gold); font-weight: 700; min-width: 150px; flex: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: #142d3b;
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--gold); margin-bottom: 12px; font-size: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--gold); }
.footer-sadaqah {
  text-align: center; color: var(--gold);
  font-weight: 600; margin-bottom: 14px;
}
.footer-copy { text-align: center; color: var(--text-dim); font-size: 0.85rem; }

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}
.wa-fab:hover { transform: scale(1.08); text-decoration: none; }
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
