/* =========================================================
   Albaseerah Institute — Design System
   Deep gold + white + warm charcoal. Elegant, premium, calm.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600;700&family=Amiri:wght@400;700&display=swap');

:root{
  /* ---- Brand palette ---- */
  --ink:            #1B1712;   /* warm charcoal-black, primary text */
  --ink-soft:       #4A443C;   /* secondary text */
  --ink-faint:      #756D63;   /* tertiary / meta text — darkened from #8A8175 for WCAG AA on small text */
  --paper:          #FDFBF7;   /* warm white background */
  --paper-alt:      #F6F1E7;   /* deeper cream section background */
  --line:           #E7DFCE;   /* hairline borders on paper */
  --line-soft:      #EFE9DB;

  --gold:           #A8791E;   /* primary accent — refined deep gold */
  --gold-btn:       #8E6619;   /* gold used as a solid background behind white/light text — darkened from --gold to meet WCAG AA (4.5:1) contrast; --gold itself stays lighter for icons/borders/decorative use where text contrast isn't a factor */
  --gold-deep:      #7C5A16;   /* pressed / shadow gold */
  --gold-bright:    #C9963A;   /* lighter gold for small highlights */
  --gold-tint:      #F3E7CB;   /* pale gold wash for backgrounds */
  --gold-tint-2:    #FBF4E3;

  --on-dark:        #F6EEDC;   /* text on charcoal */
  --on-dark-soft:   #C9BEA8;

  /* ---- Type ---- */
  --serif: 'Fraunces', 'Georgia', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --arabic:'Amiri', 'Traditional Arabic', serif;

  /* ---- Radius / shadow (used sparingly) ---- */
  --r-sm: 3px;
  --r-md: 6px;
  --shadow-1: 0 1px 2px rgba(27,23,18,0.05), 0 8px 24px -12px rgba(27,23,18,0.12);
  --shadow-2: 0 2px 4px rgba(27,23,18,0.06), 0 20px 40px -16px rgba(27,23,18,0.18);

  --container: 1180px;

  /* Rub el-hizb inspired 8-point star lattice, built from two overlapping
     squares — used as a very subtle background texture, never decoration
     for its own sake. */
  --pattern-gold: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='84'%20height='84'%3E%3Cg%20fill='none'%20stroke='%23A8791E'%20stroke-width='1'%3E%3Crect%20x='21'%20y='21'%20width='42'%20height='42'/%3E%3Crect%20x='21'%20y='21'%20width='42'%20height='42'%20transform='rotate(45%2042%2042)'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-dark: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='84'%20height='84'%3E%3Cg%20fill='none'%20stroke='%23F6EEDC'%20stroke-width='1'%3E%3Crect%20x='21'%20y='21'%20width='42'%20height='42'/%3E%3Crect%20x='21'%20y='21'%20width='42'%20height='42'%20transform='rotate(45%2042%2042)'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html, body{ margin:0; padding:0; }

body{
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }

::selection{ background: var(--gold-tint); color: var(--ink); }

:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link{
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 999;
  background: var(--ink);
  color: var(--on-dark);
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus{
  top: 12px;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------------------------------------------------
   Typography
   --------------------------------------------------------- */
h1, h2, h3, h4{
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

.h-display{
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.h-section{
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 500;
}

.h-card{
  font-size: 1.3rem;
  font-weight: 500;
}

.eyebrow{
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.lede{
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 46em;
}

.arabic{
  font-family: var(--arabic);
  direction: rtl;
  color: var(--gold-deep);
  font-size: 1.5rem;
  line-height: 1.9;
}

p{ margin: 0 0 1em; color: var(--ink-soft); }
p:last-child{ margin-bottom: 0; }

.section-intro{
  max-width: 640px;
  margin: 0 0 3rem;
}
.section-intro.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-intro h2{ margin-top: 0.6rem; }
.section-intro p{ margin-top: 0.9rem; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.95em 1.7em;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn-gold{
  background: var(--gold-btn);
  color: var(--paper);
  border-color: var(--gold-btn);
}
.btn-gold:hover{ background: var(--gold-deep); border-color: var(--gold-deep); }

.btn-dark{
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
}
.btn-dark:hover{ background: #322A20; }

.btn-outline{
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover{ background: var(--ink); color: var(--on-dark); }

.btn-outline-light{
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(246,238,220,0.45);
}
.btn-outline-light:hover{ background: rgba(246,238,220,0.1); border-color: var(--on-dark); }

.btn-ghost{
  background: transparent;
  color: var(--gold-deep);
  padding: 0.4em 0;
  font-weight: 600;
  border: none;
}
.btn-ghost::after{
  content: "";
  display: inline-block;
  width: 16px; height: 1px;
  background: currentColor;
  margin-left: 8px;
  transition: width .18s ease;
}
.btn-ghost:hover::after{ width: 26px; }

.btn-row{ display:flex; flex-wrap:wrap; gap: 14px; align-items:center; }

/* ---------------------------------------------------------
   Header / Navigation
   --------------------------------------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,251,247,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark{
  width: 36px; height: 44px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}
.brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.brand-name{
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink);
}
.brand-tag{
  font-size: 0.72rem;
  color: var(--gold-deep);
  letter-spacing: 0.01em;
}
.brand-reg-header{
  font-size: 0.66rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  margin-top: 1px;
}
.brand-reg{
  font-size: 0.7rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.footer-brand .brand-reg{ color: var(--on-dark-soft); }

.main-nav{
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a{
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color .15s ease;
}
.main-nav a:hover{ color: var(--ink); }
.main-nav a.active{ color: var(--ink); }
.main-nav a.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-6px;
  height:2px; background: var(--gold);
}

.header-actions{ display:flex; align-items:center; gap:12px; }
.header-actions .btn{ padding: 0.7em 1.3em; font-size: 0.88rem; }

.nav-toggle{
  display:none;
  background:none;
  border:1px solid var(--line);
  border-radius: var(--r-sm);
  width:42px; height:42px;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:"";
  display:block;
  width:18px; height:2px;
  background: var(--ink);
  position:relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }

.mobile-panel{
  display:none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--paper);
}
.mobile-panel.open{ display:block; }
.mobile-panel-inner{
  padding: 20px 28px 40px;
  height: 100%;
  overflow-y: auto;
  display:flex;
  flex-direction:column;
}
.mobile-panel-head{
  display:flex; align-items:center; justify-content:space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.mobile-close{
  background:none; border:1px solid var(--line); border-radius:var(--r-sm);
  width:42px; height:42px; cursor:pointer; position:relative;
}
.mobile-close::before, .mobile-close::after{
  content:""; position:absolute; left:50%; top:50%;
  width:16px; height:2px; background:var(--ink);
}
.mobile-close::before{ transform: translate(-50%,-50%) rotate(45deg); }
.mobile-close::after{ transform: translate(-50%,-50%) rotate(-45deg); }
.mobile-tagline{
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gold-deep);
  margin: 0 0 8px;
}
.mobile-reg{
  font-size: 0.76rem;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
  margin: 0 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-links{ display:flex; flex-direction:column; }
.mobile-links a{
  font-family: var(--serif);
  font-size: 1.5rem;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.mobile-links-secondary{ display:flex; flex-direction:column; margin-top:4px; }
.mobile-links-secondary a{
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-deep);
  padding: 14px 0;
}
.mobile-cta{ margin-top: 20px; display:flex; flex-direction:column; gap:12px; }
.mobile-cta .btn{ width:100%; }

body.nav-open{ overflow:hidden; }

@media (max-width: 900px){
  .main-nav{ display:none; }
  .header-actions .btn-outline{ display:none; }
  .nav-toggle{ display:flex; }
  .brand-reg-header{ display:none; }
}
@media (max-width: 560px){
  .header-actions span.hide-mobile{ display:none; }
  .brand-tag{ display:none; }
  .header-inner{ padding: 14px 20px; gap:12px; }
  .brand-name{ font-size: 1.02rem; }
  .header-actions .btn-gold{ padding: 0.65em 1em; font-size: 0.82rem; }
}

/* ---------------------------------------------------------
   Islamic geometric pattern helpers
   --------------------------------------------------------- */
.pattern-wash{
  position:absolute;
  inset:0;
  pointer-events:none;
  background-repeat: repeat;
}
.pattern-gold  { background-image: var(--pattern-gold); opacity: 0.16; }
.pattern-dark  { background-image: var(--pattern-dark); opacity: 0.10; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero{
  position: relative;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 82% 18%, rgba(201,150,58,0.16), transparent 45%),
    linear-gradient(rgba(20,17,13,0.94), rgba(20,17,13,0.94)),
    url("../assets/hero-image-mobile.jpg");
  background-size: auto, auto, cover;
  background-position: center, center, center 30%;
  background-repeat: no-repeat, no-repeat, no-repeat;
  color: var(--on-dark);
  overflow: hidden;
}
/* Larger source only requested by viewports wide enough to need it —
   phones never download the heavier desktop image. */
@media (min-width: 701px){
  .hero{
    background-image:
      radial-gradient(circle at 82% 18%, rgba(201,150,58,0.16), transparent 45%),
      linear-gradient(rgba(20,17,13,0.94), rgba(20,17,13,0.94)),
      url("../assets/hero-image.jpg");
  }
}
.hero-inner{
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px 28px 0;
}
.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:0.82rem;
  font-weight:600;
  color: var(--gold-bright);
  border: 1px solid rgba(201,150,58,0.4);
  background: rgba(201,150,58,0.1);
  padding: 7px 16px 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
  width: fit-content;
}
.hero-kicker svg{ width:14px; height:14px; }

.hero h1{
  color: var(--on-dark);
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  max-width: 18ch;
}
.hero h1 em{
  font-style: normal;
  color: var(--gold-bright);
}
.hero-lede{
  margin-top: 22px;
  font-size: 1.1rem;
  color: var(--on-dark-soft);
  max-width: 44em;
  line-height: 1.7;
}
.hero-cta{ margin-top: 34px; }

.hero-stats{
  margin-top: 60px;
  padding: 32px 0;
  border-top: 1px solid rgba(246,238,220,0.16);
  display: flex;
  flex-wrap: wrap;
}
.hero-stats > div{
  flex: 1;
  min-width: 130px;
  text-align: center;
  position: relative;
  padding: 0 20px;
}
.hero-stats > div:not(:last-child)::after{
  content:"";
  position:absolute;
  right:0; top:50%;
  transform: translateY(-50%);
  height: 60%;
  width: 1px;
  background: rgba(246,238,220,0.16);
}
.hero-stats svg{ width: 26px; height: 26px; color: var(--gold-bright); margin: 0 auto 10px; display:block; }
.stat-num{
  font-family: var(--serif);
  font-size: 1.9rem;
  color: #FFFFFF;
  font-weight: 500;
}
.stat-label{
  font-size: 0.84rem;
  color: #FFFFFF;
  margin-top: 2px;
}

@media (max-width: 700px){
  .hero-inner{ padding: 64px 22px 0; }
  .hero-kicker{ font-size: 0.7rem; padding: 6px 12px 6px 11px; margin-bottom: 18px; }
  .hero-kicker svg{ width: 11px; height: 11px; }
  .hero h1{ font-size: 1.9rem; max-width: none; line-height: 1.25; }
  .hero-lede{ font-size: 0.88rem; margin-top: 14px; line-height: 1.55; }
  .hero-cta{ margin-top: 22px; flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn{ width: 100%; font-size: 0.85rem; }

  .hero-stats{ margin-top: 36px; flex-wrap: nowrap; gap: 0; padding: 24px 0; }
  .hero-stats > div{ flex: 1 1 0; min-width: 0; padding: 0 6px; }
  .hero-stats svg{ width: 18px; height: 18px; margin-bottom: 6px; }
  .stat-num{ font-size: 1.1rem; }
  .stat-label{ font-size: 0.62rem; line-height: 1.25; }
}
@media (max-width: 420px){
  .hero h1{ font-size: 1.6rem; }
  .stat-num{ font-size: 0.95rem; }
  .stat-label{ font-size: 0.56rem; }
}

/* ---------------------------------------------------------
   Sections / rhythm
   --------------------------------------------------------- */
.section{ padding: 96px 0; }
.section-tight{ padding: 72px 0; }
.section-alt{ background: var(--paper-alt); }
.section-dark{ background: var(--ink); color: var(--on-dark); position:relative; overflow:hidden; }
.section-dark .section-intro p{ color: var(--on-dark-soft); }
.section-dark .eyebrow{ color: var(--gold-bright); }
.section-dark .eyebrow::before{ background: var(--gold-bright); }
.section-dark h2{ color: var(--on-dark); }

.divider{
  height:1px;
  background: var(--line);
  border:none;
  margin: 0;
}

/* ---------------------------------------------------------
   Course cards
   --------------------------------------------------------- */
.course-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.course-card{
  background: var(--paper);
  padding: 40px 34px;
  display:flex;
  flex-direction:column;
  transition: background-color .2s ease;
}
.course-card:hover{ background: var(--paper-alt); }
.course-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.course-icon{
  width: 46px; height: 46px;
  flex-shrink:0;
  color: var(--gold);
}
.course-fee{
  text-align:right;
  font-family: var(--serif);
  color: var(--gold-deep);
  font-size: 1.05rem;
  white-space: nowrap;
}
.course-fee small{
  display:block;
  font-family: var(--sans);
  font-size: 0.68rem;
  color: var(--ink-faint);
  font-weight: 500;
}
.course-card h3{ margin-bottom: 6px; }
.course-card .arabic{ font-size: 1.15rem; margin-bottom: 14px; color: var(--ink-faint); }
.course-card p{ font-size: 0.96rem; flex-grow:1; }
.course-more-btn{
  display:flex;
  align-items:center;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-deep);
  cursor: pointer;
  flex-grow: 0;
}
.course-more-chevron{
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-top: -3px;
}
.course-more-btn.open .course-more-chevron{ transform: rotate(-135deg); margin-top: 3px; }
.course-more-content{
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  flex-grow: 0;
}
.course-meta{
  display:flex;
  flex-wrap:wrap;
  gap: 8px 18px;
  margin: 18px 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.course-meta div{ font-size: 0.82rem; color: var(--ink-faint); }
.course-meta strong{ display:block; color: var(--ink-soft); font-weight:600; font-size:0.86rem; }
.course-card-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:auto;
  padding-top: 18px;
}
.course-teacher-line{
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin: 0;
  flex-grow: 0 !important;
}

/* ---- Mini teacher chips used on course listing / detail pages ---- */
.teacher-mini-row{
  display:flex;
  flex-wrap:wrap;
  gap: 16px 28px;
  margin-top: 14px;
}
.teacher-mini{
  display:flex;
  align-items:center;
  gap:12px;
}
.teacher-mini strong{ display:block; font-size:0.9rem; color:var(--ink); }
.teacher-mini span{ display:block; font-size:0.78rem; color:var(--ink-faint); }

@media (max-width: 980px){
  .course-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .course-grid{ grid-template-columns: 1fr; }
}

/* Course detail page hero strip */
.course-detail-hero{
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
}
.course-detail-grid{
  display:grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items:start;
}
.detail-fact-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px;
  box-shadow: var(--shadow-1);
}
.detail-fact{
  display:flex; justify-content:space-between; gap:16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
}
.detail-fact:first-child{ padding-top:0; }
.detail-fact:last-child{ border-bottom:none; padding-bottom:0; }
.detail-fact span:first-child{ color: var(--ink-faint); }
.detail-fact span:last-child{ color: var(--ink); font-weight:600; text-align:right; }

@media (max-width: 900px){
  .course-detail-grid{ grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   Feature / why-choose grid
   --------------------------------------------------------- */
.feature-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.feature{ border-top: 2px solid var(--gold); padding-top: 20px; }
.feature-icon{ width:34px; height:34px; color:var(--gold); margin-bottom:18px; }
.feature h3{ font-size: 1.12rem; margin-bottom:10px; }
.feature p{ font-size:0.94rem; }

@media (max-width: 980px){ .feature-grid{ grid-template-columns: repeat(2, 1fr); gap: 32px 28px; } }
@media (max-width: 560px){ .feature-grid{ grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   Teachers
   --------------------------------------------------------- */
.teacher-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.teacher-card{
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 30px 26px;
  transition: border-color .18s ease, transform .18s ease;
}
.teacher-card:hover{ border-color: var(--gold); transform: translateY(-3px); }
.teacher-avatar{
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.2rem;
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 20px;
}
.teacher-card h3{ font-size: 1.1rem; margin-bottom: 4px; }
.teacher-role{ font-size: 0.86rem; color: var(--gold-deep); font-weight:600; margin-bottom: 4px; }
.teacher-exp{ font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 6px; }
.teacher-more-btn{
  display:flex;
  align-items:center;
  gap: 6px;
  margin: 8px 0 4px;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-deep);
  cursor: pointer;
}
.teacher-more-chevron{
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-top: -3px;
}
.teacher-more-btn.open .teacher-more-chevron{ transform: rotate(-135deg); margin-top: 3px; }
.teacher-more-content{
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.teacher-bio{ font-size: 0.92rem; margin-bottom: 16px; }
.teacher-more-content .teacher-bio{ margin-top: 14px; }
.teacher-tags{ display:flex; flex-wrap:wrap; gap:6px; }
.teacher-tags span{
  font-size: 0.72rem;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}

.teacher-grid.cols-2{ grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
.teacher-grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px){
  .teacher-grid, .teacher-grid.cols-2, .teacher-grid.cols-3{ grid-template-columns: repeat(2, 1fr); max-width:none; }
}
@media (max-width: 560px){
  .teacher-grid, .teacher-grid.cols-2, .teacher-grid.cols-3{ grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   Testimonials
   --------------------------------------------------------- */
.testimonial-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.testimonial-card{
  background: var(--paper);
  padding: 36px 32px;
  display:flex;
  flex-direction:column;
}
.quote-mark{
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--gold-tint);
  line-height: 0.4;
  margin-bottom: 22px;
}
.testimonial-card p.quote{
  color: var(--ink);
  font-size: 1.02rem;
  line-height:1.7;
  flex-grow:1;
  margin-bottom: 22px;
}
.testimonial-attr{
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.testimonial-attr strong{ display:block; font-size:0.94rem; }
.testimonial-attr span{ font-size: 0.82rem; color: var(--ink-faint); }

.testimonial-grid.cols-2{ grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
@media (max-width: 980px){ .testimonial-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .testimonial-grid, .testimonial-grid.cols-2{ grid-template-columns: 1fr; max-width:none; } }

/* ---------------------------------------------------------
   CTA band
   --------------------------------------------------------- */
.cta-band{
  background: var(--ink);
  color: var(--on-dark);
  position: relative;
  overflow:hidden;
  padding: 88px 0;
  text-align:center;
}
.cta-band h2{ color: var(--on-dark); max-width: 20ch; margin: 0 auto; }
.cta-band p{ color: var(--on-dark-soft); max-width: 44ch; margin: 20px auto 36px; }
.cta-band .btn-row{ justify-content:center; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
/* ---------------------------------------------------------
   Floating WhatsApp button
   --------------------------------------------------------- */
.whatsapp-float{
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-2);
  transition: transform .2s ease, background-color .2s ease;
}
.whatsapp-float svg{ width: 30px; height: 30px; color: var(--ink); }
.whatsapp-float:hover{ transform: scale(1.07); background: var(--gold-bright); }

@media (max-width: 640px){
  .whatsapp-float{ width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .whatsapp-float svg{ width: 26px; height: 26px; }
}

@media print{
  .whatsapp-float{ display: none; }
}

.site-footer{
  background: var(--ink);
  color: var(--on-dark-soft);
  padding: 72px 0 0;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(246,238,220,0.12);
}
.footer-brand .brand-name{ color: var(--on-dark); }
.footer-brand .brand-tag{ color: var(--gold-bright); }
.footer-tagline{
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--gold-bright);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(246,238,220,0.14);
}
.footer-brand p{ margin-top:18px; color: var(--on-dark-soft); font-size:0.92rem; max-width:32em; }
.footer-social{ display:flex; gap:14px; margin-top:22px; }
.footer-social a{
  width:38px; height:38px;
  border: 1px solid rgba(246,238,220,0.25);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  transition: border-color .18s ease, background-color .18s ease;
}
.footer-social a:hover{ border-color: var(--gold-bright); background: rgba(201,150,58,0.12); }
.footer-social svg{ width:16px; height:16px; color: var(--on-dark); }

.footer-col h4{
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}
.footer-accordion summary{
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  list-style: none;
  cursor: default;
}
.footer-accordion summary::-webkit-details-marker{ display:none; }
.footer-accordion summary::marker{ content:""; }
@media (min-width: 701px){
  .footer-accordion ul{ display: flex !important; }
}
@media (max-width: 700px){
  .footer-accordion summary{
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(246,238,220,0.14);
  }
  .footer-accordion summary::after{
    content:"";
    flex-shrink: 0;
    width: 8px; height: 8px;
    border-right: 1.5px solid var(--on-dark-soft);
    border-bottom: 1.5px solid var(--on-dark-soft);
    transform: rotate(45deg);
    transition: transform .2s ease;
  }
  .footer-accordion[open] summary::after{ transform: rotate(-135deg); }
}
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.footer-col a{ font-size:0.92rem; color: var(--on-dark-soft); transition:color .15s ease; }
.footer-col a:hover{ color: var(--gold-bright); }
.footer-col li.plain{ font-size:0.92rem; color: var(--on-dark-soft); }

.footer-bottom{
  padding: 26px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  font-size: 0.82rem;
  color: var(--on-dark-soft);
}

@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; gap: 36px; }
}

/* ---------------------------------------------------------
   Page hero (interior pages)
   --------------------------------------------------------- */
.page-hero{
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
  position: relative;
  overflow:hidden;
}
.page-hero h1{ font-size: clamp(2.1rem, 4vw, 3rem); margin-top: 14px; max-width: 18ch; }
.page-hero p{ margin-top:16px; max-width:50ch; font-size:1.06rem; }
.breadcrumb{ font-size:0.82rem; color:var(--ink-faint); }
.breadcrumb a{ color: var(--gold-deep); font-weight:600; }

/* ---------------------------------------------------------
   Forms
   --------------------------------------------------------- */
.form-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 44px;
  box-shadow: var(--shadow-1);
}
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:22px; }
.field[hidden]{ display:none; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size:0.86rem; font-weight:600; color: var(--ink); }
.field .req{ color: var(--gold-deep); }
.field input, .field select, .field textarea{
  font-family: var(--sans);
  font-size: 0.96rem;
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--gold);
  outline: none;
}
.field textarea{ resize: vertical; min-height: 110px; }
.field-hint{ font-size:0.78rem; color:var(--ink-faint); }
.form-note{
  margin-top:22px;
  font-size:0.84rem;
  color: var(--ink-faint);
  text-align:center;
}
.form-error{
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid #D8C4B0;
  background: #FBF3EC;
  border-radius: var(--r-sm);
  color: #7A4A2E;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.6;
}
.form-error a{ color: #7A4A2E; text-decoration: underline; font-weight: 600; }
.honeypot{ position:absolute; left:-9999px; opacity:0; height:0; width:0; overflow:hidden; }

.agreement-check{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0 24px;
  padding: 18px 20px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.agreement-check input[type="checkbox"]{
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.agreement-check span{
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.agreement-check a{
  color: var(--gold-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn.js-requires-agree:disabled{
  opacity: 0.45;
  cursor: not-allowed;
}
.btn.js-requires-agree:disabled:hover{ background: var(--gold-btn); }

@media (max-width: 640px){ .form-grid{ grid-template-columns: 1fr; } .form-card{ padding: 28px 22px; } }

/* ---------------------------------------------------------
   Contact page tiles
   --------------------------------------------------------- */
.contact-grid{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items:start;
}
.contact-tile{
  display:flex;
  gap:18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.contact-tile:first-child{ padding-top:0; }
.contact-tile-icon{
  width:44px; height:44px; flex-shrink:0;
  border: 1px solid var(--line);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  color: var(--gold-deep);
}
.contact-tile-icon svg{ width:20px; height:20px; }
.contact-tile h3{ font-size:1rem; margin-bottom:4px; }
.contact-tile a, .contact-tile p{ font-size:0.95rem; }

@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   About page — Qur'an verse block, commitments checklist,
   closing signature
   --------------------------------------------------------- */
.ayah-block{
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 40px;
  margin: 36px 0;
  text-align: center;
}
.ayah-arabic{
  font-family: var(--arabic);
  direction: rtl;
  font-size: clamp(1.15rem, 4vw, 2.1rem);
  line-height: 2.1;
  color: var(--ink);
  max-width: 40em;
  margin: 0 auto;
  overflow-wrap: break-word;
  word-break: break-word;
}
.ayah-translation{
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 38em;
  margin: 24px auto 0;
}
.ayah-reference{
  display:block;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold-deep);
}

.checklist{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.checklist li{
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.checklist li::before{
  content: "";
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 2px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.3 6.5 11 12.5 4.5' fill='none' stroke='%23A8791E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.about-signature{
  text-align: center;
  padding: 64px 0 8px;
}
.about-signature .brand-mark{
  margin: 0 auto 18px;
}
.about-signature .signature-name{
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
}
.about-signature .signature-tagline{
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 10px;
}

@media (max-width: 640px){
  .ayah-block{ padding: 36px 22px; }
}

/* ---------------------------------------------------------
   Rules & Regulations page
   --------------------------------------------------------- */
.rules-toc{
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 36px;
}
.rules-toc-title{
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.rules-toc-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 32px;
}
.rules-toc-grid a{
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: color .15s ease;
}
.rules-toc-grid a:hover{ color: var(--gold-deep); }
.rules-toc-grid a span{
  font-family: var(--serif);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

.rule-section{
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.rule-section:first-child{ padding-top: 0; }
.rule-heading{
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 22px;
}
.rule-number{
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 500;
  flex-shrink: 0;
}
.rule-heading h2{ font-size: 1.4rem; }
.rule-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rule-list li{
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 0.98rem;
}
.rule-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}
.rule-list li strong{ color: var(--ink); }

.rule-subsection{
  margin-top: 30px;
  padding: 24px 26px;
  background: var(--paper-alt);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.rule-subsection h3{ font-size: 1.02rem; margin-bottom: 12px; }
.rule-subsection p{ font-size: 0.94rem; margin-bottom: 12px; }
.rule-subsection p:last-child{ margin-bottom: 0; }

.discipline-flow{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.discipline-flow span{
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
}
.discipline-flow span.final{
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
}
.discipline-flow span.arrow{
  background: none;
  border: none;
  padding: 0;
  color: var(--gold);
  font-size: 1rem;
}

@media (max-width: 700px){
  .rules-toc{ padding: 26px 22px; }
  .rules-toc-grid{ grid-template-columns: 1fr; }
  .rule-heading{ gap: 12px; }
  .rule-heading h2{ font-size: 1.2rem; }
}

/* ---------------------------------------------------------
   FAQ accordion
   --------------------------------------------------------- */
.faq-nav-grid{
  display:flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.faq-nav-grid a{
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.faq-nav-grid a:hover{ border-color: var(--gold); color: var(--gold-deep); }

.faq-category{ margin-bottom: 56px; scroll-margin-top: 96px; }
.faq-category:last-child{ margin-bottom: 0; }
.faq-category-title{
  display:flex;
  align-items:baseline;
  gap: 14px;
  font-size: 1.4rem;
  margin-bottom: 22px;
}
.faq-category-index{
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
}

.faq-list{ border-top: 1px solid var(--line); max-width: 820px; }
.faq-item{ border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.faq-q{
  width:100%;
  background:none;
  border:none;
  text-align:left;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
}
.faq-q .plus{
  flex-shrink:0;
  width: 26px; height:26px;
  border:1px solid var(--line);
  border-radius:50%;
  position:relative;
  transition: border-color .2s ease, background-color .2s ease, transform .25s ease;
}
.faq-q .plus::before, .faq-q .plus::after{
  content:"";
  position:absolute; left:50%; top:50%;
  background: var(--gold-deep);
  transition: transform .25s ease, opacity .2s ease;
}
.faq-q .plus::before{ width:10px; height:1.5px; transform:translate(-50%,-50%); }
.faq-q .plus::after{ width:1.5px; height:10px; transform:translate(-50%,-50%); }
.faq-item.open .faq-q .plus{ border-color: var(--gold); background: var(--gold-tint-2); transform: rotate(180deg); }
.faq-item.open .plus::after{ transform:translate(-50%,-50%) rotate(90deg); opacity:0; }
.faq-a{
  max-height:0;
  overflow:hidden;
  transition: max-height .32s cubic-bezier(.4,0,.2,1);
}
.faq-a-inner{
  padding: 0 40px 24px 4px;
  font-size:0.97rem;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s ease .05s, transform .25s ease .05s;
}
.faq-item.open .faq-a-inner{ opacity:1; transform:none; }
.faq-a-inner a{ color: var(--gold-deep); font-weight:600; }

@media (max-width: 700px){
  .faq-q{ font-size: 1rem; padding: 18px 2px; }
  .faq-a-inner{ padding: 0 26px 20px 2px; }
  .faq-category{ margin-bottom: 44px; }
}
@media (max-width: 480px){
  .faq-nav-grid a{ white-space: normal; flex: 1 1 100%; text-align:center; }
}

/* ---------------------------------------------------------
   Utilities
   --------------------------------------------------------- */
.center{ text-align:center; }
.mt-0{ margin-top:0; }
.text-on-dark p{ color: var(--on-dark-soft); }
.badge-line{
  display:flex; flex-wrap:wrap; gap: 10px 28px;
  font-size:0.86rem; color: var(--ink-faint);
  margin-top: 18px;
}
.badge-line strong{ color: var(--ink); }

.reveal{ opacity:0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in{ opacity:1; transform:none; }

@media (max-width: 700px){
  .section{ padding: 64px 0; }
  .section-tight{ padding: 52px 0; }
}

/* ---------------------------------------------------------
   Print styles — mainly for the Rules & Regulations page,
   but applied globally so any page prints cleanly.
   --------------------------------------------------------- */
@media print{
  .site-header, .mobile-panel, .whatsapp-float, .cta-band,
  .breadcrumb, .hero, .btn-row,
  .site-footer .footer-social, .site-footer .footer-bottom a{
    display: none !important;
  }
  body{ background: #fff; color: #000; }
  .page-hero{ background: #fff; border-bottom: 2px solid #A8791E; padding: 0 0 20px; }
  .pattern-wash{ display: none; }
  a{ color: #000; text-decoration: underline; }
  .faq-a, .faq-item .faq-a{ max-height: none !important; overflow: visible !important; }
  .faq-a-inner{ opacity: 1 !important; transform: none !important; }
  .faq-q .plus{ display: none; }
  .rules-toc{ background: #fff; border: 1px solid #ccc; }
  .ayah-block{ background: #fff; border-top: 2px solid #A8791E; border-bottom: 2px solid #A8791E; }
  .site-footer{ background: #fff; color: #000; border-top: 2px solid #A8791E; }
  .site-footer a, .footer-tagline, .brand-tag{ color: #000 !important; }
  .checklist li::before{ border-color: #000; }
  .section, .section-tight{ padding: 20px 0; }
  .discipline-flow{ break-inside: avoid; }
  .rule-section, .faq-category{ break-inside: avoid-page; }
}


/* ---------------------------------------------------------
   Pricing page
   --------------------------------------------------------- */

/* Global currency toggle — one control, CSS-driven, affects every
   price on the page via <body class="currency-usd"> */
.currency-toggle-wrap{
  display:flex;
  justify-content:center;
  padding: 8px 28px 0;
}
.currency-toggle{
  display:inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: var(--paper-alt);
  gap: 4px;
}
.currency-toggle-btn{
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all .18s ease;
}
.currency-toggle-btn.active{
  background: var(--ink);
  color: var(--on-dark);
}

/* cur-ngn / cur-usd — toggled purely by body class, no JS DOM writes.
   Default (no body class) shows USD; .currency-ngn flips to Naira. */
.cur-ngn{ display:none; }
body.currency-ngn .cur-usd{ display:none; }
body.currency-ngn .cur-ngn{ display:inline; }

/* Jump to Course */
.jump-to-course-wrap{ margin-top: 8px; }
.jump-to-course-label{
  display:block;
  text-align:center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.jump-to-course{
  display:flex;
  justify-content:center;
  gap: 10px;
  flex-wrap: wrap;
}
.jump-to-course a{
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease;
}
.jump-to-course a:hover{ border-color: var(--gold); color: var(--gold-deep); }

@media (max-width: 640px){
  .jump-to-course{
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
}

/* Tier legend (Essential / Standard / Intensive) */
.tier-legend-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px;
}
.tier-card{
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 34px 28px;
  text-align: center;
}
.tier-card.popular{
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-2);
  transform: translateY(-6px);
}
.tier-badge{
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold-btn);
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.tier-card h3{ font-family: var(--serif); font-size: 1.3rem; margin-bottom: 14px; }
.tier-freq{ font-weight: 600; color: var(--ink); font-size: 1rem; margin: 0 0 4px; }
.tier-permonth{ font-size: 0.86rem; color: var(--ink-faint); margin: 0; }

@media (max-width: 860px){
  .tier-legend-grid{ grid-template-columns: 1fr; gap: 18px; }
  .tier-card.popular{ transform: none; }
}

/* Per-course pricing sections */
.pricing-course-section{
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.pricing-course-section.alt{ background: var(--paper-alt); }
.pricing-course-section:last-of-type{ border-bottom: none; }
.pricing-course-head{
  display:flex;
  align-items:center;
  gap: 16px;
  margin-bottom: 10px;
}
.pricing-course-head svg{ width: 38px; height: 38px; color: var(--gold); flex-shrink:0; }
.pricing-course-head h2{ font-size: 1.7rem; }
.pricing-course-link{
  color: var(--ink);
  transition: color .15s ease;
  border-bottom: 1px solid transparent;
}
.pricing-course-link:hover{ color: var(--gold-deep); border-bottom-color: var(--gold); }
.pricing-details-link{ margin-bottom: 6px; }
.course-pricing-blurb{
  max-width: 640px;
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.course-pricing-note{
  max-width: 640px;
  font-size: 0.88rem;
  color: var(--gold-deep);
  background: var(--gold-tint-2);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  margin: 16px 0 8px;
}
.course-pricing-note strong{ color: var(--ink); }
.currency-switch-note{
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin: 14px 0 0;
}
.currency-switch-note a{
  color: var(--gold-deep);
  font-weight: 600;
  text-decoration: underline;
}

.price-tier-row{
  display:flex;
  gap: 20px;
  margin-top: 28px;
  align-items: stretch;
}
.price-tier-col{
  position: relative;
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 22px;
  text-align: center;
  display:flex;
  flex-direction:column;
}
.price-tier-col.popular{
  border: 2px solid var(--gold);
  background: var(--gold-tint-2);
  box-shadow: var(--shadow-1);
}
.price-tier-col .tier-badge{ top: -12px; }
.price-tier-label{
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  margin-top: 6px;
}
.price-tier-freq{
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 2px;
}
.price-main{
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.price-main .cur-ngn, .price-main .cur-usd{
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--ink);
}
.price-tier-col.popular .cur-ngn, .price-tier-col.popular .cur-usd{ color: var(--gold-deep); }
.price-unit{ font-size: 0.78rem; color: var(--ink-faint); margin-left: 2px; }

.savings-toggle-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border: none;
  border-top: 1px solid var(--line-soft);
  background: none;
  width: 100%;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-deep);
  cursor: pointer;
}
.savings-chevron{
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-top: -3px;
}
.savings-toggle-btn.open .savings-chevron{ transform: rotate(-135deg); margin-top: 3px; }
.savings-toggle-content{
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}
.price-sub-row{
  display:flex;
  flex-direction:column;
  gap: 10px;
  padding-top: 14px;
}
.price-sub{
  display:flex;
  flex-direction:column;
  gap: 2px;
}
.price-sub-label{
  font-size: 0.74rem;
  color: var(--ink-faint);
  font-weight: 600;
}
.price-sub-label em{
  font-style: normal;
  color: var(--gold-deep);
  margin-left: 4px;
}
.price-sub-amount{ font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); }

@media (max-width: 860px){
  .price-tier-row{ flex-direction: column; }
  .price-tier-col.popular{ order: -1; }
  .pricing-course-section{ padding: 48px 0; }
}

/* Family & Sibling Benefits */
.sibling-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.sibling-card{
  text-align:center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 40px 28px;
  background: var(--paper-alt);
}
.sibling-percent{
  display:block;
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.sibling-card h3{ font-size: 1.1rem; margin-bottom: 8px; }
.sibling-card p{ font-size: 0.92rem; }

@media (max-width: 700px){
  .sibling-grid{ grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   Women's Counselling & Coaching page
   --------------------------------------------------------- */
.wc-women-only{
  background: var(--gold-tint-2);
  border-top: 1px solid var(--line);
  border-bottom: 3px solid var(--gold);
  padding: 36px 0;
  text-align: center;
}
.wc-women-only-badge{
  display:inline-block;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.wc-women-only p{
  max-width: 720px;
  margin: 0 auto;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.7;
}

.wc-profile-grid{
  display: flex;
  align-items: center;
  gap: 56px;
}
.wc-profile-photo{
  flex: 0 0 220px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow-2);
  background: var(--paper-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-faint);
  margin: 0 auto;
  overflow: hidden;
}
.wc-profile-photo svg{ width: 64px; height: 64px; color: var(--gold); }
.wc-profile-photo span{ font-size: 0.78rem; text-align: center; padding: 0 20px; }
.wc-profile-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.wc-profile-title{
  font-size: 1.02rem;
  color: var(--gold-deep);
  font-weight: 600;
  margin-top: 6px;
}
.wc-profile-languages{
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wc-profile-languages svg{ width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

@media (max-width: 760px){
  .wc-profile-grid{ flex-direction: column; text-align: center; gap: 28px; }
  .wc-profile-photo{ margin: 0 auto; }
}

.wc-service-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.wc-service-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 24px;
  transition: border-color .18s ease, transform .18s ease;
}
.wc-service-card:hover{ border-color: var(--gold); transform: translateY(-3px); }
.wc-service-card h3{
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.wc-service-card p{ font-size: 0.9rem; }

@media (max-width: 980px){
  .wc-service-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .wc-service-grid{ grid-template-columns: 1fr; }
}

/* Consulting fees */
.wc-fee-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.wc-fee-card{
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px 26px;
  text-align: center;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.wc-fee-card:hover{ border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-1); }
.wc-fee-icon{
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-tint-2);
  color: var(--gold-deep);
}
.wc-fee-icon svg{ width: 22px; height: 22px; }
.wc-fee-card h3{
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.wc-fee-amount{
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold-deep);
  font-weight: 600;
  line-height: 1.3;
}
.wc-fee-amount .wc-fee-sep{
  font-size: 1rem;
  color: var(--ink-faint);
  font-weight: 400;
  margin: 0 4px;
}
.wc-fee-note{
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.wc-fee-badge{
  display: inline-block;
  margin-top: 12px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

@media (max-width: 980px){
  .wc-fee-grid{ grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* Teacher avatar image (photo instead of initials) */
.teacher-avatar-photo{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  border: 2px solid var(--gold);
}

/* Small "Scholarship Opportunities" note on course/enrol pages */
.scholarship-note{
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.scholarship-note a{ color: var(--gold-deep); font-weight: 600; }

/* ---------------------------------------------------------
   Scholarship page
   --------------------------------------------------------- */
.schol-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.schol-grid.cols-2{ grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
.schol-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 24px;
  transition: border-color .18s ease, transform .18s ease;
}
.schol-card:hover{ border-color: var(--gold); transform: translateY(-3px); }
.schol-card-icon{
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-tint-2);
  color: var(--gold-deep);
}
.schol-card-icon svg{ width: 20px; height: 20px; }
.schol-card h3{
  font-family: var(--serif);
  font-size: 1.06rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.schol-card p{ font-size: 0.9rem; }

@media (max-width: 980px){
  .schol-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .schol-grid{ grid-template-columns: 1fr; }
  .schol-grid.cols-2{ grid-template-columns: 1fr; }
}

.schol-steps{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: schol-step;
}
.schol-step{
  position: relative;
  border-top: 2px solid var(--gold);
  padding-top: 20px;
}
.schol-step-num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.schol-step h3{ font-size: 1.05rem; margin-bottom: 8px; }
.schol-step p{ font-size: 0.9rem; }

@media (max-width: 980px){
  .schol-steps{ grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}
@media (max-width: 560px){
  .schol-steps{ grid-template-columns: 1fr; }
}

.schol-notice{
  background: var(--gold-tint-2);
  border-top: 1px solid var(--line);
  border-bottom: 3px solid var(--gold);
  padding: 40px 0;
}
.schol-notice-inner{ max-width: 780px; margin: 0 auto; }
.schol-notice ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.schol-notice li{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.6;
}
.schol-notice li::before{
  content: "";
  flex-shrink: 0;
  width: 8px; height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--gold);
}
