/* ─── RESET & TOKENS ─── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --ink:    #0E0E0E;
  --parch:  #F5F0E8;
  --sand:   #E8DFC8;
  --gold:   #B8933A;
  --gold2:  #D4AA55;
  --rust:   #8B4513;
  --white:  #FDFBF7;
  --muted:  #6B6355;
  --border: rgba(184,147,58,0.2);
}
html{scroll-behavior:smooth;font-size:16px;max-width:100%;overflow-x:hidden}
body{
  font-family:'DM Sans',sans-serif;
  background:var(--white);
  color:var(--ink);
  overflow-x:hidden;
  max-width:100%;
  width:100%;
}
img,svg{max-width:100%;height:auto}
table{max-width:100%}

@media(max-width:480px){
  html{font-size:15px}
}

/* ─── TYPOGRAPHY SCALE ─── */
.t-display{
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(3.2rem,8vw,7rem);
  font-weight:300;
  line-height:.95;
  letter-spacing:-0.02em;
}
.t-heading{
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(2rem,4vw,3.2rem);
  font-weight:400;
  line-height:1.1;
}
.t-sub{
  font-family:'Cormorant Garamond',serif;
  font-size:1.25rem;
  font-weight:300;
  font-style:italic;
  color:var(--muted);
}
.t-label{
  font-size:.7rem;
  font-weight:500;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--gold);
}
.t-body{font-size:.95rem;line-height:1.75;color:var(--muted)}
.t-arabic{
  font-family:'Amiri',serif;
  direction:rtl;
  color:var(--gold);
}

/* ─── NAV ─── */
nav{
  position:fixed;top:0;left:0;right:0;z-index:200;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 5%;
  height:100px;
  background:rgba(253,251,247,0.92);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
  transition:box-shadow .3s;
  gap:16px;
}
nav.scrolled{box-shadow:0 2px 32px rgba(0,0,0,.06)}
.nav-brand{
  display:flex;align-items:center;gap:16px;
  text-decoration:none;
  min-width:0;
}
.nav-emblem{
  width:70px;height:70px;
  flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
}
.nav-emblem img{width:100%;height:100%;object-fit:contain}
.nav-brand-text{display:flex;flex-direction:column;line-height:1.2;min-width:0}
.nav-name{
  font-family:'Cormorant Garamond',serif;
  font-size:1.9rem;font-weight:600;
  color:var(--ink);letter-spacing:.03em;
  white-space:nowrap;
}
.nav-tagline{
  font-size:.76rem;font-weight:500;letter-spacing:.08em;
  text-transform:uppercase;color:var(--muted);
  margin-top:4px;
  white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;
}
.nav-links{display:flex;gap:38px;list-style:none;align-items:center}
.nav-links a{
  font-size:.85rem;font-weight:500;letter-spacing:.04em;
  color:var(--muted);text-decoration:none;
  transition:color .2s;
}
.nav-links a:hover{color:var(--ink)}
.nav-link-featured{
  color:var(--gold) !important;
  font-weight:600 !important;
}
.nav-right{display:flex;align-items:center;gap:22px}

/* ─── HAMBURGER (mobile) ─── */
.nav-hamburger{
  display:none;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  width:40px;height:40px;
  flex-shrink:0;
  background:none;border:none;cursor:pointer;
  padding:0;
  z-index:260;
}
.nav-hamburger span{
  display:block;width:22px;height:1.5px;
  background:var(--ink);
  transition:transform .3s ease,opacity .3s ease,background .3s ease;
}
.nav-hamburger.is-open span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.nav-hamburger.is-open span:nth-child(2){opacity:0}
.nav-hamburger.is-open span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}

.nav-overlay{
  display:none;
  position:fixed;inset:0;
  background:rgba(14,14,14,.35);
  z-index:210;
  opacity:0;
  transition:opacity .3s ease;
}
.nav-overlay.is-open{opacity:1}

/* ─── NAV DROPDOWN (Departments) ─── */
.nav-dropdown{position:relative}
.nav-dropdown-trigger{
  display:flex;align-items:center;gap:5px;
  cursor:pointer;
  background:none;border:none;margin:0;padding:0;
  font:inherit;color:inherit;text-align:inherit;
  -webkit-appearance:none;appearance:none;
}
.nav-dropdown-caret{
  font-size:.6rem;color:var(--gold);
  transition:transform .2s;
}
.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret,
.nav-dropdown.is-open .nav-dropdown-caret{transform:rotate(180deg)}
.nav-dropdown-menu{
  position:absolute;top:calc(100% + 18px);left:50%;
  transform:translateX(-50%) translateY(8px);
  min-width:280px;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:2px;
  box-shadow:0 18px 48px rgba(0,0,0,.09);
  padding:10px;
  opacity:0;visibility:hidden;
  transition:opacity .2s,transform .2s,visibility .2s;
  z-index:220;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu{
  opacity:1;visibility:visible;
  transform:translateX(-50%) translateY(0);
}
.dept-menu-item{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;padding:11px 14px;border-radius:1px;
  text-decoration:none;transition:background .15s;
}
.dept-menu-item:hover{background:var(--parch)}
.dept-menu-name{
  font-family:'Cormorant Garamond',serif;
  font-size:.98rem;font-weight:600;color:var(--ink);
}
.dept-menu-status{
  font-size:.6rem;letter-spacing:.06em;text-transform:uppercase;
  font-weight:500;padding:3px 8px;border-radius:1px;white-space:nowrap;
}
.dept-menu-status.active{background:rgba(184,147,58,.15);color:var(--gold)}
.dept-menu-status.soon{background:rgba(107,99,85,.1);color:var(--muted)}
.nav-btn{
  padding:9px 22px;
  background:var(--ink);color:var(--white);
  font-size:.78rem;font-weight:600;letter-spacing:.07em;
  text-decoration:none;border-radius:1px;
  border:1px solid rgba(184,147,58,.6);
  transition:background .2s,transform .15s,border-color .2s;
}
.nav-btn:hover{background:var(--gold);border-color:var(--gold);transform:translateY(-1px)}

/* ─── NAV KEYBOARD FOCUS ─── */
.nav-brand:focus-visible,
.nav-links a:focus-visible,
.nav-dropdown-trigger:focus-visible,
.dept-menu-item:focus-visible,
.nav-btn:focus-visible,
.nav-hamburger:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
  border-radius:1px;
}

/* ─── RESPONSIVE NAV (mobile off-canvas) ─── */
@media(max-width:900px){
  .nav-hamburger{display:flex}
  .nav-overlay{display:block;pointer-events:none}
  .nav-overlay.is-open{pointer-events:auto}

  .nav-right{
    position:fixed;top:0;right:0;
    height:100vh;width:min(320px,84vw);
    background:var(--white);
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:0;
    padding:110px 32px 40px;
    transform:translateX(100%);
    transition:transform .35s ease;
    box-shadow:-12px 0 40px rgba(0,0,0,.08);
    z-index:250;
    overflow-y:auto;
  }
  .nav-right.is-open{transform:translateX(0)}

  .nav-links{
    display:flex;flex-direction:column;
    align-items:flex-start;
    gap:0;
    width:100%;
    list-style:none;
  }
  .nav-links > li{
    width:100%;
    border-bottom:1px solid var(--border);
  }
  .nav-links > li > a,
  .nav-links > li > .nav-dropdown-trigger{
    display:flex;width:100%;
    padding:18px 0;
    font-size:1rem;
  }

  /* Dropdown becomes a static expanded list on mobile (no hover) */
  .nav-dropdown-trigger{cursor:default;justify-content:space-between}
  .nav-dropdown-caret{display:none}
  .nav-dropdown-menu{
    position:static;
    transform:none;
    opacity:1;visibility:visible;
    min-width:0;width:100%;
    border:none;box-shadow:none;
    padding:0 0 14px;
    background:transparent;
  }
  .dept-menu-item{padding:10px 4px}

  .nav-btn{
    margin-top:24px;
    width:100%;text-align:center;
  }
}
@media(max-width:480px){
  nav{height:82px;padding:0 5%}
  .nav-emblem{width:52px;height:52px}
  .nav-name{font-size:1.45rem}
  .nav-tagline{font-size:.64rem}
  .nav-right{padding:98px 24px 32px}
}

/* ─── HERO ─── */
.hero{
  min-height:100vh;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  padding:108px 5% 60px;
  gap:60px;
  position:relative;
  overflow:hidden;
}
@media(max-width:900px){
  .hero{grid-template-columns:1fr;padding:118px 5% 60px}
  .hero-right{height:auto;margin-top:40px}
  .manuscript-content{padding:36px 28px}
  .ms-big-arabic{font-size:2.6rem;margin-bottom:14px}
  .ms-quote{font-size:.92rem;max-width:220px}
  .ms-illustration{width:180px;margin-top:18px}
}
@media(max-width:480px){
  .hero-right{margin-top:32px}
  .manuscript-content{padding:28px 20px}
  .ms-big-arabic{font-size:2.1rem;margin-bottom:12px}
  .ms-divider{margin:14px auto}
  .ms-quote{font-size:.86rem;max-width:200px}
  .ms-illustration{width:150px;margin-top:14px}
}

/* Subtle ruled lines background */
.hero::before{
  content:'';
  position:absolute;inset:0;
  background-image:repeating-linear-gradient(
    0deg,
    transparent,
    transparent 79px,
    rgba(184,147,58,0.06) 79px,
    rgba(184,147,58,0.06) 80px
  );
  pointer-events:none;
}

.hero-kicker{
  display:flex;align-items:center;gap:12px;
  margin-bottom:28px;
}
.hero-kicker-line{width:40px;height:1px;background:var(--gold)}

.hero-title{
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(3.6rem,7vw,6.4rem);
  font-weight:300;
  line-height:.92;
  letter-spacing:-0.025em;
  color:var(--ink);
  margin-bottom:32px;
}
.hero-title em{
  font-style:italic;
  color:var(--gold);
}
.hero-title .block{display:block}

.hero-arabic-verse{
  font-family:'Amiri',serif;
  font-size:1.5rem;
  direction:rtl;
  color:var(--gold);
  line-height:1.6;
  margin-bottom:8px;
  opacity:.85;
}
.hero-verse-ref{
  font-size:.75rem;letter-spacing:.1em;
  color:var(--muted);text-align:right;
  margin-bottom:36px;
}

.hero-desc{
  font-size:.95rem;line-height:1.8;
  color:var(--muted);max-width:420px;
  margin-bottom:44px;
}

.hero-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.btn-dark{
  padding:14px 30px;
  background:var(--ink);color:var(--white);
  font-size:.82rem;font-weight:500;letter-spacing:.07em;
  text-decoration:none;border-radius:1px;
  transition:background .25s,transform .2s;
  display:inline-block;
}
.btn-dark:hover{background:var(--gold);transform:translateY(-2px)}
.btn-ghost{
  padding:14px 30px;
  border:1px solid rgba(14,14,14,0.25);
  color:var(--ink);background:transparent;
  font-size:.82rem;font-weight:500;letter-spacing:.07em;
  text-decoration:none;border-radius:1px;
  transition:border-color .2s,color .2s;
  display:inline-block;
}
.btn-ghost:hover{border-color:var(--gold);color:var(--gold)}

/* ─── HERO KEYBOARD FOCUS ─── */
.hero-actions a:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
  border-radius:1px;
}

/* Hero right — manuscript panel */
.hero-right{
  position:relative;
  height:580px;
  display:flex;align-items:center;justify-content:center;
}
.manuscript-bg{
  position:absolute;inset:0;
  background:var(--parch);
  border:1px solid var(--sand);
  border-radius:2px;
  overflow:hidden;
}
.manuscript-lines{
  position:absolute;inset:40px;
  display:flex;flex-direction:column;justify-content:space-around;
}
.ms-line{
  height:1px;
  background:rgba(184,147,58,0.12);
}
.manuscript-content{
  position:relative;z-index:2;
  padding:48px;text-align:center;
}
.ms-big-arabic{
  font-family:'Amiri',serif;
  font-size:4.1rem;
  color:var(--gold);
  line-height:1.3;
  direction:rtl;
  margin-bottom:20px;
}
.ms-divider{
  width:60px;height:1px;
  background:var(--gold);
  margin:20px auto;opacity:.4;
}
.ms-quote{
  font-family:'Cormorant Garamond',serif;
  font-size:1.05rem;font-style:italic;
  color:var(--muted);line-height:1.6;
  max-width:260px;margin:0 auto;
}
.ms-illustration{
  display:block;
  width:260px;
  margin:22px auto 0;
}
.ms-corner{
  position:absolute;
  width:28px;height:28px;
  border-color:var(--gold);
  border-style:solid;
  opacity:.4;
}
.ms-corner.tl{top:16px;left:16px;border-width:1.5px 0 0 1.5px}
.ms-corner.tr{top:16px;right:16px;border-width:1.5px 1.5px 0 0}
.ms-corner.bl{bottom:16px;left:16px;border-width:0 0 1.5px 1.5px}
.ms-corner.br{bottom:16px;right:16px;border-width:0 1.5px 1.5px 0}

/* ─── VIDEO PLAY BUTTON (Bismillah card) ─── */
.video-play-btn{
  position:absolute;
  right:22px;bottom:22px;
  z-index:4;
  display:flex;align-items:center;gap:10px;
  padding:10px 18px 10px 12px;
  background:var(--white);
  border:1px solid var(--gold);
  border-radius:999px;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(14,14,14,.1);
  transition:background .25s ease,box-shadow .25s ease,transform .2s ease,padding .25s ease;
  font-family:'DM Sans',sans-serif;
}
.video-play-btn:hover{
  background:var(--gold);
  box-shadow:0 10px 30px rgba(184,147,58,.35);
  transform:translateY(-2px);
}
.video-play-icon{
  width:30px;height:30px;
  flex-shrink:0;
  border-radius:50%;
  background:var(--gold);
  color:var(--white);
  display:flex;align-items:center;justify-content:center;
  font-size:.7rem;
  transition:background .25s ease,color .25s ease;
}
.video-play-btn:hover .video-play-icon{background:var(--white);color:var(--gold)}
.video-play-label{
  font-size:.72rem;font-weight:500;letter-spacing:.07em;text-transform:uppercase;
  color:var(--ink);white-space:nowrap;
  transition:color .25s ease;
}
.video-play-btn:hover .video-play-label{color:var(--white)}
.video-play-btn:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
}
@media(max-width:520px){
  .video-play-btn{padding:10px;right:16px;bottom:16px}
  .video-play-label{display:none}
}

/* ─── VIDEO MODAL ─── */
.video-modal-overlay{
  position:fixed;inset:0;
  background:rgba(14,14,14,.82);
  z-index:400;
  display:flex;align-items:center;justify-content:center;
  padding:24px;
  opacity:0;visibility:hidden;
  transition:opacity .3s ease,visibility .3s ease;
}
.video-modal-overlay.is-open{opacity:1;visibility:visible}
.video-modal{
  position:relative;
  width:100%;max-width:900px;
  background:var(--ink);
  border-radius:3px;
  border:1px solid rgba(184,147,58,.3);
  transform:scale(.96);
  transition:transform .3s ease;
}
.video-modal-overlay.is-open .video-modal{transform:scale(1)}
.video-modal-close{
  position:absolute;top:-46px;right:0;
  width:36px;height:36px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.3);
  background:transparent;
  color:var(--white);
  font-size:1.3rem;line-height:1;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  transition:background .2s ease,border-color .2s ease;
}
.video-modal-close:hover{background:var(--gold);border-color:var(--gold)}
.video-modal-close:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
}
.video-modal-frame{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  border-radius:3px;
  overflow:hidden;
  background:#000;
}
.video-modal-frame iframe{
  position:absolute;inset:0;
  width:100%;height:100%;
  border:none;
}
@media(max-width:600px){
  .video-modal-close{top:-42px;width:32px;height:32px;font-size:1.1rem}
}

/* ─── MARQUEE STRIP ─── */
.marquee-strip{
  background:var(--ink);
  padding:14px 0;
  overflow:hidden;
  white-space:nowrap;
  border-top:1px solid rgba(255,255,255,.05);
}
.marquee-inner{
  display:inline-block;
  animation:marquee 28s linear infinite;
}
.marquee-inner span{
  font-size:.72rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(255,255,255,.45);margin:0 28px;
}
.marquee-inner .dot{color:var(--gold);opacity:.7}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ─── SECTION BASE ─── */
.section{padding:100px 5%}
.section-header{margin-bottom:64px}
.section-header.centered{text-align:center}
.section-header.centered .t-sub{margin:0 auto}

/* ─── PHILOSOPHY ─── */
.philosophy{background:var(--parch)}
.phi-grid{
  display:grid;
  grid-template-columns:1fr 2px 1fr 2px 1fr;
  gap:0;
  margin-top:56px;
}
@media(max-width:768px){
  .phi-grid{grid-template-columns:1fr;gap:0}
  .phi-divider{display:none}
}
.phi-divider{background:var(--border)}
.phi-item{padding:40px 40px 40px 0}
.phi-item:not(:first-child):not(.phi-divider){padding:40px 0 40px 40px}
@media(max-width:768px){
  .phi-item,.phi-item:not(:first-child):not(.phi-divider){
    padding:32px 0;
    border-bottom:1px solid var(--border);
  }
}
.phi-arabic{
  font-family:'Amiri',serif;
  font-size:2rem;color:var(--gold);
  direction:rtl;margin-bottom:16px;
  opacity:.7;
}
.phi-title{
  font-family:'Cormorant Garamond',serif;
  font-size:1.35rem;font-weight:600;
  color:var(--ink);margin-bottom:12px;
}
.phi-text{font-size:.88rem;line-height:1.8;color:var(--muted)}

/* ─── COURSES ─── */
.courses-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border:1px solid var(--border);
  border-radius:2px;
  overflow:hidden;
  margin-top:56px;
}
@media(max-width:900px){.courses-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.courses-grid{grid-template-columns:1fr}}
.course-item{
  padding:36px 32px;
  border-right:1px solid var(--border);
  border-bottom:1px solid var(--border);
  transition:background .25s;
  position:relative;
  overflow:hidden;
}
.course-item::after{
  content:'';
  position:absolute;bottom:0;left:0;right:0;
  height:2px;
  background:linear-gradient(90deg,var(--gold),transparent);
  transform:scaleX(0);transform-origin:left;
  transition:transform .35s ease;
}
.course-item:hover{background:var(--parch)}
.course-item:hover::after{transform:scaleX(1)}
.course-arabic{
  font-family:'Amiri',serif;
  font-size:1.6rem;color:var(--gold);
  direction:rtl;margin-bottom:14px;opacity:.6;
}
.course-name{
  font-family:'Cormorant Garamond',serif;
  font-size:1.2rem;font-weight:600;
  color:var(--ink);margin-bottom:8px;
}
.course-desc{font-size:.83rem;line-height:1.7;color:var(--muted);margin-bottom:18px}
.course-tag{
  font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--gold);font-weight:500;
}

/* ─── DEPARTMENTS / FACULTIES ─── */
.dept-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:var(--border);
  border:1px solid var(--border);
  border-radius:2px;
  overflow:hidden;
  margin-top:56px;
}
@media(max-width:900px){.dept-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.dept-grid{grid-template-columns:1fr}}
.dept-card{
  background:var(--white);
  padding:36px 28px;
  position:relative;
  transition:background .25s;
  display:block;
  text-decoration:none;
}
.dept-card,
.dept-card:hover,
.dept-card:focus,
.dept-card *{
  text-decoration:none;
}
.dept-card.is-active{background:var(--ink)}
.dept-card:not(.is-active):hover{background:var(--parch)}
.dept-card:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
}
.dept-status{
  display:inline-block;
  font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;
  font-weight:500;padding:4px 10px;border-radius:1px;
  margin-bottom:20px;
}
.dept-card.is-active .dept-status{background:var(--gold);color:var(--ink)}
.dept-card:not(.is-active) .dept-status{background:rgba(107,99,85,.1);color:var(--muted)}
.dept-arabic{
  font-family:'Amiri',serif;
  font-size:1.7rem;direction:rtl;margin-bottom:14px;opacity:.7;
}
.dept-card.is-active .dept-arabic{color:var(--gold2)}
.dept-card:not(.is-active) .dept-arabic{color:var(--gold)}
.dept-name{
  font-family:'Cormorant Garamond',serif;
  font-size:1.25rem;font-weight:600;margin-bottom:10px;
  display:inline-block;
  text-decoration:none;
  text-underline-offset:6px;
  text-decoration-thickness:1px;
  transition:text-decoration-color .2s ease;
}
.dept-card.is-active .dept-name{color:var(--white)}
.dept-card:not(.is-active) .dept-name{color:var(--ink)}
.dept-card:not(.is-active):hover .dept-name{
  text-decoration-line:underline;
  text-decoration-color:var(--ink);
  text-underline-offset:6px;
  text-decoration-thickness:1px;
}
.dept-card.is-active:hover .dept-name{
  text-decoration-line:underline;
  text-decoration-color:var(--gold2);
  text-underline-offset:6px;
  text-decoration-thickness:1px;
}
.dept-desc{font-size:.83rem;line-height:1.7}
.dept-card.is-active .dept-desc{color:rgba(255,255,255,.6)}
.dept-card:not(.is-active) .dept-desc{color:var(--muted)}

/* ─── TEACHER / ABOUT ─── */
.about{background:var(--ink);color:var(--white)}
#founder{padding-top:80px;padding-bottom:80px}
.about-grid{
  display:grid;grid-template-columns:1fr 1fr;
  gap:80px;align-items:center;
}
@media(max-width:768px){.about-grid{grid-template-columns:1fr;gap:48px}}
.about .t-label{color:var(--gold2)}
.about .t-heading{color:var(--white)}
.about-role{
  font-family:'Cormorant Garamond',serif;
  font-size:1rem;font-style:italic;
  color:var(--gold2);margin-bottom:24px;
  letter-spacing:.04em;
}
.about-text{
  font-size:.92rem;line-height:1.85;
  color:rgba(255,255,255,.6);margin-bottom:16px;
}
.about-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.about-tag{
  padding:6px 14px;
  border:1px solid rgba(184,147,58,.3);
  border-radius:1px;
  font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--gold2);
}
.about-visual{
  aspect-ratio:1/1;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(184,147,58,.2);
  border-radius:2px;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  text-align:center;padding:48px;
  position:relative;
}
.about-visual-arabic{
  font-family:'Amiri',serif;
  font-size:5rem;color:var(--gold);
  direction:rtl;line-height:1;margin-bottom:24px;
  opacity:.5;
}
.about-badge{
  position:absolute;bottom:-1px;right:-1px;
  background:var(--gold);color:var(--ink);
  padding:18px 22px;text-align:center;
}
.about-badge-num{
  font-family:'Cormorant Garamond',serif;
  font-size:2rem;font-weight:700;
  display:block;line-height:1;
}
.about-badge-lbl{
  font-size:.65rem;letter-spacing:.1em;text-transform:uppercase;
  font-weight:500;margin-top:4px;display:block;
}
.about-corner{position:absolute;width:24px;height:24px;border-color:var(--gold);border-style:solid;opacity:.3}
.about-corner.tl{top:14px;left:14px;border-width:1px 0 0 1px}
.about-corner.tr{top:14px;right:14px;border-width:1px 1px 0 0}
.about-corner.bl{bottom:14px;left:14px;border-width:0 0 1px 1px}

/* ─── TESTIMONIALS ─── */
.testi{background:var(--parch)}
.testi-grid{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:24px;margin-top:56px;
}
@media(max-width:768px){.testi-grid{grid-template-columns:1fr}}
.testi-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:2px;padding:36px 32px;
  position:relative;
}
.testi-open-quote{
  font-family:'Cormorant Garamond',serif;
  font-size:5rem;font-weight:300;
  color:var(--gold);opacity:.25;
  line-height:.6;margin-bottom:20px;
}
.testi-text{
  font-family:'Cormorant Garamond',serif;
  font-size:1.05rem;font-style:italic;
  line-height:1.7;color:var(--ink);
  margin-bottom:28px;
}
.testi-rule{
  width:32px;height:1px;
  background:var(--gold);margin-bottom:16px;
}
.testi-name{font-size:.85rem;font-weight:500;color:var(--ink)}
.testi-loc{font-size:.75rem;color:var(--muted);margin-top:3px}
.testi-top{
  margin-bottom:16px;
}
.testi-stars{color:var(--gold);font-size:.7rem;letter-spacing:3px;margin-bottom:0}
.testi-avatar{
  position:absolute;
  top:32px;right:28px;
  width:56px;height:56px;flex-shrink:0;
  border-radius:50%;overflow:hidden;
  border:1px solid var(--border);
  box-shadow:0 2px 10px rgba(14,14,14,.08);
}
.testi-avatar svg{display:block;width:100%;height:100%}

/* ─── PRICING ─── */
.pricing-grid{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:0;border:1px solid var(--border);
  border-radius:2px;overflow:hidden;
  margin-top:56px;
}
@media(max-width:900px){
  .pricing-grid{grid-template-columns:repeat(2,1fr)}
  .price-card:nth-child(-n+2){border-bottom:1px solid var(--border)}
  .price-card:nth-child(2n){border-right:none}
}
@media(max-width:768px){
  .pricing-grid{grid-template-columns:1fr}
  .price-card{border-right:none!important}
}
.price-card{
  padding:48px 36px;
  border-right:1px solid var(--border);
  transition:background .25s;
  display:flex;flex-direction:column;
}
.price-card.featured{
  background:var(--ink);
}
.price-card:last-child{border-right:none}
.price-plan{
  order:1;
  font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;
  font-weight:400;color:var(--muted);margin-bottom:20px;
}
.price-card.featured .price-plan{color:var(--gold2)}
.price-amount{
  order:2;
  font-family:'Cormorant Garamond',serif;
  font-size:3.4rem;font-weight:300;
  color:var(--ink);line-height:1;
}
.price-card.featured .price-amount{color:var(--white)}
.price-currency{font-size:1.4rem;vertical-align:super}
.price-period{
  order:3;
  font-size:.75rem;color:var(--muted);
  margin-bottom:32px;margin-top:6px;
}
.price-card.featured .price-period{color:rgba(255,255,255,.45)}
.price-features{order:5;list-style:none;margin-bottom:36px}
.price-features li{
  padding:10px 0;
  font-size:.85rem;color:var(--muted);
  border-bottom:1px solid var(--border);
  display:flex;align-items:center;gap:10px;
}
.price-card.featured .price-features li{
  color:rgba(255,255,255,.6);
  border-bottom-color:rgba(255,255,255,.08);
}
.price-features li::before{content:'—';color:var(--gold);font-size:.75rem}
.price-popular{
  order:0;
  display:inline-block;
  padding:3px 10px;
  background:var(--gold);color:var(--ink);
  font-size:.62rem;letter-spacing:.12em;text-transform:uppercase;font-weight:600;
  margin-bottom:20px;
}
.price-tba{
  order:3;
  font-family:'Cormorant Garamond',serif;
  font-size:1.5rem;font-weight:400;font-style:italic;
  color:var(--muted);line-height:1.3;
  min-height:3.4rem;display:flex;align-items:center;
}
.price-card.featured .price-tba{color:rgba(255,255,255,.7)}
.price-tba-note{order:4;font-size:.8rem;color:var(--muted);line-height:1.7;margin-bottom:32px;margin-top:10px}
.price-card.featured .price-tba-note{color:rgba(255,255,255,.45)}
/* Second-child / sibling discount box — sits right after the price & period,
   so it reads clearly before the feature list, regardless of its position in the HTML. */
.price-sibling{
  order:4;
  display:flex;align-items:baseline;justify-content:space-between;
  gap:12px;
  padding:14px 18px;
  margin-bottom:28px;
  background:var(--parch);
  border:1px solid var(--border);
  border-radius:1px;
}
.price-sibling-label{
  font-size:.8rem;letter-spacing:.02em;
  color:var(--muted);
}
.price-sibling-amount{
  font-family:'Cormorant Garamond',serif;
  font-size:1.35rem;font-weight:600;
  color:var(--gold);
  white-space:nowrap;
}
.price-card.featured .price-sibling{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.15)}
.price-card.featured .price-sibling-label{color:rgba(255,255,255,.55)}
.price-card.featured .price-sibling-amount{color:var(--gold2)}
.btn-price-dark{
  order:6;
  display:block;text-align:center;
  padding:13px;background:var(--white);
  color:var(--ink);font-size:.78rem;font-weight:500;letter-spacing:.06em;
  text-decoration:none;border-radius:1px;
  transition:background .2s,color .2s;
}
.btn-price-dark:hover{background:var(--gold);color:var(--ink)}
.btn-price-outline{
  order:6;
  display:block;text-align:center;
  padding:13px;border:1px solid var(--border);
  color:var(--ink);font-size:.78rem;font-weight:500;letter-spacing:.06em;
  text-decoration:none;border-radius:1px;
  transition:border-color .2s,color .2s;
}
.btn-price-outline:hover{border-color:var(--gold);color:var(--gold)}
.country-tab:focus-visible,
.btn-price-dark:focus-visible,
.btn-price-outline:focus-visible,
.booking-actions a:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
}

/* ─── TRUST BAR ─── */
.trust{
  padding:60px 5%;
  display:flex;align-items:center;justify-content:center;
  flex-wrap:wrap;gap:48px;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.trust-item{text-align:center}
.trust-num{
  font-family:'Cormorant Garamond',serif;
  font-size:2.2rem;font-weight:300;color:var(--ink);
}
.trust-label{font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-top:4px}

/* ─── STUDENT VIDEOS (YouTube embeds) ─── */
.student-videos-intro{
  text-align:center;
  padding:40px 5% 0;
}
.student-videos-title{
  font-family:'Cormorant Garamond',serif;
  font-size:1.4rem;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--ink);
  margin-bottom:8px;
}
.student-videos-sub{
  font-family:'Cormorant Garamond',serif;
  font-size:.95rem;
  font-weight:300;
  font-style:italic;
  color:var(--muted);
}
.student-videos{
  display:flex;justify-content:center;align-items:flex-start;
  gap:22px;flex-wrap:wrap;
  padding:28px 5% 36px;
  border-bottom:1px solid var(--border);
}
.student-video-box{
  position:relative;
  width:240px;
  aspect-ratio:16/9;
  flex-shrink:0;
  border:1px solid var(--border);
  border-radius:2px;
  background:var(--ink);
  overflow:hidden;
  transition:border-color .25s ease,transform .2s ease;
}
.student-video-box:hover{border-color:var(--gold);transform:translateY(-2px)}
.student-video-play{
  position:absolute;inset:0;
  width:100%;height:100%;
  display:flex;align-items:center;justify-content:center;
  background:transparent;border:none;padding:0;margin:0;
  cursor:pointer;
}
.student-video-play-icon{
  width:42px;height:42px;
  flex-shrink:0;
  border-radius:50%;
  background:var(--gold);
  color:var(--white);
  display:flex;align-items:center;justify-content:center;
  font-size:.8rem;
  transition:background .25s ease,color .25s ease,transform .2s ease;
}
.student-video-box:hover .student-video-play-icon{background:var(--white);color:var(--gold);transform:scale(1.05)}
.student-video-play:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.student-video-box iframe{
  position:absolute;inset:0;
  width:100%;height:100%;
  border:0;display:block;
}
@media(max-width:820px){
  .student-videos{gap:16px}
  .student-video-box{width:calc(50% - 8px);max-width:280px}
}
@media(max-width:600px){
  .student-videos{flex-direction:column;align-items:center;gap:14px;padding:24px 5% 28px}
  .student-video-box{width:100%;max-width:320px}
}

/* ─── CTA FINAL ─── */
.cta-final{
  background:var(--ink);
  padding:120px 5%;
  text-align:center;
  position:relative;overflow:hidden;
}
.cta-final::before{
  content:'';position:absolute;
  top:50%;left:50%;transform:translate(-50%,-50%);
  width:600px;height:600px;
  background:radial-gradient(circle,rgba(184,147,58,.08) 0%,transparent 70%);
  pointer-events:none;
}
.cta-big-arabic{
  font-family:'Amiri',serif;
  font-size:clamp(2rem,5vw,3.5rem);
  direction:rtl;color:var(--gold);
  opacity:.5;margin-bottom:40px;
  line-height:1.4;
}
.cta-final .t-heading{color:var(--white);margin-bottom:16px}
.cta-final .t-sub{max-width:480px;margin:0 auto 40px}
.cta-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:8px}
.btn-gold{
  padding:14px 32px;background:var(--gold);
  color:var(--ink);font-size:.82rem;font-weight:500;letter-spacing:.07em;
  text-decoration:none;border-radius:1px;
  transition:background .2s,transform .2s;display:inline-block;
}
.btn-gold:hover{background:var(--gold2);transform:translateY(-2px)}
.btn-white-outline{
  padding:14px 32px;border:1px solid rgba(255,255,255,.25);
  color:var(--white);font-size:.82rem;font-weight:500;letter-spacing:.07em;
  text-decoration:none;border-radius:1px;
  transition:border-color .2s;display:inline-block;
}
.btn-white-outline:hover{border-color:var(--gold);color:var(--gold)}

/* ─── CTA EMPHASIS (Start Your One-Week Free) ─── */
.btn-cta-emphasis{
  padding:17px 38px;
  font-size:.88rem;
  font-weight:600;
  letter-spacing:.06em;
}
.btn-ghost.btn-cta-emphasis{border-width:1.5px}

/* ─── WHATSAPP CTA POLISH (homepage) ─── */
.btn-whatsapp-emphasis{
  padding:17px 34px;
  font-size:.86rem;
  font-weight:600;
  display:inline-flex;align-items:center;gap:9px;
}
.btn-wa-icon{
  display:inline-flex;flex-shrink:0;
  width:16px;height:16px;
}
.btn-wa-icon svg{width:100%;height:100%;display:block}

/* ─── FOOTER ─── */
footer{
  padding:64px 5% 32px;
  background:var(--white);
  border-top:1px solid var(--border);
}
.footer-grid{
  display:grid;grid-template-columns:2fr 1fr 1fr;
  gap:60px;margin-bottom:48px;
}
@media(max-width:768px){.footer-grid{grid-template-columns:1fr;gap:32px}}
.footer-brand-name{
  font-family:'Cormorant Garamond',serif;
  font-size:1.3rem;font-weight:600;
  color:var(--ink);margin-bottom:14px;
}
.footer-brand-desc{font-size:.85rem;line-height:1.75;color:var(--muted);max-width:280px}
.footer-col-head{
  font-size:.7rem;letter-spacing:.15em;text-transform:uppercase;
  color:var(--gold);margin-bottom:18px;font-weight:500;
}
.footer-col ul{list-style:none}
.footer-col li{margin-bottom:10px}
.footer-col a{
  font-size:.85rem;color:var(--muted);
  text-decoration:none;transition:color .2s;
}
.footer-col a:hover{color:var(--gold)}
.footer-bottom{
  display:flex;justify-content:space-between;align-items:center;
  flex-wrap:wrap;gap:12px;
  padding-top:24px;border-top:1px solid var(--border);
}
.footer-copy{font-size:.75rem;color:var(--muted)}
.footer-legal-links{
  display:flex;align-items:center;gap:10px;
  font-size:.78rem;color:var(--muted);
}
.footer-legal-links a{color:var(--muted);text-decoration:none;transition:color .2s}
.footer-legal-links a:hover{color:var(--gold)}
.footer-social{display:flex;gap:12px}
.footer-social a{
  width:40px;height:40px;
  border:1px solid var(--border);border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:var(--muted);text-decoration:none;
  transition:border-color .2s,color .2s,background .2s;
}
.footer-social a svg{width:17px;height:17px}
.footer-social a:hover{border-color:var(--gold);color:var(--gold);background:var(--parch)}

/* ─── FOOTER KEYBOARD FOCUS ─── */
.footer-col a:focus-visible,
.footer-social a:focus-visible,
.footer-legal-links a:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
  border-radius:1px;
}

/* ─── COUNTRY SELECTOR ─── */
.country-selector{
  text-align:center;
  margin-bottom:40px;
}
.country-selector-label{
  font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);margin-bottom:16px;
}
.country-tabs{
  display:flex;flex-wrap:wrap;justify-content:center;gap:8px;
}
.country-tab{
  padding:10px 20px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--muted);
  font-size:.8rem;font-weight:500;letter-spacing:.04em;
  border-radius:1px;cursor:pointer;
  transition:all .2s;
  font-family:'DM Sans',sans-serif;
  display:flex;align-items:center;gap:8px;
}
.country-tab:hover{border-color:var(--gold);color:var(--gold)}
.country-tab.active{
  background:var(--ink);color:var(--white);border-color:var(--ink);
}
.flag{font-size:1.1rem}

/* ─── TRUST BADGES ─── */
.trust-badges{
  display:flex;flex-wrap:wrap;justify-content:center;gap:0;
  margin-top:40px;
  border:1px solid var(--border);
  border-radius:2px;
  overflow:hidden;
}
.trust-badge{
  flex:1;min-width:200px;
  display:flex;align-items:center;gap:16px;
  padding:24px 28px;
  border-right:1px solid var(--border);
  background:var(--parch);
  transition:background .2s;
}
.trust-badge:last-child{border-right:none}
.trust-badge:hover{background:var(--sand)}
@media(max-width:768px){
  .trust-badge{border-right:none;border-bottom:1px solid var(--border);}
  .trust-badge:last-child{border-bottom:none}
}
.trust-badge-icon{font-size:1.6rem}
.trust-badge-title{font-size:.82rem;font-weight:500;color:var(--ink);margin-bottom:2px}
.trust-badge-sub{font-size:.72rem;color:var(--muted)}

/* ─── BOOKING SECTION ─── */
.booking-section{
  margin-top:40px;
  border:1px solid var(--border);
  border-radius:2px;
  overflow:hidden;
}
.booking-inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:32px;padding:40px 48px;
  background:linear-gradient(135deg, rgba(184,147,58,0.05) 0%, transparent 100%);
  flex-wrap:wrap;
}
.booking-text{flex:1;min-width:260px}
.booking-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}

/* ─── REVEAL ANIMATION ─── */
.reveal{opacity:0;transform:translateY(28px);transition:opacity .7s ease,transform .7s ease}
.reveal.up{opacity:1;transform:translateY(0)}
.reveal-delay-1{transition-delay:.1s}
.reveal-delay-2{transition-delay:.2s}
.reveal-delay-3{transition-delay:.3s}

/* ─── BREADCRUMB ─── */
.breadcrumb{
  padding:134px 5% 0;
  display:flex;align-items:center;gap:8px;
  font-size:.78rem;color:var(--muted);
}
.breadcrumb a{color:var(--muted);text-decoration:none;transition:color .2s}
.breadcrumb a:hover{color:var(--gold)}
.breadcrumb .sep{color:var(--border);opacity:.8}
.breadcrumb .current{color:var(--gold);font-weight:500}

/* ─── DEPARTMENT PAGE HERO ─── */
.dept-hero{
  padding:48px 5% 80px;
  display:grid;grid-template-columns:1fr auto;
  align-items:end;gap:40px;
  position:relative;
}
@media(max-width:768px){.dept-hero{grid-template-columns:1fr}}
.dept-hero-badge{
  display:inline-block;
  font-size:.65rem;letter-spacing:.14em;text-transform:uppercase;
  font-weight:600;padding:6px 14px;border-radius:1px;
  margin-bottom:26px;
}
.dept-hero-badge.is-active{background:var(--gold);color:var(--ink)}
.dept-hero-badge.is-soon{background:rgba(107,99,85,.1);color:var(--muted)}
.dept-hero-arabic{
  font-family:'Amiri',serif;
  font-size:2.6rem;color:var(--gold);
  direction:rtl;margin-bottom:18px;opacity:.75;
}
.dept-hero-title{
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(2.6rem,5.5vw,4.6rem);
  font-weight:300;line-height:1.02;
  color:var(--ink);margin-bottom:22px;
}
.dept-hero-title em{font-style:italic;color:var(--gold)}
.dept-hero-desc{font-size:.98rem;line-height:1.85;color:var(--muted);max-width:560px}
.dept-hero-visual{
  width:180px;height:180px;
  border:1px solid var(--border);border-radius:2px;
  background:var(--parch);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.dept-hero-visual span{
  font-family:'Amiri',serif;font-size:3.2rem;
  color:var(--gold);direction:rtl;opacity:.6;
}
@media(max-width:768px){
  .dept-hero-visual{display:none}
  .dept-hero-visual.hero-video-box{display:flex}
}

/* ─── HERO VIDEO BOX (admissions.html & quranic-studies.html only) ─── */
.hero-video-box{
  width:320px;height:180px;
  position:relative;
  background:var(--ink);
}
.hero-video-box iframe{
  position:absolute;inset:0;
  width:100%;height:100%;
  border:0;display:block;
}
@media(max-width:600px){
  .hero-video-box{width:100%;max-width:320px;height:auto;aspect-ratio:16/9}
}

/* ─── LEGAL CONTENT (Terms / Refund Policy) ─── */
.legal-content{max-width:880px;margin:0 auto;padding:0 5% 100px}
.legal-updated{
  font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);margin-bottom:40px;padding-bottom:24px;
  border-bottom:1px solid var(--border);
}
.legal-content h2{
  font-family:'Cormorant Garamond',serif;
  font-size:1.5rem;font-weight:600;color:var(--ink);
  margin:44px 0 14px;
}
.legal-content h2:first-of-type{margin-top:0}
.legal-content p{font-size:.92rem;line-height:1.85;color:var(--muted);margin-bottom:16px}
.legal-content a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--border);text-underline-offset:3px;transition:color .2s,text-decoration-color .2s}
.legal-content a:hover{color:var(--gold);text-decoration-color:var(--gold)}
@media(max-width:600px){
  .legal-content{padding:0 5% 72px}
  .legal-content h2{font-size:1.3rem;margin:36px 0 12px}
}
/* ─── PLANNED CURRICULUM (soon-departments) ─── */
.planned-grid{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:1px;background:var(--border);
  border:1px solid var(--border);border-radius:2px;
  overflow:hidden;margin-top:0;
}
@media(max-width:900px){.planned-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.planned-grid{grid-template-columns:1fr}}
.planned-item{
  background:var(--white);
  padding:36px 30px;
}
.planned-item-arabic{
  font-family:'Amiri',serif;font-size:1.5rem;color:var(--gold);
  direction:rtl;margin-bottom:14px;opacity:.6;
}
.planned-item-name{
  font-family:'Cormorant Garamond',serif;
  font-size:1.15rem;font-weight:600;color:var(--ink);margin-bottom:10px;
}
.planned-item-desc{font-size:.83rem;line-height:1.7;color:var(--muted)}

/* ─── COMING SOON BANNER ─── */
.coming-soon-banner{
  background:var(--ink);
  padding:130px 5%;
  text-align:center;
  position:relative;overflow:hidden;
}
.coming-soon-banner::before{
  content:'';position:absolute;
  top:50%;left:50%;transform:translate(-50%,-50%);
  width:700px;height:700px;
  background:radial-gradient(circle,rgba(184,147,58,.1) 0%,transparent 70%);
  pointer-events:none;
}
.coming-soon-label{
  font-size:.72rem;letter-spacing:.24em;text-transform:uppercase;
  color:var(--gold2);margin-bottom:24px;position:relative;
}
.coming-soon-title{
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(3rem,9vw,7rem);
  font-weight:300;font-style:italic;
  color:var(--white);line-height:1;
  position:relative;margin-bottom:28px;
}
.coming-soon-text{
  font-size:.95rem;line-height:1.8;color:rgba(255,255,255,.55);
  max-width:480px;margin:0 auto 40px;position:relative;
}
.coming-soon-actions{position:relative;display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.coming-soon-actions a:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
}

/* ─── DEPT NOTE (active page reuse note) ─── */
.dept-section-intro{margin-bottom:56px}

/* ══════════════════════════════════════════════
   RESPONSIVE REFINEMENTS — TABLET (≤768px)
   ══════════════════════════════════════════════ */
@media(max-width:768px){
  .section{padding:72px 6%}
  .section-header{margin-bottom:44px}

  .hero{padding:100px 6% 48px}
  .hero-actions{flex-direction:column;align-items:stretch}
  .hero-actions a{text-align:center}

  .courses-grid,.dept-grid,.planned-grid{margin-top:40px}
  .course-item,.dept-card,.planned-item{padding:30px 24px}

  .about{padding-top:64px}
  #founder{padding-top:56px;padding-bottom:56px}
  .about-visual{padding:36px}

  .testi-grid{gap:18px;margin-top:40px}
  .testi-card{padding:28px 24px}

  .pricing-grid{margin-top:40px}
  .price-card{padding:36px 28px}

  .trust{gap:28px;padding:44px 6%}
  .trust-badges{margin-top:28px}

  .booking-inner{padding:32px 28px;flex-direction:column;align-items:flex-start}
  .booking-actions{width:100%}
  .booking-actions a{flex:1;text-align:center}

  .cta-final{padding:88px 6%}
  .cta-actions{flex-direction:column;align-items:stretch}
  .cta-actions a{text-align:center}

  .footer-grid{margin-bottom:32px}
  footer{padding:48px 6% 28px}

  .dept-hero{padding:40px 6% 56px}
  .breadcrumb{padding:114px 6% 0}

  .coming-soon-banner{padding:88px 6%}
  .coming-soon-actions{flex-direction:column;align-items:stretch}
  .coming-soon-actions a{text-align:center}
}

/* ══════════════════════════════════════════════
   RESPONSIVE REFINEMENTS — MOBILE (≤480px)
   ══════════════════════════════════════════════ */
@media(max-width:480px){
  .section{padding:56px 5%}
  .section-header{margin-bottom:32px}

  .t-heading{font-size:clamp(1.7rem,7vw,2.4rem)}
  .t-sub{font-size:1.05rem}

  .hero{padding:100px 5% 40px;min-height:auto}
  .hero-title{font-size:clamp(2.6rem,11vw,3.6rem);margin-bottom:22px}
  .hero-arabic-verse{font-size:1.2rem}
  .hero-desc{font-size:.9rem;margin-bottom:32px}
  .hero-kicker{margin-bottom:20px}

  .marquee-inner span{font-size:.65rem;margin:0 18px}

  .trust{gap:22px;padding:36px 5%}
  .trust-num{font-size:1.8rem}

  .phi-item,.phi-item:not(:first-child):not(.phi-divider){padding:24px 0}
  .phi-arabic{font-size:1.6rem}
  .phi-title{font-size:1.2rem}

  .course-item,.dept-card,.planned-item{padding:26px 20px}
  .dept-hero-arabic{font-size:2rem}
  .dept-hero-title{font-size:clamp(2.1rem,9vw,2.8rem)}
  .dept-hero-desc{font-size:.9rem}

  .about-visual{padding:28px}
  .about-visual-arabic{font-size:3.6rem}
  .about-badge{padding:14px 16px}
  .about-badge-num{font-size:1.6rem}

  .testi-card{padding:24px 20px}
  .testi-text{font-size:.95rem}
  .testi-open-quote{font-size:3.6rem}

  .country-tabs{gap:6px}
  .country-tab{padding:8px 14px;font-size:.75rem}

  .price-card{padding:30px 22px}
  .price-amount{font-size:2.6rem}

  .trust-badge{min-width:100%;padding:20px}

  .booking-inner{padding:26px 20px}
  .booking-actions{flex-direction:column;align-items:stretch}
  .booking-actions a{margin-right:0 !important}

  .cta-final{padding:64px 5%}
  .cta-big-arabic{margin-bottom:28px}

  .footer-grid{grid-template-columns:1fr;gap:28px}
  .footer-bottom{flex-direction:column;align-items:flex-start;gap:16px}

  .coming-soon-banner{padding:64px 5%}
  .coming-soon-title{font-size:clamp(2.4rem,14vw,3.6rem)}
  .coming-soon-text{font-size:.88rem}

  .breadcrumb{padding:94px 5% 0;font-size:.72rem;flex-wrap:wrap}

  .dept-menu-name{font-size:.92rem}
}

/* ─── ACTIVE / CURRENT-PAGE NAV STATE ─── */
section[id]{scroll-margin-top:120px}
.nav-links > li > a.nav-current{border-bottom:2px solid var(--gold)}
.nav-brand.nav-current .nav-name{color:var(--gold)}
.dept-menu-item.nav-current{background:var(--parch)}
.dept-menu-item.nav-current .dept-menu-name{color:var(--gold)}

/* ─── CONTACT / LEAD-GEN FORM ─── */
.contact-divider{
  display:flex;align-items:center;gap:16px;
  max-width:640px;margin:44px auto 32px;
  color:rgba(255,255,255,.35);
  font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;
}
.contact-divider::before,.contact-divider::after{
  content:'';flex:1;height:1px;background:rgba(255,255,255,.15);
}
.contact-form{max-width:640px;margin:0 auto;text-align:left}
.contact-form .form-row{display:flex;gap:20px;flex-wrap:wrap;margin-bottom:20px}
.contact-form .form-group{
  flex:1;min-width:220px;
  display:flex;flex-direction:column;gap:8px;
  margin-bottom:20px;
}
.contact-form .form-row .form-group{margin-bottom:0}
.contact-form label{
  font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;
  color:rgba(255,255,255,.55);
}
.contact-form input,
.contact-form select,
.contact-form textarea{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.18);
  color:var(--white);
  padding:12px 14px;
  font-family:'DM Sans',sans-serif;
  font-size:.9rem;
  border-radius:1px;
  outline:none;
  transition:border-color .2s,background .2s;
  width:100%;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder{color:rgba(255,255,255,.35)}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  border-color:var(--gold);
  background:rgba(255,255,255,.08);
}
.contact-form select{
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23B8933A'><path d='M5.5 7.5l4.5 5 4.5-5z'/></svg>");
  background-repeat:no-repeat;
  background-position:right 14px center;
  padding-right:36px;
}
.contact-form select option{color:var(--ink)}
.contact-form textarea{resize:vertical;min-height:96px}
.contact-form button{
  border:none;cursor:pointer;font-family:inherit;margin-top:4px;
}
.cta-actions a:focus-visible,
.contact-form button:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
}
@media(max-width:600px){
  .contact-form .form-row{flex-direction:column;gap:20px}
}

/* ─── STEP GRID (4-column bordered process grid) ─── */
.step-grid{
  display:grid;grid-template-columns:repeat(4,1fr);
  border:1px solid var(--border);border-radius:2px;
  overflow:hidden;margin-top:56px;
}
@media(max-width:900px){.step-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.step-grid{grid-template-columns:1fr}}
.step-item{
  padding:36px 28px;
  border-right:1px solid var(--border);
  border-bottom:1px solid var(--border);
  position:relative;overflow:hidden;
  transition:background .25s;
}
.step-item::after{
  content:'';position:absolute;bottom:0;left:0;right:0;height:2px;
  background:linear-gradient(90deg,var(--gold),transparent);
  transform:scaleX(0);transform-origin:left;transition:transform .35s ease;
}
.step-item:hover{background:var(--parch)}
.step-item:hover::after{transform:scaleX(1)}
.step-num{
  font-family:'Cormorant Garamond',serif;
  font-size:2rem;font-weight:300;color:var(--gold);
  opacity:.65;margin-bottom:14px;
}
.step-name{
  font-family:'Cormorant Garamond',serif;
  font-size:1.1rem;font-weight:600;color:var(--ink);margin-bottom:8px;
}
.step-desc{font-size:.83rem;line-height:1.7;color:var(--muted)}
@media(max-width:768px){.step-grid{margin-top:40px}.step-item{padding:30px 24px}}
@media(max-width:480px){.step-item{padding:26px 20px}}

/* ─── FAQ ACCORDION ─── */
.faq-list{margin-top:56px;border-top:1px solid var(--border);max-width:820px}
.faq-item{border-bottom:1px solid var(--border)}
.faq-item summary{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:26px 2px;cursor:pointer;list-style:none;
  font-family:'Cormorant Garamond',serif;
  font-size:1.15rem;font-weight:600;color:var(--ink);
  -webkit-tap-highlight-color:transparent;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{
  content:'+';flex-shrink:0;
  font-size:1.4rem;font-weight:300;color:var(--gold);
  transition:transform .25s ease;
}
.faq-item[open] summary::after{transform:rotate(45deg)}
.faq-item summary:focus-visible{
  outline:2px solid var(--gold);outline-offset:3px;border-radius:1px;
}
.faq-answer{padding:0 2px 26px;font-size:.9rem;line-height:1.8;color:var(--muted);max-width:720px}
@media(max-width:480px){
  .faq-item summary{font-size:1.02rem;padding:22px 2px}
  .faq-list{margin-top:40px}
}

/* ─── RESOURCE LIBRARY CARDS ─── */
.resource-grid{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:20px;margin-top:56px;
}
@media(max-width:900px){.resource-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.resource-grid{grid-template-columns:1fr}}
.resource-card{
  background:var(--white);
  border:1px solid var(--border);border-radius:2px;
  padding:32px 26px;
  position:relative;
  transition:background .25s,border-color .25s,transform .2s;
}
.resource-card:hover{background:var(--parch);border-color:var(--gold);transform:translateY(-2px)}
.resource-icon{font-size:1.8rem;margin-bottom:18px}
.resource-name{
  font-family:'Cormorant Garamond',serif;
  font-size:1.12rem;font-weight:600;color:var(--ink);margin-bottom:8px;
}
.resource-desc{font-size:.82rem;line-height:1.65;color:var(--muted);margin-bottom:22px}
.resource-badge{
  display:inline-block;
  font-size:.6rem;letter-spacing:.1em;text-transform:uppercase;
  font-weight:500;padding:4px 10px;border-radius:1px;
  background:rgba(107,99,85,.1);color:var(--muted);
}
@media(max-width:768px){.resource-grid{margin-top:40px}.resource-card{padding:26px 22px}}

/* ─── FLOATING WHATSAPP BUTTON ─── */
.whatsapp-float{
  position:fixed;right:24px;bottom:24px;
  width:60px;height:60px;border-radius:50%;
  background:#25D366;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 24px rgba(0,0,0,.28);
  z-index:500;
  transition:transform .2s ease,box-shadow .2s ease;
  text-decoration:none;
}
.whatsapp-float svg{width:30px;height:30px;fill:#fff}
.whatsapp-float:hover{
  transform:translateY(-3px) scale(1.05);
  box-shadow:0 10px 30px rgba(0,0,0,.32);
}
@media(max-width:600px){
  .whatsapp-float{right:16px;bottom:16px;width:52px;height:52px}
  .whatsapp-float svg{width:26px;height:26px}
}

/* ─── FREE TRIAL POPUP (One Week Free) ─── */
.trial-modal{
  position:fixed;inset:0;z-index:1000;
  display:flex;align-items:center;justify-content:center;
  padding:24px;
}
.trial-modal[hidden]{display:none}
.trial-modal-overlay{
  position:absolute;inset:0;
  background:rgba(14,14,14,.72);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
  opacity:0;transition:opacity .3s ease;
}
.trial-modal-panel{
  position:relative;
  width:min(560px,100%);
  max-height:calc(100vh - 48px);
  overflow-y:auto;
  background:var(--white);
  border:1px solid rgba(184,147,58,.35);
  border-radius:2px;
  padding:44px 40px 36px;
  box-shadow:0 30px 80px rgba(0,0,0,.5);
  opacity:0;transform:translateY(18px) scale(.98);
  transition:opacity .3s ease,transform .3s ease;
}
.trial-modal.is-open .trial-modal-overlay{opacity:1}
.trial-modal.is-open .trial-modal-panel{opacity:1;transform:none}
.trial-modal-close{
  position:absolute;top:14px;right:16px;
  background:none;border:none;cursor:pointer;
  font-size:1.6rem;font-weight:300;line-height:1;
  color:rgba(14,14,14,.5);
  padding:4px 8px;transition:color .2s;
}
.trial-modal-close:hover{color:var(--gold2)}
.trial-modal-label{color:var(--gold2);margin-bottom:14px}
.trial-modal-title{
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(1.8rem,5vw,2.3rem);
  font-weight:400;color:var(--ink);line-height:1.1;
  margin-bottom:12px;
}
.trial-modal-sub{
  font-size:.9rem;color:rgba(14,14,14,.62);line-height:1.7;
  margin-bottom:28px;
}
.trial-form-group{
  display:flex;flex-direction:column;gap:8px;margin-bottom:18px;
}
.trial-form label{
  font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;
  color:rgba(14,14,14,.62);
}
.trial-form-optional{opacity:.65;text-transform:none;letter-spacing:0}
.trial-form input,
.trial-form select{
  background:rgba(14,14,14,.05);
  border:1px solid rgba(14,14,14,.18);
  color:var(--ink);
  padding:12px 14px;
  font-family:'DM Sans',sans-serif;
  font-size:.9rem;
  border-radius:1px;
  outline:none;
  width:100%;
  transition:border-color .2s,background .2s;
}
.trial-form input::placeholder{color:rgba(14,14,14,.4)}
.trial-form input:focus,
.trial-form select:focus{border-color:var(--gold);background:rgba(14,14,14,.08)}
.trial-form select{
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23B8933A'><path d='M5.5 7.5l4.5 5 4.5-5z'/></svg>");
  background-repeat:no-repeat;background-position:right 14px center;
  padding-right:36px;
}
.trial-form select option{color:var(--ink)}
.trial-form-subcourse{
  margin-top:-4px;padding:14px 14px 2px 16px;
  border-left:2px solid rgba(184,147,58,.4);
}
.trial-form-submit{
  border:none;cursor:pointer;font-family:inherit;
  text-align:center;display:block;
}
.trial-form-actions{
  display:flex;gap:10px;
}
.trial-form-actions .trial-form-submit,
.trial-form-actions .trial-form-submit-email{
  flex:1 1 0;width:auto;padding:15px 16px;
}
.trial-form-submit-email{
  border:1px solid rgba(14,14,14,.28);
  background:transparent;color:var(--ink);
  cursor:pointer;font-family:inherit;
  text-align:center;display:block;
  border-radius:1px;
  font-size:.82rem;font-weight:500;letter-spacing:.07em;
  transition:border-color .2s,color .2s;
}
.trial-form-submit-email:hover{border-color:var(--gold);color:var(--gold2)}
.trial-form-submit-email:focus-visible{
  outline:2px solid var(--gold);outline-offset:3px;border-radius:1px;
}
.trial-form-submit-email[disabled]{opacity:.6;cursor:default}
.trial-form-submit:focus-visible,
.trial-modal-close:focus-visible{
  outline:2px solid var(--gold);outline-offset:3px;border-radius:1px;
}
.trial-form-note{
  margin-top:14px;text-align:center;
  font-size:.72rem;color:rgba(14,14,14,.5);line-height:1.6;
}
.trial-form-success{
  margin-top:14px;text-align:center;
  font-size:.78rem;color:#357A4A;line-height:1.6;
  padding:12px 14px;border-radius:1px;
  border:1px solid rgba(155,212,168,.35);
  background:rgba(155,212,168,.08);
}
.trial-form-error{
  margin-top:14px;text-align:center;
  font-size:.78rem;color:#B23B33;line-height:1.6;
  padding:12px 14px;border-radius:1px;
  border:1px solid rgba(226,161,161,.35);
  background:rgba(226,161,161,.08);
}
@media(max-width:480px){
  .trial-form-actions{flex-direction:column}
}
@media(max-width:600px){
  .trial-modal{padding:16px}
  .trial-modal-panel{padding:38px 24px 30px;max-height:calc(100vh - 32px)}
  /* 16px inputs prevent the iOS automatic zoom on focus */
  .trial-form input,.trial-form select{font-size:16px}
}
@media(prefers-reduced-motion:reduce){
  .trial-modal-panel,.trial-modal-overlay{transition:none}
}

/* ─── RESOURCES — DEPARTMENT SELECTION ─── */
.dept-list{
  max-width:880px;margin:48px auto 0;
  display:flex;flex-direction:column;gap:14px;
}
.dept-select{
  display:flex;align-items:center;gap:22px;
  width:100%;text-align:left;cursor:pointer;
  background:var(--white);border:1px solid var(--border);border-radius:2px;
  padding:26px 30px;font-family:'DM Sans',sans-serif;
  transition:background .25s,border-color .25s,transform .2s;
}
.dept-select:hover{background:var(--parch);border-color:var(--gold);transform:translateY(-2px)}
.dept-select:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.dept-select.is-active{background:var(--ink);border-color:var(--ink)}
.dept-select-arabic{
  font-family:'Amiri',serif;font-size:1.6rem;direction:rtl;
  color:var(--gold);opacity:.75;flex-shrink:0;min-width:60px;
}
.dept-select.is-active .dept-select-arabic{color:var(--gold2);opacity:1}
.dept-select-body{flex:1;min-width:0}
.dept-select-name{
  display:block;font-family:'Cormorant Garamond',serif;
  font-size:1.22rem;font-weight:600;color:var(--ink);margin-bottom:6px;
}
.dept-select.is-active .dept-select-name{color:var(--white)}
.dept-select-desc{
  display:block;font-size:.83rem;line-height:1.7;color:var(--muted);
}
.dept-select.is-active .dept-select-desc{color:rgba(255,255,255,.6)}
.dept-select-cta{
  flex-shrink:0;display:inline-flex;align-items:center;gap:8px;
  font-size:.7rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  color:var(--gold);border:1px solid rgba(184,147,58,.35);
  padding:10px 18px;border-radius:1px;
  transition:background .2s,color .2s,border-color .2s;
}
.dept-select:hover .dept-select-cta{background:var(--gold);color:var(--ink);border-color:var(--gold)}
.dept-select.is-active .dept-select-cta{background:var(--gold);color:var(--ink);border-color:var(--gold)}
@media(max-width:768px){
  .dept-list{margin-top:40px}
  .dept-select{flex-direction:column;align-items:flex-start;gap:14px;padding:24px}
  .dept-select-cta{align-self:flex-start}
}

/* ─── RESOURCES — DEPARTMENT VIEWS ─── */
.dept-resources{display:none;margin-top:72px;scroll-margin-top:120px}
.dept-resources.is-open{display:block}
@media(max-width:768px){.dept-resources{margin-top:56px}}
.dept-resources-header{max-width:640px}
.dept-resources-header .t-heading{margin-bottom:8px}
.resource-category{margin-top:56px}
.resource-category-name{
  font-family:'Cormorant Garamond',serif;
  font-size:1.35rem;font-weight:600;color:var(--ink);
  display:flex;align-items:center;gap:18px;
}
.resource-category-name::after{content:'';flex:1;height:1px;background:var(--border)}
.resource-category .resource-grid{margin-top:28px}
@media(max-width:768px){
  .resource-category{margin-top:44px}
  .resource-category .resource-grid{margin-top:24px}
}
.resource-badge.is-available{background:rgba(184,147,58,.14);color:var(--gold)}

/* ─── RESOURCE PDF PANEL (resources.html — opens from resource cards) ─── */
.resource-modal{
  position:fixed;inset:0;z-index:1000;
  display:flex;align-items:center;justify-content:center;
  padding:24px;
}
.resource-modal[hidden]{display:none}
.resource-modal-overlay{
  position:absolute;inset:0;
  background:rgba(14,14,14,.72);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
  opacity:0;transition:opacity .3s ease;
}
.resource-modal-panel{
  position:relative;
  width:min(480px,100%);
  max-height:calc(100vh - 48px);
  overflow-y:auto;
  background:var(--ink);
  border:1px solid rgba(184,147,58,.35);
  border-radius:2px;
  padding:40px 36px 32px;
  box-shadow:0 30px 80px rgba(0,0,0,.5);
  opacity:0;transform:translateY(18px) scale(.98);
  transition:opacity .3s ease,transform .3s ease;
}
.resource-modal.is-open .resource-modal-overlay{opacity:1}
.resource-modal.is-open .resource-modal-panel{opacity:1;transform:none}
.resource-modal-close{
  position:absolute;top:14px;right:16px;
  background:none;border:none;cursor:pointer;
  font-size:1.6rem;font-weight:300;line-height:1;
  color:rgba(255,255,255,.45);
  padding:4px 8px;transition:color .2s;
}
.resource-modal-close:hover{color:var(--gold2)}
.resource-modal-close:focus-visible{
  outline:2px solid var(--gold);outline-offset:3px;border-radius:1px;
}
.resource-modal-label{
  color:var(--gold2);margin-bottom:14px;
  font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;
}
.resource-modal-title{
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(1.6rem,5vw,2rem);
  font-weight:400;color:var(--white);line-height:1.1;
  margin-bottom:8px;
}
.resource-modal-sub{
  font-size:.9rem;color:rgba(255,255,255,.55);line-height:1.7;
  margin-bottom:24px;
}
.resource-file-list{
  list-style:none;margin:0;padding:0;
  display:flex;flex-direction:column;gap:10px;
}
.resource-file{
  border:1px solid rgba(255,255,255,.14);
  border-radius:1px;
  background:rgba(255,255,255,.03);
}
.resource-file a{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  color:var(--white);text-decoration:none;
  padding:14px 16px;font-size:.92rem;
  transition:background .2s,border-color .2s,color .2s;
}
.resource-file a:hover{
  background:rgba(255,255,255,.06);
  color:var(--gold2);
  border-color:rgba(184,147,58,.45);
}
.resource-file a:focus-visible{
  outline:2px solid var(--gold);outline-offset:2px;border-radius:1px;
}
.resource-file-action{
  flex-shrink:0;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;
  color:var(--gold2);border:1px solid rgba(184,147,58,.4);
  padding:6px 12px;border-radius:1px;
}
.resource-file-pending{
  display:flex;align-items:center;
  color:rgba(255,255,255,.5);
  padding:14px 16px;font-size:.88rem;
}
.resource-empty{
  padding:26px 18px;text-align:center;
  font-size:.88rem;color:rgba(255,255,255,.5);
  border:1px dashed rgba(255,255,255,.18);
  border-radius:1px;
}
@media(max-width:600px){
  .resource-modal{padding:16px}
  .resource-modal-panel{padding:34px 20px 26px;max-height:calc(100vh - 32px)}
  .resource-file a{min-height:48px}
}
@media(prefers-reduced-motion:reduce){
  .resource-modal-panel,.resource-modal-overlay{transition:none}
}

/* Resource cards are now clickable (open the resource panel) */
.resource-card{cursor:pointer}
.resource-card:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
