/* =========================================================
   Islamic E-Learning School (ILS)
   Shared stylesheet — mobile-first, budget-Android friendly
   ========================================================= */

:root {
  --navy: #1B3A4B;
  --green: #2D4A3E;
  --gold: #E5C879;
  --cream: #F5EFE0;
  --whatsapp: #25D366;
  --danger: #E05C5C;

  --navy-soft: #234a5f;
  --green-soft: #385a4b;
  --gold-soft: #efd99c;
  --ink-muted: rgba(245, 239, 224, 0.72);
  --line: rgba(229, 200, 121, 0.22);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.22);
  --maxw: 1140px;

  --font-bn: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
  --font-en: 'Poppins', 'Lato', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-bn);
  background: var(--navy);
  color: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  /* Subtle Islamic geometric pattern at low opacity */
  background-image:
    radial-gradient(circle at 50% 0%, rgba(45, 74, 62, 0.55), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23E5C879' stroke-opacity='0.06' stroke-width='1'%3E%3Cpath d='M30 0l30 30-30 30L0 30z'/%3E%3Cpath d='M30 12l18 18-18 18-18-18z'/%3E%3Ccircle cx='30' cy='30' r='6'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 { font-family: var(--font-bn); line-height: 1.3; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

.section { padding: 56px 0; }
.section--tight { padding: 40px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.section-head h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); color: var(--gold); }
.section-head p { color: var(--ink-muted); margin-top: 10px; }

.muted { color: var(--ink-muted); }
.en-sub { font-family: var(--font-en); font-size: 0.85rem; color: var(--ink-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  font-family: var(--font-bn); text-align: center; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: #2a2410; box-shadow: var(--shadow-sm); }
.btn--gold:hover { filter: brightness(1.05); }
.btn--green { background: var(--green); color: var(--cream); border: 1px solid var(--line); }
.btn--wa { background: var(--whatsapp); color: #04340f; box-shadow: var(--shadow-sm); }
.btn--wa:hover { filter: brightness(1.04); }
.btn--ghost { background: transparent; color: var(--cream); border: 1px solid var(--line); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 28px; font-size: 1.08rem; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 58, 75, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand__mark {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800; color: #2a2410;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  font-family: var(--font-en); font-size: 1.05rem;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__bn { font-weight: 700; font-size: 0.92rem; color: var(--cream); white-space: nowrap; }
.brand__en { font-family: var(--font-en); font-size: 0.66rem; color: var(--ink-muted); white-space: nowrap; }

.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a { font-size: 0.95rem; color: var(--ink-muted); transition: color .15s; }
.nav__links a:hover, .nav__links a.active { color: var(--gold); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__wa { padding: 9px 16px; font-size: 0.9rem; }

.hamburger {
  display: none; background: transparent; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--cream);
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--cream); margin: 4px 0; transition: .2s; }

@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .28s ease; padding: 0 18px;
  }
  .nav__links.open { max-height: 340px; padding: 8px 18px 16px; }
  .nav__links a { width: 100%; padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav__links .nav__wa { display: inline-flex; margin-top: 10px; width: 100%; }
  .hamburger { display: block; }
  .nav__cta .nav__wa { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 48px; text-align: center; position: relative; }
.hero h1 { font-size: clamp(1.8rem, 6.5vw, 3rem); color: var(--cream); max-width: 18ch; margin: 0 auto; }
.hero__sub { font-size: clamp(1rem, 3.5vw, 1.2rem); color: var(--gold-soft); margin: 18px auto 6px; max-width: 40ch; }
.hero__en { margin-top: 6px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

/* ---------- Trust bar ---------- */
.trustbar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: 40px; background: rgba(0,0,0,0.18); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 12px;
}
.trustbar div { text-align: center; font-size: 0.9rem; color: var(--ink-muted); }
.trustbar .ico { font-size: 1.5rem; display: block; margin-bottom: 6px; }
@media (max-width: 640px) { .trustbar { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, rgba(45,74,62,0.55), rgba(35,74,95,0.25));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
}
.card h3 { color: var(--gold); font-size: 1.2rem; margin-bottom: 8px; }
.card .ico { font-size: 2rem; margin-bottom: 10px; }

.section--alt { background: linear-gradient(180deg, rgba(45,74,62,0.4), transparent); }

/* ---------- Course card ---------- */
.course {
  background: linear-gradient(180deg, rgba(35,74,95,0.55), rgba(27,58,75,0.4));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.course__head { padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.course__head h3 { color: var(--gold); font-size: 1.35rem; }
.course__head .en-sub { margin-top: 2px; }
.course__body { padding: 18px 22px; flex: 1; }
.course__body ul { list-style: none; margin: 0 0 16px; }
.course__body li { padding: 5px 0 5px 26px; position: relative; }
.course__body li::before { content: "✦"; color: var(--gold); position: absolute; left: 0; }
.feature-list li::before { content: "✅"; }
.course__meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 16px; }
.chip {
  background: rgba(229,200,121,0.12); border: 1px solid var(--line);
  color: var(--gold-soft); padding: 6px 12px; border-radius: 999px; font-size: 0.85rem;
}
.fee-row { display: flex; gap: 18px; flex-wrap: wrap; margin: 8px 0 4px; }
.fee-row b { color: var(--cream); }
.course__foot { padding: 0 22px 22px; }
.label-bn { font-weight: 700; color: var(--gold-soft); margin: 14px 0 6px; font-size: 0.95rem; }

/* ---------- Testimonials ---------- */
.tcard {
  background: linear-gradient(180deg, rgba(45,74,62,0.5), rgba(27,58,75,0.3));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px;
}
.tcard__top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar {
  width: 54px; height: 54px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 700; font-size: 1.25rem; color: #2a2410; font-family: var(--font-en);
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
}
.tcard__name { font-weight: 700; color: var(--cream); }
.tcard__meta { font-size: 0.82rem; color: var(--ink-muted); }
.stars { color: var(--gold); letter-spacing: 2px; margin: 10px 0; }
.tcard__quote { color: var(--cream); }
.badge {
  display: inline-block; margin-top: 14px; font-size: 0.78rem; font-weight: 700;
  background: rgba(45,74,62,0.8); border: 1px solid var(--line); color: var(--gold-soft);
  padding: 5px 12px; border-radius: 999px;
}

/* ---------- Banner CTA ---------- */
.banner {
  background: linear-gradient(135deg, var(--green), var(--green-soft));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 28px; text-align: center; box-shadow: var(--shadow);
}
.banner h2 { color: var(--cream); font-size: clamp(1.4rem, 4.5vw, 2rem); }
.banner p { color: var(--ink-muted); margin: 10px 0 22px; }

/* ---------- Contact strip ---------- */
.contact-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: rgba(0,0,0,0.2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.contact-strip .ci { text-align: center; }
.contact-strip .ci .ico { font-size: 1.5rem; }
.contact-strip .ci .lbl { font-size: 0.8rem; color: var(--ink-muted); margin: 6px 0 2px; }
.contact-strip .ci .val { font-weight: 700; color: var(--gold-soft); font-family: var(--font-en); }
@media (max-width: 760px) { .contact-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Teachers ---------- */
.team-group { margin-bottom: 30px; }
.team-group > h3 { color: var(--gold); margin-bottom: 16px; font-size: 1.15rem; }
.person {
  background: rgba(0,0,0,0.16); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px; display: flex; gap: 14px; align-items: flex-start;
}
.person .avatar { width: 46px; height: 46px; font-size: 1.05rem; }
.person__name { font-weight: 700; color: var(--cream); }
.person__role { font-size: 0.86rem; color: var(--ink-muted); }
.leaders { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 760px) { .leaders { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
.form-card {
  background: rgba(0,0,0,0.18); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.field .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(27,58,75,0.6); color: var(--cream);
  font-family: var(--font-bn); font-size: 1rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(229,200,121,0.15);
}
.field select option { color: #0f2330; }
.radio-row { display: flex; gap: 18px; }
.radio-row label { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.radio-row input { width: auto; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: var(--ink-muted); margin-top: 4px; }
.error-text { color: var(--danger); font-size: 0.82rem; margin-top: 4px; display: none; }
.field.invalid .error-text { display: block; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }

/* Fee summary box (sticky on desktop) */
.fee-box {
  background: linear-gradient(180deg, rgba(45,74,62,0.7), rgba(27,58,75,0.5));
  border: 1px solid var(--gold); border-radius: var(--radius); padding: 24px;
  position: sticky; top: 84px;
}
.fee-box h3 { color: var(--gold); margin-bottom: 14px; }
.fee-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.fee-line.total { border-bottom: none; border-top: 2px solid var(--gold); margin-top: 6px; padding-top: 14px; font-size: 1.2rem; }
.fee-line.total b { color: var(--gold); }
.fee-box .form-note { margin-top: 14px; }

/* ---------- Thank you ---------- */
.thanks { text-align: center; max-width: 640px; margin: 0 auto; padding: 30px 0; }
.check-circle {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 24px;
  background: rgba(37,211,102,0.15); border: 3px solid var(--whatsapp);
  display: grid; place-items: center; font-size: 3rem; color: var(--whatsapp);
}
.steps { text-align: right; background: rgba(0,0,0,0.18); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; margin: 26px 0; }
.steps ol { padding-right: 20px; }
.steps li { padding: 8px 0; }
.wa-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 22px 0; }
.share-row { display: flex; gap: 12px; justify-content: center; margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { background: rgba(0,0,0,0.28); border-top: 1px solid var(--line); padding: 44px 0 28px; margin-top: 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 22px; text-align: center; } }
.footer h4 { color: var(--gold); margin-bottom: 12px; font-size: 1rem; }
.footer a, .footer p { color: var(--ink-muted); font-size: 0.92rem; display: block; padding: 3px 0; }
.footer a:hover { color: var(--gold); }
.footer .sadqa { color: var(--gold-soft); font-weight: 600; margin-top: 10px; }
.footer__bottom { text-align: center; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px;
  font-size: 0.85rem; color: var(--ink-muted); font-family: var(--font-en); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  font-size: 1.7rem; animation: wapulse 2.4s infinite;
}
@keyframes wapulse { 0%,100% { box-shadow: 0 8px 24px rgba(0,0,0,0.4); } 50% { box-shadow: 0 8px 30px rgba(37,211,102,0.55); } }

/* ---------- Page header (interior pages) ---------- */
.page-header { text-align: center; padding: 48px 0 8px; }
.page-header h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); color: var(--gold); }
.page-header p { color: var(--ink-muted); max-width: 640px; margin: 12px auto 0; }

.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.link-more { color: var(--gold); font-weight: 700; display: inline-block; margin-top: 8px; }
