/* theme-internal.css — the part of the former theme.css that only internal
   pages (and 404) can match: sections, cards, course/team/library/contact
   layouts, breadcrumbs, filters and their dark-theme rules. It is loaded
   after theme.css on every page except the homepages (Mission 38E). The
   build mirrors its manual dark-theme rules for OS-dark visitors exactly
   as it does for theme.css. */

.section{ padding: 96px 0; position:relative; }
.section--tight{ padding: 64px 0; }
@media (max-width: 768px){
.section{ padding: 72px 0; }
.section--tight{ padding: 48px 0; }
}
@media (max-width: 480px){
.section{ padding: 56px 0; }
}
.section--alt{ background: var(--bg-alt); }
.section--dark{
  background: var(--grad-dark);
  color: var(--text-inverse);
}
.section--dark h2, .section--dark h3{ color: var(--c-white); }
.section--cream{ background: var(--bg-page); }
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-size:.8rem; letter-spacing:.14em; text-transform:uppercase;
  color: var(--c-gold-dark);
  font-family: var(--font-en-body);
  font-weight:700;
  margin-bottom: 14px;
}
html[lang="ar"] .eyebrow{ letter-spacing:.02em; font-family: var(--font-ar-body); }
.eyebrow::before{
  content:""; width:28px; height:2px; background: var(--grad-gold); display:inline-block; border-radius:2px;
}
.section-head{ max-width: 760px; margin-bottom: 56px; }
.section-head.center{ margin-inline:auto; text-align:center; }
@media (max-width: 768px){
.section-head{ margin-bottom: 42px; }
}
.section-head h2{ font-size: clamp(1.8rem, 3vw, 2.6rem); }
.section-head p{ color: var(--text-muted); font-size:1.08rem; }
/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 15px 32px;
  border-radius: var(--radius-full);
  font-weight:700;
  font-size: .98rem;
  border: 1px solid transparent;
  transition: transform var(--transition-soft), box-shadow var(--transition-soft), background var(--transition-soft), color var(--transition-soft), border-color var(--transition-soft);
  white-space:nowrap;
}
.btn-gold{
  background: var(--grad-gold);
  color: var(--c-black);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover{ transform: translateY(-3px); box-shadow: 0 14px 34px -8px rgba(184,137,47,.55); }
.btn-dark{
  background: var(--c-black); color: var(--c-white); border-color: var(--c-black);
}
.btn-dark:hover{ background: var(--c-charcoal); transform: translateY(-3px); }
.btn-outline{
  background: transparent; color: var(--c-white); border-color: rgba(255,255,255,.45);
}
.btn-outline:hover{ border-color: var(--c-gold-light); color: var(--c-gold-light); transform: translateY(-3px); }
.btn-outline-dark{
  background: transparent; color: var(--c-black); border-color: rgba(23,23,23,.3);
}
.btn-outline-dark:hover{ border-color: var(--c-gold-dark); color: var(--c-gold-dark); transform: translateY(-3px); }
.btn-sm{ padding: 9px 20px; font-size:.82rem; }
.btn-block{ width:100%; }
.nav-link--feature::after{ content:none; }
.nav-link--feature{
  background: var(--grad-gold);
  color: var(--c-black) !important;
  box-shadow: 0 3px 12px -4px rgba(184,137,47,.5);
  font-weight:700;
  padding: 8px 16px;
  margin-inline: 6px;
  font-size:.82rem;
  border-radius: 10px;
}
.nav-link--feature .nf-ic{ font-size:.78em; opacity:.85; line-height:1; }
.nav-link--feature:hover{ transform: translateY(-2px); box-shadow: 0 6px 16px -5px rgba(184,137,47,.55); }
.nav-toggle{
  display:none; width:46px; height:46px; border-radius: var(--radius-full);
  border:1px solid rgba(184,137,47,.35); background: transparent;
  align-items:center; justify-content:center; flex-direction:column; flex-shrink:0;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after{
  content:""; display:block; width:18px; height:2px; background: var(--c-black); margin:2.5px auto; transition: all .3s;
}
/* Hero */
.hero{
  position:relative; overflow:hidden;
  background: linear-gradient(180deg, #faf6ea 0%, #f3ead6 50%, #f7f6f4 100%);
  color: var(--text-body);
  padding: 44px 0 72px;
}
.hero::before{
  /* warm gold radial glow at top */
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(184,137,47,.18), transparent 65%);
}
.hero::after{
  /* elegant Islamic murabba' (interlocking squares) geometric pattern */
  content:""; position:absolute; inset:0; pointer-events:none;
  opacity:.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23b8892f' stroke-width='0.7'%3E%3Crect x='10' y='10' width='80' height='80'/%3E%3Crect x='25' y='25' width='50' height='50' transform='rotate(45 50 50)'/%3E%3Crect x='35' y='35' width='30' height='30'/%3E%3Ccircle cx='50' cy='50' r='8'/%3E%3Cpath d='M50 0 L50 10 M50 90 L50 100 M0 50 L10 50 M90 50 L100 50'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100px 100px;
}
@media (prefers-reduced-motion: reduce){
.hero::after{ animation: none; }
}
.hero__inner{ position:relative; z-index:2; text-align:center; max-width:900px; margin-inline:auto; }
.hero__crest-wrap{
  width:200px; height:200px; margin:0 auto 26px; position:relative;
  display:flex; align-items:center; justify-content:center;
}
.hero__crest-wrap::before{
  /* soft ambient glow only — no ring outline, avoids reading as a drawn circle */
  content:""; position:absolute; inset:0; border-radius:50%;
  background: radial-gradient(circle, rgba(184,137,47,.14) 0%, transparent 70%);
}
.hero__crest{ position:relative; width:132px; height:auto; filter: drop-shadow(0 14px 34px rgba(0,0,0,.55)); }
.hero__crest-wrap--sm{ width:clamp(180px, 18vw, 250px); height:clamp(180px, 18vw, 250px); margin-bottom:12px; }
.hero__crest-wrap--sm .hero__crest{ width:clamp(175px, 16vw, 230px); }
.hero__calligraphy{
  display:block; margin:0 auto 8px; width:min(760px, calc(100vw - 64px)); height:auto;
  filter: drop-shadow(0 8px 26px rgba(184,137,47,.4)) drop-shadow(0 0 44px rgba(227,194,115,.16));
}
.hero__service-line{
  font-family: var(--font-display); font-weight:700; letter-spacing:.04em;
  color: var(--c-gold-dark); font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  margin: 0 0 10px;
}
.hero__eyebrow{
  display:inline-block; padding:9px 24px; border-radius: var(--radius-full);
  background: linear-gradient(180deg, rgba(184,137,47,.10), rgba(184,137,47,.03));
  border:1px solid rgba(184,137,47,.4); color: var(--c-gold-dark);
  font-size:.8rem; letter-spacing:.14em; text-transform:uppercase; margin-bottom:26px;
  font-family: var(--font-en-body);
}
html[lang="ar"] .hero__eyebrow{ letter-spacing:.02em; font-family:var(--font-ar-body); }
.hero__title{
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  color: var(--c-black);
  margin-bottom: 10px;
  letter-spacing: -.005em;
  font-weight: 700;
}
.hero__title em{ font-style:normal; color: var(--c-gold-dark); }
.hero__subtitle{
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 680px; margin:0 auto 16px; line-height:1.8;
}
.hero__ornament{ margin:0 0 16px; }
.hero__ctas{ display:flex; align-items:center; justify-content:center; gap:16px; flex-wrap:wrap; }
.hero__ctas .btn{ min-width: 180px; }
.hero__stats{
  position:relative; z-index:2;
  display:grid; grid-template-columns: repeat(4,1fr); gap:18px;
  max-width: 920px; margin: 72px auto 0;
}
.hero__stat{
  text-align:center; padding: 22px 10px; border-radius: var(--radius-md);
  background: var(--c-white); border:1px solid rgba(184,137,47,.18);
  box-shadow: var(--shadow-card);
}
.hero__stat strong{ display:block; font-family: var(--font-display); font-size:2rem; color: var(--c-gold-dark); }
.hero__stat span{ font-size:.82rem; color: var(--text-muted); }
@media (max-width: 768px){
.hero{ padding: 32px 0 52px; }
.hero__crest-wrap{ width:150px; height:150px; margin-bottom:18px; }
.hero__crest{ width:96px; }
.hero__stats{ grid-template-columns: repeat(2,1fr); gap:12px; margin-top:44px; }
.hero__stat{ padding:16px 8px; }
.hero__stat strong{ font-size:1.5rem; }
}
@media (max-width: 480px){
.hero__ctas{ gap:12px; }
.hero__ctas .btn{ min-width: 148px; }
.hero__stats{ grid-template-columns: repeat(2,1fr); gap:10px; }
}
/* Trust strip — thin, quiet proof line directly under the hero */
.trust-strip{
  padding: 22px 0;
  border-top: 1px solid rgba(184,137,47,.16);
  border-bottom: 1px solid rgba(184,137,47,.16);
}
.trust-strip__inner{
  display:flex; align-items:center; justify-content:center;
  flex-wrap:wrap; gap:18px; text-align:center;
}
.trust-strip__item{
  font-size:.92rem; color: var(--text-muted);
  text-decoration:none; transition: color var(--transition-soft);
}
.trust-strip__item strong{
  font-family: var(--font-display); font-weight:700; color: var(--c-gold-dark);
}
a.trust-strip__item:hover{ color: var(--c-black); }
a.trust-strip__item:hover strong{ color: var(--c-gold-deep); text-decoration: underline; }
.trust-strip__divider{ width:1px; height:14px; background: rgba(184,137,47,.3); flex-shrink:0; }
@media (max-width: 640px){
.trust-strip{ padding: 18px 0; }
.trust-strip__inner{ flex-direction:column; gap:14px; }
.trust-strip__item{ display:block; padding:2px 0; }
.trust-strip__divider{ display:none; }
}
/* Divider ornament */
.ornament{ display:flex; align-items:center; justify-content:center; gap:14px; margin: 8px 0 40px; }
.ornament::before, .ornament::after{ content:""; height:1px; width:64px; background: var(--grad-gold); }
.ornament i{ width:8px; height:8px; border-radius:50%; background: var(--c-gold); transform: rotate(45deg); }
/* Cards */
.grid{ display:grid; gap: 28px; }
.grid-2{ grid-template-columns: repeat(2,1fr); }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-4{ grid-template-columns: repeat(4,1fr); }
.card{
  background: var(--c-white);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(184,137,47,.12);
  height:100%;
}
.card__icon{
  width:58px; height:58px; border-radius: 50%;
  background: var(--grad-gold-soft);
  border:1px solid var(--border-soft);
  display:flex; align-items:center; justify-content:center;
  font-size:1.5rem; margin-bottom:20px; color: var(--c-gold-dark);
}
.card p{ color: var(--text-muted); font-size:.96rem; margin:0; }
.card__link{
  margin-top:18px; display:inline-flex; align-items:center; gap:8px;
  font-weight:700; color: var(--c-gold-dark); font-size:.88rem;
}
.card__link .arrow{ transition: transform var(--transition-interactive-card); }
/* Reusable interaction for cards that lead to another destination.  Applied
   deliberately in markup, so profile, regulation and other static cards do
   not acquire pointer-driven motion. */
.interactive-card{
  transition: transform var(--transition-interactive-card), box-shadow var(--transition-interactive-card), border-color var(--transition-interactive-card);
}
.interactive-card .card__icon,
.interactive-card .news-card__link-icon{
  transition: transform var(--transition-interactive-card), background var(--transition-interactive-card), color var(--transition-interactive-card);
}
@media (hover:hover) and (pointer:fine){
.interactive-card:hover{
    transform:translateY(-5px);
    border-color:rgba(184,137,47,.42);
    box-shadow:0 18px 40px -18px rgba(20,17,10,.28);
  }
.interactive-card:hover .card__icon{ transform:translateY(-2px) scale(1.01); }
.interactive-card:hover .card__link .arrow,
  .interactive-card:hover .news-card__link-icon{ transform:translateX(4px); }
html[dir="rtl"] .interactive-card:hover .card__link .arrow{ transform:translateX(-4px); }
html[dir="rtl"] .interactive-card:hover .news-card__link-icon{ transform:scaleX(-1) translateX(3px); }
.interactive-card:hover .news-card__media img{ transform:scale(1.025); }
}
.interactive-card:focus-visible,
.interactive-card:focus-within{
  border-color:rgba(184,137,47,.52);
  box-shadow:0 18px 40px -18px rgba(20,17,10,.28), 0 0 0 3px rgba(184,137,47,.2);
}
.interactive-card:is(:focus-visible,:focus-within) .card__link .arrow,
.interactive-card:is(:focus-visible,:focus-within) .news-card__link-icon{ transform:translateX(4px); }
html[dir="rtl"] .interactive-card:is(:focus-visible,:focus-within) .card__link .arrow{ transform:translateX(-4px); }
html[dir="rtl"] .interactive-card:is(:focus-visible,:focus-within) .news-card__link-icon{ transform:scaleX(-1) translateX(3px); }
@media (prefers-reduced-motion: reduce){
.interactive-card{ transition:border-color .01ms linear, box-shadow .01ms linear; }
}
.card--dark{
  background: var(--c-charcoal); color: var(--text-inverse); border-color: rgba(227,194,115,.15);
}
.card--dark p{ color: rgba(255,255,255,.68); }
.card--dark .card__icon{ background: rgba(227,194,115,.1); }
.card--compact{ padding: 22px 20px; }
.card--compact .card__icon{ width:46px; height:46px; font-size:1.25rem; margin-bottom:14px; }
.card--compact p{ font-size:.9rem; }
/* Homepage calendar — Gregorian primary, calculated Hijri secondary. */
.home-news-calendar-layout{ display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,340px); grid-template-areas:"main sidebar"; gap:28px; align-items:start; }
.news-home-main{ grid-area:main; min-width:0; }
.home-calendar-sidebar{ grid-area:sidebar; min-width:0; }
html[dir="rtl"] .home-news-calendar-layout{ grid-template-columns:minmax(320px,340px) minmax(0,1fr); grid-template-areas:"sidebar main"; }
.home-calendar-sidebar__head{ margin-bottom:10px; }
.home-calendar-sidebar__head .eyebrow{ margin-bottom:6px; font-size:.72rem; }
.home-calendar-sidebar__head h2{ margin:0 0 5px; font-size:clamp(1.18rem,1.8vw,1.48rem); line-height:1.35; }
.home-calendar-sidebar__head p{ margin:0; color:var(--text-muted); font-size:.84rem; line-height:1.65; }
.academy-calendar{
  max-width:none; margin:0; padding:16px 13px;
  background:var(--c-white); border:1px solid rgba(184,137,47,.2); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card);
}
.academy-calendar__toolbar{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; margin-bottom:14px; }
.academy-calendar__heading{ display:grid; gap:2px; min-width:0; text-align:center; }
.academy-calendar__heading strong{ color:var(--c-black); font-family:var(--font-display); font-size:clamp(1.05rem,1.65vw,1.28rem); line-height:1.3; }
.academy-calendar__heading span{ color:var(--c-gold-dark); font-size:.77rem; font-weight:800; }
.academy-calendar__nav{ width:36px; height:36px; display:grid; place-items:center; padding:0; border:1px solid rgba(184,137,47,.35); border-radius:50%; background:transparent; color:var(--c-gold-dark); transition:transform var(--transition-interactive-card), border-color var(--transition-interactive-card), background var(--transition-interactive-card); }
.academy-calendar__nav svg{ width:18px; height:18px; }
.academy-calendar__nav[data-calendar-previous] svg{ transform:scaleX(-1); }
html[dir="rtl"] .academy-calendar__nav[data-calendar-previous] svg{ transform:none; }
html[dir="rtl"] .academy-calendar__nav[data-calendar-next] svg{ transform:scaleX(-1); }
@media (hover:hover) and (pointer:fine){
.academy-calendar__nav:hover{ transform:translateY(-2px); border-color:var(--c-gold); background:var(--grad-gold-soft); }
}
.academy-calendar__grid{ min-width:0; }
.academy-calendar__days{ display:grid; gap:3px; }
.academy-calendar__weekdays{ margin-bottom:3px; }
.academy-calendar__weekdays span{ min-width:0; padding:5px 1px; color:var(--text-muted); font-size:.58rem; font-weight:800; line-height:1.35; text-align:center; }
.academy-calendar__day.is-today{ border-color:var(--c-gold); background:var(--grad-gold-soft); box-shadow:inset 0 0 0 1px rgba(184,137,47,.12); }
.academy-calendar__day.is-today strong{ color:var(--c-gold-deep); }
.academy-calendar__note{ max-width:720px; margin:13px auto 0; color:var(--text-muted); font-size:.7rem; line-height:1.6; text-align:center; }
html[dir="rtl"] .academy-calendar__heading,html[dir="rtl"] .academy-calendar__note{ font-family:var(--font-ar-body); }
@media (max-width:560px){
.academy-calendar{ padding:15px 10px; border-radius:20px; }
.academy-calendar__toolbar{ gap:8px; margin-bottom:14px; }
.academy-calendar__nav{ width:38px; height:38px; }
.academy-calendar__weekdays span{ padding-inline:1px; font-size:.61rem; }
.academy-calendar__days{ gap:3px; }
.academy-calendar__note{ padding-inline:8px; font-size:.72rem; }
}
@media (max-width:1099px){
/* Match the RTL selector specificity from the desktop rule. Without this,
     RTL keeps its two desktop tracks below 1100px and pushes the calendar into
     an unintended implicit grid row/column. */
  .home-news-calendar-layout,
  html[dir="rtl"] .home-news-calendar-layout{ grid-template-columns:minmax(0,1fr); grid-template-areas:"main" "sidebar"; }
.home-calendar-sidebar{ width:min(100%,680px); }
.academy-calendar{ padding:18px 14px; }
.academy-calendar__weekdays span{ font-size:.68rem; }
}
/* Academy news preview */
.section--news-home{ overflow:hidden; padding-block:56px 64px; }
.news-section-head{ display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:14px; }
.news-section-head .section-head{ margin:0; text-align:start; max-width:680px; }
.news-section-head .section-head.center{ text-align:start; }
.news-section-head .section-head .eyebrow{ justify-content:flex-start; }
.news-carousel{ position:relative; width:100%; max-width:none; margin:0; }
.news-banner__stage{ position:relative; min-height:0; overflow:visible; border:1px solid rgba(184,137,47,.3); border-radius:var(--radius-lg); background:#fffdf8; box-shadow:0 18px 42px rgba(55,41,16,.1); isolation:isolate; transition:min-height 180ms ease; }
.news-banner{ position:relative; display:grid; align-items:center; min-height:0; overflow:hidden; opacity:1; transition:opacity 180ms ease, transform 180ms ease; background:linear-gradient(135deg,#fffdf8 0%,#f8f0dd 52%,#fffaf1 100%); }
.news-banner::before{ content:""; position:absolute; inset:0; pointer-events:none; background-image:linear-gradient(rgba(184,137,47,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(184,137,47,.08) 1px,transparent 1px); background-size:42px 42px; opacity:.5; }
.news-banner__pattern{ position:absolute; inset:0; pointer-events:none; }
.news-banner__content{ position:relative; z-index:3; display:flex; flex-direction:column; align-items:flex-start; gap:10px; width:min(100%,720px); padding:clamp(26px,3.5vw,42px); color:var(--c-black); }
.news-banner__meta{ display:flex; align-items:center; gap:12px; color:var(--c-gold-dark); font-size:.78rem; font-weight:800; letter-spacing:.035em; }
.news-banner__meta time{ color:var(--text-muted); font-weight:700; }
.news-banner__demo{ border:1px solid rgba(184,137,47,.38); color:var(--c-gold-dark); background:rgba(255,255,255,.58); border-radius:var(--radius-full); padding:4px 10px; font-size:.72rem; font-weight:800; }
.news-banner__content h3{ font-family:var(--font-body); font-size:clamp(1.72rem,2.7vw,2.3rem); line-height:1.3; margin:0; color:var(--c-black); }
.news-banner__content p{ color:var(--text-muted); margin:0; max-width:60ch; line-height:1.8; font-size:clamp(.88rem,1.2vw,1rem); }
.news-banner__link{ display:inline-flex; align-items:center; gap:8px; width:max-content; margin-top:4px; padding:10px 15px; border:1px solid rgba(184,137,47,.58); border-radius:var(--radius-full); color:var(--c-black); font-size:.87rem; font-weight:800; background:rgba(255,255,255,.5); transition:var(--transition-soft); }
.news-banner__link:hover{ color:#17120a; background:var(--grad-gold); border-color:var(--c-gold-light); }
.news-card{ flex:0 0 calc((100% - 44px) / 3); min-width:0; background:var(--c-white); border:1px solid rgba(184,137,47,.16); border-radius:var(--radius-md); box-shadow:0 12px 30px rgba(39,29,13,.055); overflow:hidden; display:flex; flex-direction:column; }
.news-card__media{ position:relative; display:grid; place-items:center; aspect-ratio:16/8; background:linear-gradient(145deg, rgba(184,137,47,.14), rgba(255,255,255,.82)); overflow:hidden; isolation:isolate; }
.news-card__media::before,.news-article__image--fallback::before{ content:""; position:absolute; inset:10px; border:1px solid rgba(184,137,47,.14); border-radius:calc(var(--radius-md) - 4px); pointer-events:none; }
.news-card__media img{ width:100%; height:100%; object-fit:cover; transition:transform var(--transition-soft); }
.news-card__media--fallback{ background:linear-gradient(135deg, #fffdf8, #f5e8c8 52%, #fffaf0); }
.news-card__media--fallback img{ width:min(64%, 220px); height:72%; object-fit:contain; padding:0; filter:drop-shadow(0 7px 11px rgba(78,53,12,.12)); }
.interactive-card:focus-within .news-card__media img{ transform:scale(1.025); }
.news-card__body{ padding:18px 20px 20px; display:flex; flex-direction:column; gap:9px; flex:1; }
.news-card__meta{ display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--c-gold-dark); font-size:.74rem; font-weight:800; letter-spacing:.02em; }
.news-card__meta time{ color:var(--text-muted); font-weight:700; }
.news-card__demo{ align-self:flex-start; border:1px solid rgba(184,137,47,.28); color:var(--c-gold-dark); background:var(--grad-gold-soft); border-radius:var(--radius-full); padding:4px 10px; font-size:.72rem; font-weight:800; }
.news-card h3{ font-family:var(--font-body); font-size:1.06rem; line-height:1.55; margin:0; color:var(--c-black); }
.news-card h3 a{ color:inherit; }
.news-card p{ color:var(--text-muted); margin:0; line-height:1.7; font-size:.88rem; flex:1; }
.news-card .card__link{ display:inline-flex; align-items:center; gap:7px; width:max-content; margin-top:2px; }
.news-card__link-icon{ width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; transition:transform var(--transition-soft); }
.news-banner__link:hover .news-card__link-icon{ transform:translateX(3px); }
html[dir="rtl"] .news-banner__link:hover .news-card__link-icon{ transform:scaleX(-1) translateX(3px); }
html[dir="rtl"] .news-card__link-icon,html[dir="rtl"] .news-banner__link .news-card__link-icon{ transform:scaleX(-1); }
.news-carousel__controls{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:14px; margin-top:-1px; padding:12px 16px; border:1px solid rgba(184,137,47,.3); border-top:0; border-radius:0 0 var(--radius-lg) var(--radius-lg); background:#fffdf8; }
.news-banner__stage{ border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
.news-carousel__btn{ width:42px; height:42px; border-radius:50%; border:1px solid rgba(184,137,47,.48); background:rgba(255,253,248,.88); backdrop-filter:blur(5px); color:var(--c-gold-deep); font-size:1.34rem; display:grid; place-items:center; cursor:pointer; pointer-events:auto; transition:var(--transition-soft); box-shadow:0 6px 16px rgba(55,41,16,.08); }
.news-carousel__btn:hover:not(:disabled){ background:rgba(184,137,47,.82); border-color:var(--c-gold-light); }
.news-carousel__btn:disabled{ opacity:.45; cursor:not-allowed; }
.news-carousel__dots{ display:flex; gap:8px; align-items:center; justify-content:center; }
.news-carousel__dots button{ width:8px; height:8px; padding:0; border:0; border-radius:50%; background:rgba(90,72,37,.35); cursor:pointer; box-shadow:0 1px 3px rgba(55,41,16,.16); }
.news-carousel__dots button.active{ width:24px; border-radius:var(--radius-full); background:var(--c-gold); transform:none; }
.news-carousel__btn--previous{ justify-self:start; }
.news-carousel__btn--next{ justify-self:end; }
.news-list-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.news-article__shell{ max-width:900px; margin-inline:auto; background:var(--c-white); border:1px solid rgba(184,137,47,.16); border-radius:var(--radius-lg); box-shadow:var(--shadow-card); padding:34px; }
.news-article__meta{ display:flex; gap:16px; flex-wrap:wrap; align-items:center; color:var(--c-gold-dark); font-weight:800; margin-bottom:18px; }
.news-article__meta time{ color:var(--text-muted); font-weight:700; }
.news-article__meta strong{ border:1px solid rgba(184,137,47,.28); border-radius:var(--radius-full); padding:3px 10px; background:var(--grad-gold-soft); }
.news-article__image{ position:relative; aspect-ratio:16/9; display:grid; place-items:center; background:linear-gradient(145deg, rgba(184,137,47,.18), rgba(255,255,255,.72)); border-radius:var(--radius-md); overflow:hidden; margin-bottom:28px; isolation:isolate; }
.news-article__image img{ width:100%; height:100%; object-fit:cover; }
.news-article__image--fallback{ background:linear-gradient(135deg, #fffdf8, #f5e8c8 52%, #fffaf0); }
.news-article__image--fallback img{ width:min(62%, 420px); height:70%; object-fit:contain; filter:drop-shadow(0 10px 18px rgba(78,53,12,.12)); }
.news-article__body{ color:var(--text-muted); font-size:1.04rem; line-height:2.05; margin-bottom:28px; }
.news-article__body p + p{ margin-top:14px; }
@media (max-width: 1020px){
.news-card{ flex-basis:calc((100% - 22px) / 2); }
.news-list-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px){
.news-section-head{ display:block; }
.news-section-head .btn{ margin-top:18px; }
.news-card{ flex-basis:100%; }
.news-list-grid{ grid-template-columns:1fr; }
.news-card__body{ padding:18px; }
.news-card__meta{ display:grid; gap:4px; justify-content:start; }
.news-card__media{ aspect-ratio:16/8.5; }
.news-card__media--fallback img{ width:min(62%, 210px); }
.section--news-home{ padding-block:48px 56px; }
.news-banner__stage{ min-height:0; }
.news-banner__content{ align-self:center; width:100%; padding:26px 24px; gap:10px; }
html[dir="rtl"] .news-banner__content{ padding:26px 24px; }
.news-banner__meta{ font-size:.74rem; }
.news-banner__content h3{ font-size:clamp(1.35rem,6.7vw,1.82rem); }
.news-banner__content p{ font-size:.88rem; line-height:1.72; }
.news-carousel__btn{ width:36px; height:36px; font-size:1.16rem; }
.news-carousel__controls{ gap:8px; margin-top:-1px; padding:10px 12px; }
.news-article__shell{ padding:24px 20px; }
}
.hero-media{
  display:grid; grid-template-columns: 220px 1fr; gap: 34px; align-items:center;
  max-width: 920px; margin-inline:auto;
  background: var(--c-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); border: 1px solid rgba(184,137,47,.12);
  padding: 28px 34px;
}
.hero-media__image{ justify-self:center; }
.hero-media__photo{
  width:180px; height:180px; object-fit:cover; border-radius:50%;
  border: 4px solid var(--c-white);
  box-shadow: 0 0 0 3px rgba(184,137,47,.35), 0 14px 34px -10px rgba(20,17,10,.22);
}
.hero-media__quote{
  font-family: var(--font-display); font-size:1.35rem; line-height:1.65;
  color: var(--c-black-soft); margin: 12px 0 18px; padding:0; border:none;
}
.hero-media__name{ font-weight:800; color: var(--c-black); margin:0; }
.hero-media__role{ color: var(--text-muted); font-size:.95rem; margin:4px 0 0; }
@media (max-width: 720px){
.hero-media{ grid-template-columns: 1fr; text-align:center; padding: 28px 24px; }
.hero-media__photo{ width:150px; height:150px; }
.hero-media__quote{ font-size:1.15rem; }
}
/* Department / feature strip */
.feature-row{ display:flex; gap:16px; align-items:flex-start; padding: 18px 0; border-bottom: 1px solid var(--c-gray-200); }
.feature-row:last-child{ border-bottom:none; }
.feature-row__num{ font-family: var(--font-display); font-size:1.4rem; color: var(--c-black-soft); width:44px; flex-shrink:0; }
/* Course card */
.course-card{
  background: var(--c-white); border-radius: var(--radius-md); overflow:hidden;
  border:1px solid rgba(184,137,47,.14); box-shadow: var(--shadow-card);
  display:flex; flex-direction:column; height:100%;
}
.course-card__poster{
  display:block; height:270px; padding:18px; overflow:hidden; position:relative;
  background: var(--grad-dark);
  border-bottom:1px solid rgba(184,137,47,.35);
}
.course-card__poster::before{
  content:""; position:absolute; inset:10px;
  box-shadow: inset 0 0 0 1px rgba(227,194,115,.35), inset 0 18px 34px -22px rgba(0,0,0,.7);
  border-radius: calc(var(--radius-sm) - 2px); pointer-events:none; z-index:1;
}
.course-card__poster img{
  display:block; width:100%; height:100%; object-fit:contain;
  border-radius: calc(var(--radius-sm) - 2px);
  transition:transform var(--transition-soft);
}
.course-card__poster picture,
.team-card__photo picture,
.media-frame picture{ display:block; width:100%; height:100%; }
.course-card__poster:hover img{ transform:scale(1.015); }
.course-card__top{ padding: 24px 26px 16px; min-height:225px; }
.course-card__badge{
  display:inline-flex; align-items:center; gap:6px;
  font-size:.72rem; font-weight:800; letter-spacing:.04em;
  padding:5px 14px; border-radius: var(--radius-full); margin-bottom:14px;
}
.badge-current{ background: var(--c-black); color: var(--c-gold-light); }
.badge-upcoming{ background: rgba(184,137,47,.14); color: var(--c-gold-dark); }
.course-card__dept{ font-size:.78rem; color: var(--c-gold-dark); font-weight:700; margin-bottom:6px; }
.course-card p.desc{ color: var(--text-muted); font-size:.93rem; }
.course-card__quick{
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px;
  margin-top:auto; background:var(--c-gray-200); border-top:1px solid var(--c-gray-200);
  border-bottom:1px solid var(--c-gray-200);
}
.course-card__quick-item{ padding:13px 12px; text-align:center; background:var(--c-cream); }
.course-card__quick-item span{ display:block; color:var(--c-gray-500); font-size:.72rem; margin-bottom:3px; }
.course-card__quick-item strong{ display:block; color:var(--c-black); font-size:.8rem; line-height:1.55; }
.course-card__more{ border-bottom:1px solid var(--c-gray-200); }
.course-card__more summary{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:13px 26px; color:var(--c-gold-dark); font-size:.82rem;
  font-weight:800; cursor:pointer; list-style:none; background:var(--c-white);
}
.course-card__more summary::-webkit-details-marker{ display:none; }
.course-card__more summary::after{ content:"+"; font-size:1.15rem; line-height:1; transition:transform var(--transition-soft); }
.course-card__more[open] summary::after{ transform:rotate(45deg); }
.course-card__meta{ padding:8px 26px 12px; display:grid; gap:0; border-top:1px solid var(--c-gray-200); }
.course-card__detail{ display:grid; grid-template-columns:minmax(90px,.7fr) 1.5fr; gap:12px; align-items:start; padding:9px 0; border-bottom:1px dashed var(--c-gray-200); font-size:.84rem; color:var(--text-muted); }
.course-card__detail:last-child{ border-bottom:0; }
.course-card__detail strong{ color:var(--c-black); font-weight:700; line-height:1.65; }
html[dir="ltr"] .course-card__detail{ grid-template-columns:minmax(105px,.75fr) 1.5fr; }
.course-card__actions{ display:flex; gap:10px; padding:18px 26px 22px; margin-top:auto; }
.course-card__actions .btn{ flex:1; padding: 12px 14px; font-size:.86rem; }
.courses-grid--single{ grid-template-columns:minmax(0,760px); justify-content:center; }
.courses-grid--two{ grid-template-columns:repeat(2,minmax(0,1fr)); max-width:1040px; margin-inline:auto; }
.courses-grid--two .course-card:last-child:nth-child(odd){ grid-column:1 / -1; width:min(100%,510px); justify-self:center; }
.courses-empty{
  max-width:760px; margin-inline:auto; padding:52px 32px; text-align:center;
  background:var(--c-white); border:1px solid rgba(184,137,47,.18);
  border-radius:var(--radius-md); box-shadow:var(--shadow-card);
}
.courses-empty h2{ font-size:clamp(1.5rem,3vw,2rem); }
.courses-empty p{ max-width:600px; margin:0 auto 24px; color:var(--text-muted); }
/* Ijazah and recitation-proficiency register */
.records-promo{
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:24px;
  align-items:center; max-width:1080px; margin-inline:auto;
}
.records-promo__icon,
.records-source__icon,
.itqan-notice__icon{
  width:68px; height:68px; border-radius:50%; display:flex;
  align-items:center; justify-content:center; flex-shrink:0;
  color:var(--c-gold-light); background:rgba(184,137,47,.1);
  border:1px solid rgba(227,194,115,.28); font-size:1.8rem;
}
.records-promo h2{ color:var(--c-white); font-size:clamp(1.5rem,2.8vw,2.25rem); margin-bottom:8px; }
.records-promo p{ color:rgba(255,255,255,.7); max-width:720px; margin:0; }
.records-promo__actions{ display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; }
.records-promo__actions .btn{ white-space:normal; text-align:center; }
.ijazah-records-intro{ background:var(--c-white); }
.records-source{
  display:grid; grid-template-columns:auto minmax(0,1fr); gap:28px;
  align-items:start; max-width:1060px; margin-inline:auto;
  padding:38px; border:1px solid rgba(184,137,47,.2);
  border-radius:var(--radius-md); box-shadow:var(--shadow-card);
  background:linear-gradient(135deg,var(--c-white),var(--c-cream));
}
.records-source__icon{ color:var(--c-gold-dark); }
.records-source h2{ font-size:clamp(1.55rem,3vw,2.25rem); }
.records-source p{ color:var(--text-muted); margin-bottom:20px; }
.records-source__meta{ display:flex; align-items:center; flex-wrap:wrap; gap:10px 24px; }
.records-source__meta span,
.records-source__meta a{ display:inline-flex; align-items:center; gap:7px; font-size:.86rem; color:var(--c-gray-700); }
.records-source__meta a{ color:var(--c-gold-dark); font-weight:800; }
.records-source__meta svg{ width:17px; height:17px; }
.records-stats{
  display:grid; grid-template-columns:repeat(3,1fr); gap:18px;
  max-width:900px; margin:32px auto 0;
}
.records-stat{
  padding:24px; text-align:center; border-radius:var(--radius-md);
  border:1px solid rgba(184,137,47,.16); background:var(--c-cream);
}
.records-stat strong{ display:block; color:var(--c-gold-dark); font-size:2rem; line-height:1.2; }
.records-stat span{ color:var(--text-muted); font-size:.88rem; }
.records-index{
  max-width:1060px; margin:28px auto 0; padding:20px 22px;
  border:1px solid rgba(184,137,47,.18); border-radius:var(--radius-md);
  background:var(--c-cream);
}
.records-index > span{ display:block; color:var(--c-gray-500); font-size:.78rem; font-weight:800; margin-bottom:10px; }
.records-index > div{ display:flex; flex-wrap:wrap; gap:9px; }
.records-index a{
  display:inline-flex; align-items:center; gap:7px; padding:8px 12px;
  border-radius:var(--radius-full); border:1px solid rgba(184,137,47,.2);
  background:var(--c-white); color:var(--c-gray-700); font-size:.78rem;
  transition:border-color var(--transition-soft), color var(--transition-soft), transform var(--transition-soft);
}
.records-index a:hover{ color:var(--c-gold-dark); border-color:var(--c-gold); transform:translateY(-2px); }
.records-index a strong{ color:var(--c-gold-dark); }
.itqan-notice{
  display:grid; grid-template-columns:auto minmax(0,1fr); gap:22px;
  max-width:1060px; margin:32px auto 0; padding:30px 34px;
  background:var(--c-black); color:var(--text-inverse);
  border-radius:var(--radius-md); border:1px solid rgba(227,194,115,.2);
}
.itqan-notice h2{ color:var(--c-gold-light); font-size:1.3rem; margin-bottom:8px; }
.itqan-notice p{ color:rgba(255,255,255,.74); margin:0; }
.records-group__head{ position:relative; max-width:900px; margin-bottom:34px; padding-inline-end:100px; }
.records-group{ padding-block:72px; scroll-margin-top:82px; }
.records-group__head h2{ font-size:clamp(1.55rem,3vw,2.3rem); margin-top:12px; }
.records-group__head p{ color:var(--text-muted); margin:0; }
.records-status{
  display:inline-flex; padding:5px 13px; border-radius:var(--radius-full);
  background:var(--c-black); color:var(--c-gold-light);
  font-size:.76rem; font-weight:800;
}
.records-count{
  position:absolute; inset-inline-end:0; top:0; color:var(--c-gold-dark);
  font-size:.9rem; padding:7px 12px; border:1px solid var(--border-soft);
  border-radius:var(--radius-full); white-space:nowrap;
}
.ijazah-record-list{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.ijazah-record{
  display:grid; grid-template-columns:40px minmax(0,1fr); gap:14px;
  padding:20px; background:var(--c-white); border-radius:var(--radius-sm);
  border:1px solid rgba(184,137,47,.14); box-shadow:0 8px 25px -18px rgba(20,17,10,.28);
}
.section--alt .ijazah-record{ background:var(--c-cream); }
.ijazah-record__number{
  width:36px; height:36px; border-radius:50%; display:flex; align-items:center;
  justify-content:center; color:var(--c-gold-dark); background:rgba(184,137,47,.1);
  border:1px solid rgba(184,137,47,.2); font-weight:800; font-size:.82rem;
}
.ijazah-record__identity{ display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; margin-bottom:5px; }
.ijazah-record__identity strong{ color:var(--c-black); font-size:1rem; }
.ijazah-record__identity span{ display:inline-flex; align-items:center; gap:4px; color:var(--c-gray-500); font-size:.78rem; }
.ijazah-record__identity svg{ width:13px; height:13px; }
.ijazah-record p{ color:var(--text-muted); font-size:.88rem; line-height:1.75; margin:0; }
.records-group--paused .ijazah-record{ border-style:dashed; }
.records-group--itqan-completed .records-status{ background:var(--grad-gold); color:var(--c-black); }
.records-top-link{
  display:inline-flex; align-items:center; gap:8px; margin-top:24px;
  color:var(--c-gold-dark); font-size:.82rem; font-weight:800;
}
.records-top-link span{ font-size:1rem; }
.records-signature{ background:var(--grad-dark); }
.records-signature blockquote{
  max-width:900px; margin:0 auto; text-align:center; padding:44px;
  border:1px solid rgba(227,194,115,.2); border-radius:var(--radius-md);
  color:var(--text-inverse); background:rgba(255,255,255,.025);
}
/* Qur'anic Ijazah Program Regulation */
.regulation-page{ background:var(--c-cream); padding-block:64px; }
.regulation-cover{
  max-width:880px; margin-inline:auto; padding:30px clamp(20px,4vw,38px) 32px;
  border:1px solid rgba(184,137,47,.2); border-radius:22px;
  background:linear-gradient(135deg,var(--c-white),var(--c-cream)); box-shadow:0 18px 45px -34px rgba(20,17,10,.42);
}
.regulation-cover .eyebrow{ margin-bottom:8px; }
.regulation-cover h2{ font-size:clamp(1.55rem,3vw,2.35rem); margin:8px 0 10px; line-height:1.65; text-wrap:balance; }
.regulation-cover__academy{ color:var(--c-black); font-weight:800; font-size:clamp(1rem,1.5vw,1.18rem); margin-bottom:6px; line-height:1.75; }
.regulation-cover__supervision{ color:var(--text-muted); margin:0 auto 18px; max-width:760px; font-size:.96rem; line-height:1.9; }
.regulation-supervisors{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; gap:10px 14px;
  padding-top:18px; border-top:1px solid rgba(184,137,47,.18);
}
.regulation-supervisors span{ grid-column:1 / -1; color:var(--c-gold-dark); font-size:.8rem; font-weight:900; letter-spacing:.03em; }
.regulation-supervisors strong{
  display:flex; align-items:center; justify-content:center; min-height:44px; padding:8px 14px;
  color:var(--c-black); font-size:.95rem; line-height:1.75; text-align:center;
  border:1px solid rgba(184,137,47,.16); border-radius:14px; background:rgba(255,255,255,.42);
}
.regulation-articles{
  display:grid; gap:12px; max-width:880px; margin:18px auto 0;
}
.regulation-article{
  padding:22px clamp(18px,3vw,28px); background:var(--c-white); border:1px solid rgba(184,137,47,.16);
  border-radius:18px; box-shadow:0 10px 24px -22px rgba(20,17,10,.32);
}
.regulation-article h2{
  color:var(--c-gold-dark); font-size:clamp(1.06rem,1.65vw,1.28rem);
  margin-bottom:10px; line-height:1.9; padding-bottom:8px; border-bottom:1px solid rgba(184,137,47,.12);
}
.regulation-article p,
.regulation-list li,
.regulation-bullets li{
  color:var(--text-muted); line-height:2.05; font-size:clamp(.96rem,1vw,1rem);
}
.regulation-article p{ margin-bottom:9px; }
.regulation-list{
  display:grid; gap:7px; margin:0; padding-inline-start:1.45rem;
}
html[dir="rtl"] .regulation-list{ padding-inline-start:0; padding-inline-end:1.45rem; }
.regulation-list li::marker{ color:var(--c-gold-dark); font-weight:900; }
.regulation-subsections{ display:grid; gap:12px; }
.regulation-subsection{
  padding:14px 16px; border:1px solid rgba(184,137,47,.12); border-radius:16px;
  background:var(--c-cream);
}
.regulation-subsection h3{ font-size:1rem; color:var(--c-black); margin-bottom:6px; line-height:1.85; }
.regulation-bullets{ display:grid; gap:6px; margin:6px 0 0; padding-inline-start:1.2rem; }
html[dir="rtl"] .regulation-bullets{ padding-inline-start:0; padding-inline-end:1.2rem; }
.regulation-bullets li::marker{ color:var(--c-gold-dark); }
.regulation-back{ max-width:880px; margin:20px auto 0; }
.regulation-back .btn{ max-width:100%; white-space:normal; text-align:center; }
@media (max-width: 768px){
.regulation-page{ padding-block:48px; }
.regulation-cover{ padding:24px 20px 26px; border-radius:18px; }
.regulation-cover h2{ font-size:clamp(1.42rem,7vw,1.95rem); line-height:1.8; }
.regulation-cover__academy{ font-size:1rem; }
.regulation-cover__supervision{ font-size:.92rem; line-height:2; }
.regulation-supervisors{ grid-template-columns:1fr; gap:8px; }
.regulation-supervisors strong{ min-height:0; padding:8px 12px; }
.regulation-articles{ gap:10px; margin-top:14px; }
.regulation-article{ padding:18px 16px; border-radius:16px; }
.regulation-article h2{ font-size:1.05rem; line-height:2; }
.regulation-article p,
  .regulation-list li,
  .regulation-bullets li{ font-size:.95rem; line-height:2.1; }
}
@media (max-width: 390px){
.regulation-page{ padding-block:42px; }
.regulation-cover{ padding-inline:16px; }
.regulation-article{ padding-inline:14px; }
}
.records-signature blockquote > p{ color:rgba(255,255,255,.78); font-size:1.08rem; }
.records-signature footer{ display:flex; flex-direction:column; gap:6px; padding-top:20px; border-top:1px solid rgba(227,194,115,.16); }
.records-signature footer strong{ color:var(--c-gold-light); font-size:1.08rem; }
.records-signature footer span{ color:rgba(255,255,255,.58); font-size:.84rem; }
@media (max-width:640px){
.course-card__top{ min-height:auto; }
.course-card__poster{ height:230px; }
.course-card__quick{ grid-template-columns:1fr; }
.course-card__quick-item{ text-align:start; padding:11px 20px; }
.course-card__quick-item span{ display:inline; margin-inline-end:8px; }
.course-card__quick-item strong{ display:inline; }
.course-card__detail{ grid-template-columns:1fr; gap:2px; }
}
/* Team */
.team-card{
  text-align:center; padding: 36px 24px; background:var(--c-white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); border:1px solid rgba(184,137,47,.12);
  height:100%; display:flex; flex-direction:column; align-items:stretch;
}
.team-card__photo{
  flex:0 0 auto; width:150px; height:150px; border-radius:50%; overflow:hidden; margin:0 auto 22px;
  border: 4px solid var(--c-white); box-shadow: 0 0 0 3px rgba(184,137,47,.35), 0 12px 30px -8px rgba(20,17,10,.20);
}
.team-card__photo img{ width:100%; height:100%; object-fit:cover; object-position:center; }
.team-card__avatar{
  flex:0 0 auto; width:150px; height:150px; border-radius:50%; margin:0 auto 22px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(184,137,47,.06); border:2px dashed var(--border-soft);
  font-family: var(--font-display); font-size:2.2rem; color: var(--c-gold-dark);
}
.team-card__avatar svg{
  width:58%; height:58%; display:block;
}
.team-card__avatar img{
  width:100%; height:100%; object-fit:contain; display:block;
}
.team-card .role{
  display:flex; align-items:center; justify-content:center;
  min-height:2.8rem; color: var(--c-gold-dark); font-weight:700; font-size:.88rem;
  line-height:1.65; margin-bottom:16px;
}
.team-card .spec{ font-size:.8rem; color: var(--text-muted); margin-top:14px; padding-top:14px; border-top:1px solid var(--c-gray-200); }
.team-card p.bio{ font-size:.9rem; color: var(--text-muted); line-height:1.9; }
.team-card__bio-lines{ display:grid; gap:.75rem; text-align:start; align-content:start; }
.team-card__bio-lines p.bio{ margin:0; line-height:1.9; overflow-wrap:break-word; }
.team-members-grid{ align-items:stretch; }
.team-tier{ margin-bottom:56px; }
.team-tier:last-of-type{ margin-bottom:0; }
.team-members-grid{ max-width:1040px; margin-inline:auto; }
.team-members-grid--senior{ max-width:1120px; }
.team-members-grid--admin{ max-width:740px; }
.team-members-grid--senior .team-card__photo,
.team-members-grid--senior .team-card__avatar{ width:156px; height:156px; }
.team-members-grid--senior .team-card .role{ min-height:3rem; }
.team-growth{
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:20px;
  align-items:center; max-width:1000px; margin:32px auto 0; padding:26px 30px;
  border:1px dashed rgba(184,137,47,.35); border-radius:var(--radius-md);
  background:var(--c-white);
}
.team-growth__icon{
  width:54px; height:54px; border-radius:50%; display:flex; align-items:center;
  justify-content:center; color:var(--c-gold-dark); background:var(--grad-gold-soft);
  border:1px solid var(--border-soft); font-size:1.3rem;
}
.team-growth p{ margin:0; color:var(--text-muted); font-size:.9rem; }
/* Vision/Mission */
.vm-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:28px; }
.vm-card{
  padding: 44px 38px; border-radius: var(--radius-lg);
  background: var(--c-white);
  border: 1px solid rgba(184,137,47,.16);
  box-shadow: var(--shadow-card);
  position:relative;
}
.vm-card::before{
  content:""; position:absolute; inset-inline-start:0; top:0; bottom:0; width:5px;
  background: var(--grad-gold); border-radius: var(--radius-full);
}
.vm-card h3{ font-size:1.5rem; }
.vm-card p{ color: var(--text-muted); }
/* Stats strip */
.stats-strip{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.stat-box{ text-align:center; }
.stat-box strong{ font-family:var(--font-display); font-size:2.4rem; color:var(--c-gold-dark); display:block; }
.stat-box span{ color:var(--text-muted); font-size:.88rem; }
/* CTA band */
.cta-band{
  background: var(--grad-dark); color:var(--c-white);
  border-radius: var(--radius-lg); padding: 60px 48px;
  display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
  position:relative; overflow:hidden;
}
.cta-band::before{ content:""; position:absolute; inset:0; background: radial-gradient(circle at 85% 20%, rgba(227,194,115,.22), transparent 45%); }
.cta-band__text{ position:relative; z-index:1; max-width:560px; }
.cta-band h2{ color:var(--c-white); font-size:1.9rem; margin-bottom:10px; }
.cta-band p{ color:rgba(255,255,255,.72); margin:0; }
.cta-band__actions{ position:relative; z-index:1; display:flex; gap:14px; flex-wrap:wrap; }
/* Contact page */
.contact-grid{ display:grid; grid-template-columns: 1fr 1.15fr; gap:40px; align-items:start; }
/* Sized explicitly so the heading keeps the 1.17em it inherited as an h3. */
.contact-info-card{
  background: var(--c-charcoal); color:var(--c-white); border-radius: var(--radius-lg);
  padding: 40px 34px; position:relative; overflow:hidden;
}
.contact-info-card::before{ content:""; position:absolute; inset:0; background: radial-gradient(circle at 20% 0%, rgba(227,194,115,.18), transparent 50%); }
.contact-info-item{ display:flex; gap:16px; align-items:flex-start; padding: 18px 0; border-bottom:1px solid rgba(255,255,255,.1); position:relative; z-index:1; }
.contact-info-item:last-child{ border-bottom:none; }
.contact-info-item .ic{
  width:44px; height:44px; border-radius:12px; background: rgba(227,194,115,.12);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; color: var(--c-gold-light);
}
.contact-info-item strong{ display:block; color:var(--c-white); font-size:.95rem; margin-bottom:4px; }
.contact-info-item span, .contact-info-item a{ color: rgba(255,255,255,.68); font-size:.9rem; }
.contact-info-item a:hover{ color: var(--c-gold-light); }
.form-card{ background: var(--c-white); border-radius: var(--radius-lg); padding: 42px 38px; box-shadow: var(--shadow-card); border:1px solid rgba(184,137,47,.14); }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.form-field{ display:flex; flex-direction:column; gap:8px; margin-bottom:20px; min-width:0; }
.form-field.full{ grid-column: 1 / -1; }
.form-field label{ font-size:.86rem; font-weight:700; color: var(--c-gray-900); }
.form-field input, .form-field select, .form-field textarea{
  padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--c-gray-200);
  background: var(--c-cream); font-size:.94rem; color: var(--c-black);
  transition: border-color var(--transition-soft), background var(--transition-soft);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline:none; border-color: var(--c-gold); background: var(--c-white);
}
.form-field textarea{ resize:vertical; min-height:130px; }
.form-note{ font-size:.8rem; color: var(--text-muted); margin-top:14px; }
.form-success{
  display:none; margin-top:18px; padding:16px 18px; border-radius: var(--radius-sm);
  background: var(--grad-gold-soft); color: var(--c-gold-dark); font-weight:700; font-size:.9rem;
  border: 1px solid var(--border-soft);
}
.form-success.show{ display:block; }
/* Library */
.media-card{ background:var(--c-white); border-radius: var(--radius-md); overflow:hidden; border:1px solid rgba(184,137,47,.14); box-shadow: var(--shadow-card); }
.media-card__thumb{
  aspect-ratio: 16/10; background: var(--grad-dark); position:relative;
  display:flex; align-items:center; justify-content:center; color: var(--c-gold-light);
}
.media-card__thumb .play{
  width:54px; height:54px; border-radius:50%; background: rgba(255,255,255,.14); border:1px solid rgba(227,194,115,.5);
  display:flex; align-items:center; justify-content:center; font-size:1.1rem; backdrop-filter: blur(4px);
}
.media-card__body{ padding: 20px 22px; }
.media-card__body .cat{ font-size:.72rem; color: var(--c-gold-dark); font-weight:800; text-transform:uppercase; letter-spacing:.05em; margin-bottom:8px; display:block; }
.media-card__body h4{ font-family: var(--font-body); font-size:1.02rem; font-weight:700; margin:0 0 6px; color: var(--c-black); }
.media-card__body span.meta{ font-size:.8rem; color: var(--text-muted); }
/* Canonical video-series library */
.video-library__intro{ max-width:760px; margin-bottom:30px; }
.video-library__intro h2{ font-size:clamp(1.55rem,3vw,2.35rem); margin-bottom:0; }
.video-series-list{ display:grid; gap:24px; }
.video-series{ background:var(--c-white); border:1px solid rgba(184,137,47,.2); border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-card); }
.video-series__head{ display:flex; align-items:flex-start; justify-content:space-between; gap:22px; padding:clamp(22px,3.5vw,36px); background:linear-gradient(135deg,rgba(184,137,47,.1),rgba(255,255,255,.75)); border-bottom:1px solid rgba(184,137,47,.16); }
.video-series__head > div{ display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:14px; align-items:center; }
.video-series__index{ grid-row:span 2; display:grid; place-items:center; width:48px; height:48px; border-radius:14px; color:var(--c-gold-dark); background:var(--grad-gold-soft); font-family:var(--font-display); font-weight:800; }
.video-series__head h2{ margin:0; font-size:clamp(1.32rem,2.3vw,1.85rem); }
.video-series__head p{ grid-column:2; margin:6px 0 0; color:var(--text-muted); }
.video-series__count{ flex-shrink:0; padding:6px 11px; border:1px solid rgba(184,137,47,.28); border-radius:var(--radius-full); color:var(--c-gold-dark); font-size:.74rem; font-weight:800; white-space:nowrap; }
.video-series__empty{ display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:16px; padding:clamp(28px,4vw,44px); }
.video-series__empty-icon{ width:52px; height:52px; display:grid; place-items:center; border-radius:16px; color:var(--c-gold-dark); background:var(--grad-gold-soft); }
.video-series__empty-icon svg{ width:26px; height:26px; }
.video-series__empty h3{ margin:0 0 5px; font-size:1.02rem; }
.video-series__empty p{ margin:0; color:var(--text-muted); font-size:.9rem; }
.video-lesson-list{ display:grid; gap:0; counter-reset:lesson; }
.video-lesson-card{ display:grid; grid-template-columns:auto minmax(0,1fr); gap:18px; padding:22px clamp(22px,3.5vw,36px); border-bottom:1px solid var(--border-soft); }
.video-lesson-card:last-child{ border-bottom:0; }
.video-lesson-card__number{ min-width:58px; height:54px; display:flex; flex-direction:column; align-items:center; justify-content:center; border-radius:12px; color:var(--c-gold-dark); background:var(--grad-gold-soft); font-weight:800; line-height:1.05; }
.video-lesson-card__number span{ font-size:.66rem; }
.video-lesson-card__number strong{ font-size:1.05rem; }
.video-lesson-card__content{ display:grid; grid-template-columns:minmax(0,220px) minmax(0,1fr); gap:18px; }
.video-lesson-card__thumb{ aspect-ratio:16/9; overflow:hidden; border-radius:var(--radius-sm); background:var(--c-charcoal); }
.video-lesson-card__thumb img{ width:100%; height:100%; object-fit:cover; }
.video-lesson-card h3{ margin:0 0 5px; font-size:1.08rem; }
.video-lesson-card__title--arabic{ text-align:right; }
.video-lesson-card p{ margin:0 0 12px; color:var(--text-muted); font-size:.9rem; }
.video-lesson-card__watch{ display:inline-flex; align-items:center; gap:7px; color:var(--c-gold-dark); font-size:.86rem; font-weight:800; }
.video-lesson-card__watch svg{ width:20px; height:20px; }
@media (max-width:640px){
.video-series__head{ display:block; }
.video-series__count{ display:inline-flex; margin-top:14px; }
.video-series__empty{ grid-template-columns:1fr; }
.video-lesson-card__content{ grid-template-columns:1fr; }
}
.audio-card{ display:flex; align-items:center; gap:18px; background:var(--c-white); border:1px solid rgba(184,137,47,.14); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-card); }
.audio-card .play{
  width:52px; height:52px; border-radius:50%; background: var(--grad-gold); color:var(--c-black); flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:1rem; box-shadow: var(--shadow-gold);
}
.audio-card__body{ flex:1; min-width:0; }
.audio-card__body h4{ font-size:.98rem; margin:0 0 4px; font-weight:700; }
.audio-card__body span{ font-size:.8rem; color: var(--text-muted); }
/* Academy archive */
.archive-intro{ padding-bottom:54px; }
.archive-source{
  display:grid; grid-template-columns:auto 1fr; gap:24px; align-items:start;
  padding:34px; border:1px solid rgba(184,137,47,.2); border-radius:var(--radius-lg);
  background:linear-gradient(135deg, var(--c-white), var(--c-cream)); box-shadow:var(--shadow-card);
}
.archive-source__icon{
  width:68px; height:68px; border-radius:20px; display:flex; align-items:center; justify-content:center;
  color:var(--c-gold-dark); background:var(--grad-gold-soft);
}
.archive-source__icon svg{ width:30px; height:30px; }
.archive-source h2{ margin:5px 0 10px; }
.archive-source p{ color:var(--text-muted); margin:0; max-width:900px; }
.archive-source__meta{ display:flex; flex-wrap:wrap; gap:12px 24px; margin-top:20px; }
.archive-source__meta a,.archive-source__meta span{ display:flex; align-items:center; gap:8px; color:var(--c-gold-dark); font-size:.88rem; font-weight:700; }
.archive-source__meta svg{ width:17px; height:17px; }
.archive-audit-note{
  margin:22px 0 30px; padding:18px 22px; border-inline-start:4px solid var(--c-gold);
  border-radius:var(--radius-sm); background:rgba(227,194,115,.1); color:var(--text-muted);
}
.archive-audit-note strong{ display:block; color:var(--c-black); margin-bottom:5px; }
.archive-audit-note p{ margin:0; }
.archive-hub-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.archive-hub-card{
  display:grid; grid-template-columns:auto minmax(0,1fr); gap:16px; align-items:start;
  padding:24px; border:1px solid rgba(184,137,47,.2); border-radius:var(--radius-md);
  background:var(--c-white); box-shadow:var(--shadow-card); scroll-margin-top:100px;
  transition:transform var(--transition-soft), border-color var(--transition-soft), box-shadow var(--transition-soft);
}
.archive-hub-card:hover{ transform:translateY(-3px); border-color:var(--c-gold); box-shadow:var(--shadow-md); }
.archive-hub-card__icon{ display:flex; align-items:center; justify-content:center; width:48px; height:48px; border-radius:14px; background:var(--grad-gold-soft); color:var(--c-gold-dark); }
.archive-hub-card__icon svg{ width:23px; height:23px; }
.archive-hub-card strong{ display:block; color:var(--c-black); font-size:1.05rem; }
.archive-hub-card small{ display:block; color:var(--text-muted); margin-top:7px; line-height:1.7; }
.archive-hub-card__action{ grid-column:2; color:var(--c-gold-dark); font-size:.8rem; font-weight:800; }
.archive-section-nav{ display:flex; gap:8px; overflow-x:auto; padding:3px 2px 14px; margin-bottom:20px; scrollbar-width:thin; }
.archive-section-nav a{ flex:0 0 auto; padding:10px 14px; border:1px solid var(--border-soft); border-radius:var(--radius-full); background:var(--c-white); color:var(--c-gold-dark); font-size:.78rem; font-weight:800; }
.archive-section-nav a:hover{ border-color:var(--c-gold); background:var(--grad-gold-soft); }
.archive-current-courses{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-bottom:30px; }
.archive-current-courses a{ padding:24px; border-radius:var(--radius-md); background:var(--grad-dark); color:var(--c-white); }
.archive-current-courses strong,.archive-current-courses span{ display:block; }
.archive-current-courses strong{ color:var(--c-gold-light); font-size:1.08rem; margin-bottom:5px; }
.archive-current-courses span{ color:rgba(255,255,255,.68); font-size:.86rem; }
.archive-page__footer{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-top:44px; padding-top:24px; border-top:1px solid var(--line); }
.archive-page__footer a{ display:flex; align-items:center; gap:7px; color:var(--c-gold-dark); font-weight:800; }
.archive-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:22px 0; }
.archive-stats a{ background:var(--c-black); color:var(--c-white); padding:22px; border-radius:var(--radius-md); transition:transform var(--transition-soft), border-color var(--transition-soft); border:1px solid transparent; }
.archive-stats a:hover{ transform:translateY(-3px); border-color:var(--c-gold); }
.archive-stats strong{ display:block; color:var(--c-gold-light); font-size:1.9rem; line-height:1; margin-bottom:8px; }
.archive-stats span{ color:rgba(255,255,255,.7); font-size:.82rem; }
.archive-index{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.archive-index a{ display:flex; gap:10px; align-items:center; justify-content:center; padding:14px 16px; border:1px solid var(--border-soft); border-radius:var(--radius-full); background:var(--c-white); color:var(--c-gold-dark); font-weight:800; }
.archive-index a:hover{ background:var(--grad-gold-soft); border-color:var(--c-gold); }
.archive-index svg{ width:18px; height:18px; }
.archive-section{ scroll-margin-top:88px; }
.archive-section__head{ max-width:800px; margin-bottom:30px; }
.archive-section__head h2{ font-size:clamp(1.7rem,3vw,2.35rem); margin:5px 0 9px; }
.archive-section__head p{ color:var(--text-muted); margin:0; }
.archive-subsection{ padding-top:34px; margin-top:34px; border-top:1px solid var(--line); }
.archive-subsection:first-of-type{ margin-top:8px; }
.archive-subsection .archive-section__head{ margin-bottom:18px; }
.archive-table-wrap{ overflow-x:auto; border:1px solid rgba(184,137,47,.18); border-radius:var(--radius-md); background:var(--c-white); box-shadow:var(--shadow-card); }
.archive-table{ width:100%; min-width:760px; border-collapse:collapse; text-align:start; }
.archive-table caption{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.archive-table th{ background:var(--c-black); color:var(--c-gold-light); font-size:.8rem; letter-spacing:.02em; padding:16px 18px; text-align:start; }
.archive-table td{ padding:17px 18px; border-bottom:1px solid var(--c-gray-100); vertical-align:top; font-size:.9rem; }
.archive-table tbody tr:last-child td{ border-bottom:0; }
.archive-table tbody tr:hover{ background:rgba(227,194,115,.075); }
.archive-table td:first-child{ width:36%; }
.archive-table td strong{ display:block; color:var(--c-black); }
.archive-table td span{ display:block; color:var(--text-muted); font-size:.8rem; margin-top:4px; }
.archive-table .archive-date{ white-space:nowrap; width:190px; }
.archive-date time{ display:block; color:var(--c-black); font-weight:700; }
.archive-date small{ display:block; color:var(--c-gold-dark); font-size:.7rem; margin-top:4px; }
.archive-table-wrap--long{ max-height:680px; overflow:auto; }
.archive-table-wrap--long thead{ position:sticky; top:0; z-index:1; }
.archive-course-files{ display:grid; gap:18px; }
.archive-course-file{ border:1px solid rgba(184,137,47,.22); border-radius:var(--radius-md); background:var(--c-white); box-shadow:var(--shadow-card); overflow:hidden; scroll-margin-top:96px; }
.archive-course-file > summary{ cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 22px; background:linear-gradient(135deg,rgba(227,194,115,.12),rgba(255,255,255,.98)); }
.archive-course-file > summary::-webkit-details-marker{ display:none; }
.archive-course-file > summary strong{ display:block; color:var(--c-black); font-size:1.05rem; }
.archive-course-file > summary small{ display:block; color:var(--text-muted); margin-top:5px; }
.archive-course-file > summary > .caret{ border-top-color:var(--c-gold-dark); transition:transform var(--transition-soft); }
.archive-course-file[open] > summary > .caret{ transform:rotate(180deg); }
.archive-course-file .archive-table-wrap{ border:0; border-top:1px solid rgba(184,137,47,.18); border-radius:0; box-shadow:none; }
.archive-record--image{ background:rgba(227,194,115,.06); }
.archive-empty{ color:var(--text-muted); font-size:.92rem; padding:18px 0; }
.archive-empty--page{ padding:34px; border:1px dashed rgba(184,137,47,.4); border-radius:var(--radius-md); background:var(--c-cream); text-align:center; }
.archive-empty--page strong{ display:block; color:var(--c-black); font-size:1.08rem; margin-bottom:8px; }
.archive-empty--page p{ margin:0; }
.archive-table td a{ color:var(--c-gold-dark); font-weight:800; }
.archive-table td small{ display:block; color:var(--text-muted); margin-top:4px; }
.archive-statement{ margin-top:30px; padding-top:28px; border-top:1px solid var(--line); }
.archive-statement h2,.archive-statement h3{ margin:0 0 18px; }
.archive-milestones{ margin-top:30px; padding:26px; background:var(--grad-dark); color:var(--c-white); border-radius:var(--radius-lg); }
.archive-milestones h3{ color:var(--c-gold-light); margin-bottom:18px; }
.archive-milestones > div{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.archive-milestones article{ padding:18px; border:1px solid rgba(227,194,115,.22); border-radius:var(--radius-md); background:rgba(255,255,255,.04); }
.archive-milestones time{ color:var(--c-gold-light); font-size:.76rem; font-weight:800; }
.archive-milestones h4{ color:var(--c-white); margin:6px 0; }
.archive-milestones p{ color:rgba(255,255,255,.65); margin:0; font-size:.86rem; }
/* Breadcrumb / page header */
.page-head{
  background: var(--grad-dark); color:var(--c-white); padding: 68px 0 56px; position:relative; overflow:hidden;
}
.page-head::before{ content:""; position:absolute; inset:0; background: radial-gradient(circle at 80% 0%, rgba(227,194,115,.2), transparent 45%); }
.page-head__inner{ position:relative; z-index:1; }
.page-head .crumbs{ font-size:.82rem; color: rgba(255,255,255,.55); margin-bottom:14px; }
.page-head .crumbs a:hover{ color: var(--c-gold-light); }
.page-head h1{ color:var(--c-white); font-size: clamp(1.9rem,3.6vw,2.7rem); margin-bottom:10px; }
.page-head p{ color: rgba(255,255,255,.72); max-width:640px; font-size:1.02rem; margin:0; }
/* Filter pills */
.pill-row{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:40px; }
.pill{
  padding:9px 20px; border-radius: var(--radius-full); border:1.5px solid var(--c-gray-200);
  font-size:.86rem; font-weight:700; color: var(--text-muted); background:var(--c-white);
  transition: all var(--transition-soft); cursor:pointer;
}
.pill.active, .pill:hover{ border-color: var(--c-gold); color: var(--c-gold-dark); background: var(--grad-gold-soft); }
/* List with icons (department pages) */
.check-list li{ display:flex; gap:12px; align-items:flex-start; padding:10px 0; }
.check-list li .ic{ color: var(--c-gold-dark); flex-shrink:0; margin-top:3px; }
.two-col{ display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:center; }
.two-col.reverse{ direction: ltr; }
.two-col.reverse > *{ direction: inherit; }
html[dir="rtl"] .two-col.reverse{ direction: rtl; }
.media-frame{
  border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-card);
  border: 1px solid rgba(184,137,47,.16); position:relative;
}
.media-frame::after{ content:""; position:absolute; inset:0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); pointer-events:none; }
/* Story section crest — shield only, no baked-in text, no white background */
.story-crest{
  background: var(--grad-dark);
  display:flex; align-items:center; justify-content:center;
  min-height: 340px; padding: 56px 40px; position:relative; overflow:hidden;
}
.story-crest::before{
  content:""; position:absolute; inset:0; margin:auto; width:70%; aspect-ratio:1/1; border-radius:50%;
  background: radial-gradient(circle, rgba(184,137,47,.35) 0%, rgba(184,137,47,.1) 45%, transparent 72%);
  pointer-events:none;
}
.story-crest__img{
  position:relative; width: min(220px, 46%); height:auto;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,.5));
}
/* Utility */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.mb-0{ margin-bottom:0; }
.muted{ color: var(--text-muted); }
.gold-text{ color: var(--c-gold-dark); }
.tag-pill{ display:inline-block; padding:5px 14px; border-radius:var(--radius-full); background: var(--grad-gold-soft); color:var(--c-gold-dark); font-size:.76rem; font-weight:800; letter-spacing:.03em; }
body.nav-open{ overflow:hidden; }
.not-found{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:48px 24px;
  background:
    radial-gradient(circle at 50% 10%, rgba(227,194,115,.22), transparent 34%),
    var(--grad-dark);
  color:var(--text-inverse);
  text-align:center;
}
.not-found__card{ max-width:720px; }
.not-found__code{
  display:block;
  color:var(--c-gold-light);
  font-size:clamp(4.5rem,16vw,9rem);
  font-weight:900;
  line-height:1;
}
.not-found h1{ color:var(--c-white); font-size:clamp(1.8rem,4vw,3rem); }
.not-found p{ color:rgba(255,255,255,.72); max-width:600px; margin:0 auto 28px; }
.not-found__actions{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }
@media (max-width: 1080px){
.grid-4{ grid-template-columns: repeat(2,1fr); }
.grid-3{ grid-template-columns: repeat(2,1fr); }
.vm-grid, .two-col, .contact-grid, .form-grid{ grid-template-columns: 1fr; }
.stats-strip{ grid-template-columns: repeat(2,1fr); gap:32px; }
}
@media (max-width: 860px){
.grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
.courses-grid--two{ grid-template-columns:1fr; }
.records-promo{ grid-template-columns:auto 1fr; }
.records-promo .btn{ grid-column:1 / -1; justify-self:start; }
.ijazah-record-list{ grid-template-columns:1fr; }
.records-stats{ grid-template-columns:1fr; }
.archive-stats,.archive-index,.archive-hub-grid{ grid-template-columns:repeat(2,1fr); }
.team-growth{ grid-template-columns:auto 1fr; }
.team-growth .btn{ grid-column:1 / -1; justify-self:start; }
.section{ padding: 64px 0; }
.cta-band{ flex-direction:column; text-align:center; padding:44px 28px; }
.cta-band__actions{ justify-content:center; }
}
@media (max-width: 560px){
.program-filter-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-auto-rows:1fr;
    gap:10px;
  }
.program-filter-grid .pill{
    width:100%; min-height:78px; padding:10px 8px;
    display:flex; align-items:center; justify-content:center;
    text-align:center; line-height:1.4; white-space:normal;
  }
.hero{ padding:54px 0 68px; }
.hero__crest-wrap--sm{ width:150px; height:150px; margin-bottom:12px; }
.hero__crest-wrap--sm .hero__crest{ width:132px; filter:none; }
.hero__calligraphy{ width:min(620px, calc(100vw - 84px)); }
.hero__service-line{ font-size:1.15rem; margin-bottom:8px; }
.hero__title{ font-size:1.55rem; margin-bottom:8px; }
.hero__subtitle{ font-size:.96rem; line-height:1.8; margin-bottom:14px; }
.hero__ornament{ margin-bottom:16px; }
.hero__ctas{ gap:10px; }
.hero__ctas .btn{ width:min(100%,300px); }
.course-card__actions{ padding:16px 20px 20px; }
.course-card__actions .btn{ min-width:0; }
.records-source,
  .itqan-notice{ grid-template-columns:1fr; padding:26px 22px; }
.archive-source{ grid-template-columns:1fr; padding:26px 22px; }
.archive-source__icon{ width:54px; height:54px; }
.archive-source__meta{ align-items:flex-start; flex-direction:column; }
.archive-stats{ grid-template-columns:1fr 1fr; }
.archive-stats a{ padding:17px; }
.archive-index{ grid-template-columns:1fr; }
.archive-hub-grid,.archive-current-courses{ grid-template-columns:1fr; }
.archive-hub-card{ padding:20px 18px; }
.archive-page__footer{ flex-direction:column; }
.archive-milestones > div{ grid-template-columns:1fr; }
.records-source__icon,
  .itqan-notice__icon{ width:54px; height:54px; }
.records-source__meta{ align-items:flex-start; flex-direction:column; }
.records-index{ padding:18px; }
.records-index > div{ flex-direction:column; align-items:stretch; }
.records-index a{ border-radius:var(--radius-sm); }
.records-group__head{ padding-inline-end:0; }
.records-count{ position:static; display:inline-flex; margin-top:16px; }
.ijazah-record{ grid-template-columns:34px minmax(0,1fr); padding:18px 14px; gap:10px; }
.ijazah-record__number{ width:32px; height:32px; }
.records-promo{ grid-template-columns:1fr; }
.records-promo .btn{ grid-column:auto; }
.records-signature blockquote{ padding:30px 20px; }
.team-growth{ grid-template-columns:1fr; padding:24px 20px; text-align:center; }
.team-growth__icon{ margin-inline:auto; }
.team-growth .btn{ grid-column:auto; justify-self:stretch; }
}
@media (max-width: 340px){
.course-card__actions{ flex-direction:column; }
}
/* Mobile nav drawer */
.mobile-nav{
  display:none; position:fixed; inset:0; z-index:200;
  background: var(--c-black); color:var(--c-white);
  padding: 22px 24px; overflow-y:auto;
}
.mobile-nav__head{ display:flex; justify-content:space-between; align-items:center; margin-bottom: 30px; }
.mobile-nav__close{ width:42px; height:42px; border-radius:50%; border:1px solid rgba(255,255,255,.25); background:transparent; color:var(--c-white); font-size:1.1rem; }
.mobile-nav ul{ display:flex; flex-direction:column; }
.mobile-nav .m-link{ padding:16px 4px; border-bottom:1px solid rgba(255,255,255,.1); font-weight:700; display:flex; justify-content:space-between; align-items:center; }
.mobile-nav .m-link--feature{
  color: var(--c-black); background: var(--grad-gold);
  padding-inline: 18px; border-radius: 10px; border-bottom-color: transparent;
  margin-block: 4px; box-shadow: var(--shadow-gold);
}
.mobile-nav .m-sub{ padding-inline-start: 18px; display:none; flex-direction:column; }
.mobile-nav .m-sub.open{ display:flex; }
.mobile-nav .m-sub a{ padding:12px 4px; color: rgba(255,255,255,.7); font-size:.92rem; }
.mobile-nav__lang{ display:flex; gap:10px; margin-top:24px; }
.mobile-nav__lang a{ flex:1; text-align:center; padding:12px; border-radius:var(--radius-full); border:1px solid rgba(255,255,255,.25); font-weight:700; }
.mobile-nav__lang a.active{ background: var(--grad-gold); color:var(--c-black); border-color:transparent; }
[data-theme="dark"] .card{ background: #15130f; border-color: rgba(184,137,47,.18); color: #e8e3d5; }
[data-theme="dark"] .card p{ color: #9a917e; }
[data-theme="dark"] .section--alt{ background: #15130f; }
[data-theme="dark"] .muted{ color: #9a917e; }
[data-theme="dark"] .archive-table-wrap{ background: #15130f; }
[data-theme="dark"] .archive-table td{ border-bottom-color: rgba(184,137,47,.12); color: #e8e3d5; }
[data-theme="dark"] .archive-table td strong{ color: #f5f0e2; }
[data-theme="dark"] .archive-table td span{ color: #9a917e; }
[data-theme="dark"] .form-field input, [data-theme="dark"] .form-field select, [data-theme="dark"] .form-field textarea{ background: #1e1b15; color: #e8e3d5; border-color: #3a362e; }
[data-theme="dark"] .form-field input:focus, [data-theme="dark"] .form-field select:focus, [data-theme="dark"] .form-field textarea:focus{ border-color: var(--c-gold); background: #2a2620; }
[data-theme="dark"] .form-card{ background: #15130f; }
[data-theme="dark"] .form-field label{ color: #e8e3d5; }
[data-theme="dark"] .records-source{ background: linear-gradient(135deg, #15130f, #0d0c0a); }
[data-theme="dark"] .contact-info-card{ background: #15130f; }
[data-theme="dark"] .course-card{ background: #15130f; }
[data-theme="dark"] .course-card__poster{ background: linear-gradient(145deg, #1e1b15, #15130f); }
[data-theme="dark"] .course-card__quick-item{ background: #0d0c0a; }
[data-theme="dark"] .team-card{ background: #15130f; }
[data-theme="dark"] .vm-card{ background: #15130f; }
[data-theme="dark"] .media-frame{ background: #15130f; }
[data-theme="dark"] .nav-toggle span, [data-theme="dark"] .nav-toggle::before, [data-theme="dark"] .nav-toggle::after{ background: #e8e3d5; }
[data-theme="dark"] .hero{ background: #0d0c0a; color: #e8e3d5; }
[data-theme="dark"] .hero__title{ color: #f5f0e2; }
[data-theme="dark"] .hero__subtitle{ color: rgba(232,227,213,.7); }
[data-theme="dark"] .page-head{ background: linear-gradient(180deg, #0d0c0a, #15130f); }
[data-theme="dark"] .page-head h1{ color: #f5f0e2; }
[data-theme="dark"] .page-head p{ color: rgba(232,227,213,.7); }
[data-theme="dark"] .btn-outline-dark{ color: #e8e3d5; border-color: rgba(232,227,213,.3); }
[data-theme="dark"] .btn-outline-dark:hover{ border-color: var(--c-gold-light); color: var(--c-gold-light); }
[data-theme="dark"] .archive-stats a{ background: #15130f; border-color: rgba(184,137,47,.2); }
[data-theme="dark"] .archive-index a{ background: #15130f; }
[data-theme="dark"] .archive-course-file{ background: #15130f; }
[data-theme="dark"] .archive-course-file > summary{ background: linear-gradient(135deg, rgba(184,137,47,.08), rgba(21,19,15,.98)); }
[data-theme="dark"] .stat-box strong{ color: var(--c-gold-light); }
/* Fix: buttons inside dark sections in dark mode */
[data-theme="dark"] .btn-outline{ color: rgba(232,227,213,.9) !important; border-color: rgba(232,227,213,.4) !important; }
[data-theme="dark"] .btn-outline:hover{ border-color: var(--c-gold-light) !important; color: var(--c-gold-light) !important; }
[data-theme="dark"] .section--dark .btn-outline{ color: rgba(255,255,255,.9) !important; border-color: rgba(255,255,255,.4) !important; }
[data-theme="dark"] .section--dark .btn-outline:hover{ color: var(--c-gold-light) !important; border-color: var(--c-gold-light) !important; }
[data-theme="dark"] .cta-band .btn-outline{ color: rgba(255,255,255,.9) !important; border-color: rgba(255,255,255,.4) !important; }
[data-theme="dark"] .btn-gold{ background: var(--grad-gold) !important; color: #0d0c0a !important; }
[data-theme="dark"] .btn-dark{ background: #1e1b15 !important; color: #f5f0e2 !important; border-color: #2a2620 !important; }
[data-theme="dark"] .btn-dark:hover{ background: #2a2620 !important; }
[data-theme="dark"] .stat-box span{ color: #9a917e; }
[data-theme="dark"] .eyebrow{ color: var(--c-gold-light); }
[data-theme="dark"] .section-head p{ color: #9a917e; }
[data-theme="dark"] .course-card__quick-item strong{ color: #f5f0e2; }
[data-theme="dark"] .course-card__quick-item span{ color: #9a917e; }
[data-theme="dark"] .course-card__detail{ color: #9a917e; }
[data-theme="dark"] .course-card__detail strong{ color: #f5f0e2; }
[data-theme="dark"] .course-card p.desc{ color: #9a917e; }
[data-theme="dark"] .course-card__dept{ color: var(--c-gold-light); }
[data-theme="dark"] .badge-upcoming{ background: rgba(184,137,47,.2); color: var(--c-gold-light); }
[data-theme="dark"] .hero{ background: linear-gradient(180deg, #15130f 0%, #0d0c0a 100%); color: #e8e3d5; }
[data-theme="dark"] .hero__title{ color: #f5f0e2; }
[data-theme="dark"] .hero__title em{ color: var(--c-gold-light); }
[data-theme="dark"] .hero__service-line{ color: var(--c-gold-light); }
[data-theme="dark"] .hero__subtitle{ color: rgba(232,227,213,.7); }
[data-theme="dark"] .archive-section__head p{ color: #9a917e; }
[data-theme="dark"] .records-group__head p{ color: #9a917e; }
[data-theme="dark"] .gold-text{ color: var(--c-gold-light); }
[data-theme="dark"] .tag-pill{ background: rgba(184,137,47,.15); color: var(--c-gold-light); }
[data-theme="dark"] .course-card__more summary{ color: var(--c-gold-light); }
[data-theme="dark"] .course-card__meta{ border-top-color: rgba(184,137,47,.1); }
[data-theme="dark"] .course-card__detail{ border-bottom-color: rgba(184,137,47,.1); }
[data-theme="dark"] .course-card__quick{ background: rgba(184,137,47,.08); border-top-color: rgba(184,137,47,.1); border-bottom-color: rgba(184,137,47,.1); }
[data-theme="dark"] .course-card__more{ border-bottom-color: rgba(184,137,47,.1); }
[data-theme="dark"] .feature-row{ border-bottom-color: rgba(184,137,47,.1); }
[data-theme="dark"] .feature-row__num{ color: var(--c-gray-200); }
[data-theme="dark"] .ornament::before, [data-theme="dark"] .ornament::after{ background: var(--grad-gold); }
[data-theme="dark"] .pill{ background: #15130f; border-color: rgba(184,137,47,.2); color: #9a917e; }
[data-theme="dark"] .pill.active, [data-theme="dark"] .pill:hover{ border-color: var(--c-gold); color: var(--c-gold-light); }
[data-theme="dark"] .archive-audit-note{ background: rgba(184,137,47,.05); border-color: rgba(184,137,47,.2); }
[data-theme="dark"] .archive-hub-card{ background: #15130f; border-color: rgba(184,137,47,.15); }
[data-theme="dark"] .archive-hub-card p{ color: #9a917e; }
[data-theme="dark"] .archive-milestones article{ background: rgba(184,137,47,.05); border-color: rgba(184,137,47,.15); }
/* Fix: dark-bg sections keep white text in dark mode */
[data-theme="dark"] .archive-stats a{ background: #15130f; color: #f5f0e2; }
[data-theme="dark"] .archive-stats strong{ color: var(--c-gold-light); }
[data-theme="dark"] .archive-stats span{ color: rgba(232,227,213,.7); }
[data-theme="dark"] .cta-band{ background: linear-gradient(180deg, #15130f, #0d0c0a); color: #f5f0e2; }
[data-theme="dark"] .cta-band h2{ color: #f5f0e2; }
[data-theme="dark"] .cta-band p{ color: rgba(232,227,213,.7); }
[data-theme="dark"] .contact-info-card{ background: #15130f; color: #f5f0e2; }
[data-theme="dark"] .contact-info-item strong{ color: #f5f0e2; }
[data-theme="dark"] .contact-info-item span, [data-theme="dark"] .contact-info-item a{ color: rgba(232,227,213,.7); }
[data-theme="dark"] .records-promo{ background: #15130f; }
[data-theme="dark"] .records-promo h2{ color: #f5f0e2; }
[data-theme="dark"] .records-promo p{ color: rgba(232,227,213,.7); }
[data-theme="dark"] .itqan-notice{ background: #15130f; color: #f5f0e2; }
[data-theme="dark"] .itqan-notice h2{ color: var(--c-gold-light); }
[data-theme="dark"] .itqan-notice p{ color: rgba(232,227,213,.74); }
[data-theme="dark"] .archive-milestones{ background: linear-gradient(180deg, #15130f, #0d0c0a); }
[data-theme="dark"] .archive-milestones h4{ color: #f5f0e2; }
[data-theme="dark"] .archive-milestones p{ color: rgba(232,227,213,.65); }
[data-theme="dark"] .page-head{ background: linear-gradient(180deg, #15130f, #0d0c0a); }
[data-theme="dark"] .page-head h1{ color: #f5f0e2; }
[data-theme="dark"] .page-head p{ color: rgba(232,227,213,.7); }
[data-theme="dark"] .page-head .crumbs{ color: rgba(232,227,213,.5); }
[data-theme="dark"] .section--dark{ background: linear-gradient(180deg, #15130f, #0d0c0a); color: #f5f0e2; }
[data-theme="dark"] .section--dark h2, [data-theme="dark"] .section--dark h3{ color: #f5f0e2; }
[data-theme="dark"] .section--dark p{ color: rgba(232,227,213,.7); }
[data-theme="dark"] .card--dark{ background: #1e1b15; color: #e8e3d5; }
[data-theme="dark"] .card--dark p{ color: rgba(232,227,213,.68); }
[data-theme="dark"] .records-signature{ background: linear-gradient(180deg, #15130f, #0d0c0a); }
[data-theme="dark"] .records-signature blockquote{ background: rgba(184,137,47,.04); border-color: rgba(184,137,47,.2); }
[data-theme="dark"] .records-signature blockquote > p{ color: rgba(232,227,213,.78); }
[data-theme="dark"] .records-signature footer strong{ color: var(--c-gold-light); }
[data-theme="dark"] .records-signature footer span{ color: rgba(232,227,213,.58); }
[data-theme="dark"] .records-status{ background: #15130f; color: var(--c-gold-light); }
[data-theme="dark"] .badge-current{ background: #15130f; color: var(--c-gold-light); }
[data-theme="dark"] .archive-table th{ background: #15130f; color: var(--c-gold-light); }
[data-theme="dark"] .btn-dark{ background: #1e1b15; color: #f5f0e2; border-color: #1e1b15; }
[data-theme="dark"] .btn-dark:hover{ background: #2a2620; }
[data-theme="dark"] .ijazah-record{ background: #15130f; }
[data-theme="dark"] .ijazah-record__identity strong{ color: #f5f0e2; }
[data-theme="dark"] .ijazah-record p{ color: #9a917e; }
[data-theme="dark"] .team-card{ background: #15130f; }
[data-theme="dark"] .team-card .role{ color: var(--c-gold-light); }
[data-theme="dark"] .team-card .spec{ color: #9a917e; border-top-color: rgba(184,137,47,.1); }
[data-theme="dark"] .team-card p.bio{ color: #9a917e; }
[data-theme="dark"] .vm-card{ background: #15130f; }
[data-theme="dark"] .vm-card p{ color: #9a917e; }
/* Force all text using --c-black or --c-gray-900 to white in dark mode */
[data-theme="dark"] .archive-audit-note strong{ color: #f5f0e2; }
[data-theme="dark"] .archive-hub-card strong{ color: #f5f0e2; }
[data-theme="dark"] .archive-table td strong{ color: #f5f0e2; }
[data-theme="dark"] .archive-date time{ color: #f5f0e2; }
[data-theme="dark"] .archive-course-file > summary strong{ color: #f5f0e2; }
[data-theme="dark"] .archive-empty--page strong{ color: #f5f0e2; }
[data-theme="dark"] .media-card__body h4{ color: #f5f0e2; }
[data-theme="dark"] .form-field label{ color: #e8e3d5; }
[data-theme="dark"] .form-field input, [data-theme="dark"] .form-field select, [data-theme="dark"] .form-field textarea{ color: #e8e3d5; }
[data-theme="dark"] .mobile-nav{ background: #0d0c0a; color: #e8e3d5; }
[data-theme="dark"] .mobile-nav .m-link{ color: #e8e3d5; }
[data-theme="dark"] .nav-link--feature{ background: var(--grad-gold); color: #0d0c0a !important; }
[data-theme="dark"] .audio-card{ background: #15130f; }
[data-theme="dark"] .audio-card__body h4{ color: #f5f0e2; }
[data-theme="dark"] .audio-card__body span{ color: #9a917e; }
[data-theme="dark"] .media-card{ background: #15130f; }
[data-theme="dark"] .media-card__body .cat{ color: var(--c-gold-light); }
[data-theme="dark"] .media-card__body span.meta{ color: #9a917e; }
[data-theme="dark"] .video-series{ background:#15130f; border-color:rgba(184,137,47,.2); }
[data-theme="dark"] .video-series__head{ background:linear-gradient(135deg,rgba(184,137,47,.12),rgba(21,19,15,.96)); border-bottom-color:rgba(184,137,47,.14); }
[data-theme="dark"] .video-series :is(p,.video-series__count,.video-lesson-card__watch){ color:var(--c-gold-light); }
[data-theme="dark"] .video-series__empty p,[data-theme="dark"] .video-lesson-card p{ color:#9a917e; }
[data-theme="dark"] .records-index{ background: #15130f; border-color: rgba(184,137,47,.18); }
[data-theme="dark"] .records-index a{ background: #1e1b15; color: #9a917e; }
[data-theme="dark"] .records-index a strong{ color: var(--c-gold-light); }
[data-theme="dark"] .records-source{ background: linear-gradient(135deg, #15130f, #0d0c0a); }
[data-theme="dark"] .records-source h2{ color: #f5f0e2; }
[data-theme="dark"] .records-source p{ color: #9a917e; }
[data-theme="dark"] .records-stat{ background: #15130f; border-color: rgba(184,137,47,.16); }
[data-theme="dark"] .records-stat strong{ color: var(--c-gold-light); }
[data-theme="dark"] .records-stat span{ color: #9a917e; }
[data-theme="dark"] .ijazah-record__number{ background: rgba(184,137,47,.1); color: var(--c-gold-light); border-color: rgba(184,137,47,.2); }
[data-theme="dark"] .regulation-page{ background: #0d0c0a; }
[data-theme="dark"] .regulation-cover{ background: linear-gradient(135deg, #15130f, #0d0c0a); border-color: rgba(184,137,47,.18); }
[data-theme="dark"] .regulation-cover h2,
[data-theme="dark"] .regulation-cover__academy,
[data-theme="dark"] .regulation-supervisors strong,
[data-theme="dark"] .regulation-subsection h3{ color: #f5f0e2; }
[data-theme="dark"] .regulation-cover__supervision,
[data-theme="dark"] .regulation-article p,
[data-theme="dark"] .regulation-list li,
[data-theme="dark"] .regulation-bullets li{ color: #9a917e; }
[data-theme="dark"] .regulation-article{ background: #15130f; border-color: rgba(184,137,47,.14); }
[data-theme="dark"] .regulation-article h2,
[data-theme="dark"] .regulation-supervisors span{ color: var(--c-gold-light); }
[data-theme="dark"] .regulation-supervisors strong{ background: rgba(184,137,47,.08); border-color: rgba(184,137,47,.16); }
[data-theme="dark"] .regulation-subsection{ background: #0d0c0a; border-color: rgba(184,137,47,.12); }
[data-theme="dark"] .team-card__photo{ border-color: #15130f; box-shadow: 0 0 0 3px var(--c-gold-dark), var(--shadow-gold); }
[data-theme="dark"] .team-card__avatar{ background: rgba(184,137,47,.1); color: var(--c-gold-light); }
[data-theme="dark"] .team-growth{ background: #15130f; border-color: rgba(184,137,47,.2); }
[data-theme="dark"] .team-growth p{ color: #9a917e; }
[data-theme="dark"] .check-list li .ic{ color: var(--c-gold-light); }
[data-theme="dark"] .form-note{ color: #9a917e; }
[data-theme="dark"] .form-success{ background: rgba(184,137,47,.1); color: var(--c-gold-light); border-color: rgba(184,137,47,.2); }
[data-theme="dark"] .archive-source{ background: linear-gradient(135deg, #15130f, #0d0c0a); }
[data-theme="dark"] .archive-source h2{ color: #f5f0e2; }
[data-theme="dark"] .archive-source p{ color: #9a917e; }
[data-theme="dark"] .archive-source__meta a, [data-theme="dark"] .archive-source__meta span{ color: var(--c-gold-light); }
[data-theme="dark"] .archive-section__head h2{ color: #f5f0e2; }
[data-theme="dark"] .archive-section__head .eyebrow{ color: var(--c-gold-light); }
[data-theme="dark"] .archive-subsection h3{ color: #f5f0e2; }
[data-theme="dark"] .archive-subsection .eyebrow{ color: var(--c-gold-light); }
[data-theme="dark"] .archive-course-file > summary small{ color: #9a917e; }
[data-theme="dark"] .archive-table td a{ color: var(--c-gold-light); }
[data-theme="dark"] .archive-table td small{ color: #9a917e; }
[data-theme="dark"] .archive-record--image{ background: rgba(184,137,47,.04); }
[data-theme="dark"] .archive-date small{ color: var(--c-gold-light); }
[data-theme="dark"] .records-top-link{ color: var(--c-gold-light); }
[data-theme="dark"] .archive-page__footer a{ color: var(--c-gold-light); }
[data-theme="dark"] .archive-section-nav a{ background: #15130f; color: #9a917e; border-color: rgba(184,137,47,.15); }
[data-theme="dark"] .archive-section-nav a:hover{ color: var(--c-gold-light); border-color: var(--c-gold); }
[data-theme="dark"] .section-head h2{ color: #f5f0e2; }
[data-theme="dark"] .section-head .eyebrow{ color: var(--c-gold-light); }
[data-theme="dark"] .btn-outline-dark{ color: #e8e3d5; border-color: rgba(232,227,213,.3); }
[data-theme="dark"] .btn-outline-dark:hover{ border-color: var(--c-gold-light); color: var(--c-gold-light); }
[data-theme="dark"] .ornament i{ background: var(--c-gold); }
[data-theme="dark"] .hero__eyebrow{ background: rgba(184,137,47,.1); border-color: rgba(184,137,47,.3); color: var(--c-gold-light); }
[data-theme="dark"] .stat-box strong{ color: var(--c-gold-light); }
/* Fix: buttons inside dark sections in dark mode */
[data-theme="dark"] .btn-outline{ color: rgba(232,227,213,.9) !important; border-color: rgba(232,227,213,.4) !important; }
[data-theme="dark"] .btn-outline:hover{ border-color: var(--c-gold-light) !important; color: var(--c-gold-light) !important; }
[data-theme="dark"] .section--dark .btn-outline{ color: rgba(255,255,255,.9) !important; border-color: rgba(255,255,255,.4) !important; }
[data-theme="dark"] .section--dark .btn-outline:hover{ color: var(--c-gold-light) !important; border-color: var(--c-gold-light) !important; }
[data-theme="dark"] .cta-band .btn-outline{ color: rgba(255,255,255,.9) !important; border-color: rgba(255,255,255,.4) !important; }
[data-theme="dark"] .btn-gold{ background: var(--grad-gold) !important; color: #0d0c0a !important; }
[data-theme="dark"] .btn-dark{ background: #1e1b15 !important; color: #f5f0e2 !important; border-color: #2a2620 !important; }
[data-theme="dark"] .btn-dark:hover{ background: #2a2620 !important; }
[data-theme="dark"] .trust-strip{ border-color: rgba(227,194,115,.18); }
[data-theme="dark"] .trust-strip__item{ color: #9a917e; }
[data-theme="dark"] .trust-strip__item strong{ color: var(--c-gold-light); }
[data-theme="dark"] a.trust-strip__item:hover{ color: #e8e3d5; }
[data-theme="dark"] a.trust-strip__item:hover strong{ color: var(--c-gold-lighter); }
[data-theme="dark"] .trust-strip__divider{ background: rgba(227,194,115,.28); }
.media-frame[data-parallax] img{
  transform: scale(1.08);
  transition: transform 0.15s linear;
}
.story-crest[data-parallax] .story-crest__img{
  transition: transform 0.15s linear;
}
@media (prefers-reduced-motion: reduce){
.media-frame[data-parallax] img{ transform: none !important; }
}
/* =========================================================
   4. MAGNETIC BUTTONS — أزرار تنجذب نحو المؤشر
   ========================================================= */
.btn[data-magnetic]{
  transition: transform 0.25s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce){
.btn[data-magnetic]{ transform: none !important; }
}
/* =========================================================
   5. SVG STROKE ANIMATION — رسم تدريجي للزخارف
   ========================================================= */
.hero__calligraphy{
  animation: fadeInScale 1.2s cubic-bezier(.22,.61,.36,1) both;
}
.hero__service-line, .hero__title, .hero__subtitle, .hero__ornament, .hero__ctas{
  animation: slideUpFade .8s cubic-bezier(.22,.61,.36,1) both;
}
.hero__service-line{ animation-delay: .4s; }
.hero__title{ animation-delay: .5s; }
.hero__subtitle{ animation-delay: .6s; }
.hero__ornament{ animation-delay: .7s; }
.hero__ctas{ animation-delay: .8s; }
@media (prefers-reduced-motion: reduce){
.hero__calligraphy, .hero__crest, .hero__service-line, .hero__title, .hero__subtitle, .hero__ornament, .hero__ctas{
    animation: none !important;
  }
}
/* زخرفة SVG ترسم تدريجيًا */
.svg-draw path, .svg-draw line, .svg-draw circle, .svg-draw rect{
  stroke-dasharray: var(--dash, 1000);
  stroke-dashoffset: var(--dash, 1000);
  animation: drawStroke 2s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: .5s;
}
@media (prefers-reduced-motion: reduce){
.svg-draw path, .svg-draw line, .svg-draw circle, .svg-draw rect{
    stroke-dashoffset: 0 !important;
    animation: none !important;
  }
}
/* =========================================================
   10. GLOW PULSE — نبض ذهبي خفيف على الشعار
   ========================================================= */
.hero__crest-wrap::after{
  content: "";
  position: absolute; inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,137,47,.10) 0%, transparent 65%);
  animation: glowPulse 6s ease-in-out infinite;
  animation-delay: 1.5s;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce){
.hero__crest-wrap::after{ animation: none; }
}
/* =========================================================
   11. HAFIZA 100 TEACHER BOXES — خانات معلمات المشروع
   ========================================================= */
.hafiza-teacher-boxes{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.teacher-card{
  background: var(--c-white);
  border: 1px solid rgba(184,137,47,.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px 18px 18px;
  transition: transform var(--transition-soft), box-shadow var(--transition-soft), border-color var(--transition-soft);
}
.teacher-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 46px -12px rgba(20,17,10,.22);
  border-color: rgba(184,137,47,.32);
}
.teacher-card__head{
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(184,137,47,.22);
}
.teacher-card--teacher-only{
  padding-block: 22px;
}
.teacher-card--teacher-only .teacher-card__head{
  justify-content: center;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.teacher-card__avatar{
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--c-white);
  font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 6px 16px -4px rgba(184,137,47,.45);
}
.teacher-card__name{
  font-size: 1.15rem; margin: 0 0 3px; color: var(--c-black); line-height: 1.2;
}
.teacher-card__count{
  font-size: .78rem; font-weight: 700; color: var(--c-gold-dark);
  background: var(--grad-gold-soft);
  padding: 3px 10px; border-radius: var(--radius-full);
}
.teacher-card__body{ }
.teacher-card__students{
  display: flex; flex-wrap: wrap; gap: 8px;
}
.student-chip{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: var(--c-cream);
  border: 1px solid rgba(184,137,47,.16);
  color: var(--c-gray-700);
  font-size: .84rem; font-weight: 700; letter-spacing: .02em;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.student-chip:hover{
  transform: translateY(-2px);
  background: var(--c-white);
  border-color: var(--c-gold);
  color: var(--c-gold-dark);
}
@media (max-width: 1180px){
.hafiza-teacher-boxes{ grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (max-width: 760px){
.hafiza-teacher-boxes{ grid-template-columns: repeat(2, 1fr); gap: 14px; }
.teacher-card{ padding: 18px 14px 14px; }
.teacher-card__avatar{ width: 42px; height: 42px; font-size: 1.05rem; }
.teacher-card__name{ font-size: 1.05rem; }
}
@media (max-width: 420px){
.hafiza-teacher-boxes{ grid-template-columns: 1fr; }
}
[data-theme="dark"] .teacher-card,
:root:not([data-theme="light"]) .teacher-card{
  background: #15130f;
  border-color: rgba(184,137,47,.22);
  color: #e8e3d5;
}
[data-theme="dark"] .teacher-card__name,
:root:not([data-theme="light"]) .teacher-card__name{
  color: #f5f0e2;
}
[data-theme="dark"] .teacher-card__count,
:root:not([data-theme="light"]) .teacher-card__count{
  background: rgba(184,137,47,.15);
  color: var(--c-gold-light);
}
[data-theme="dark"] .teacher-card__head,
:root:not([data-theme="light"]) .teacher-card__head{
  border-bottom-color: rgba(184,137,47,.22);
}
[data-theme="dark"] .student-chip,
:root:not([data-theme="light"]) .student-chip{
  background: #1e1b15;
  border-color: rgba(184,137,47,.2);
  color: #d8d2c2;
}
[data-theme="dark"] .student-chip:hover,
:root:not([data-theme="light"]) .student-chip:hover{
  background: #252017;
  border-color: var(--c-gold-light);
  color: var(--c-gold-light);
}
/* Ported from the old hand-written prefers-color-scheme block so they live in
   the single authored source and reach both dark paths. */
[data-theme="dark"] .card--compact p{ color: #9a917e; }
[data-theme="dark"] .news-card,
[data-theme="dark"] .news-article__shell{ background:#15130f; border-color:rgba(184,137,47,.18); }
[data-theme="dark"] .academy-calendar{ background:#15130f; border-color:rgba(184,137,47,.24); box-shadow:0 16px 38px -20px rgba(0,0,0,.85); }
[data-theme="dark"] .academy-calendar__heading span{ color:var(--c-gold-light); }
[data-theme="dark"] .academy-calendar__nav{ color:var(--c-gold-light); border-color:rgba(227,194,115,.38); }
[data-theme="dark"] .academy-calendar__day.is-today{ border-color:var(--c-gold-light); background:rgba(184,137,47,.15); }
[data-theme="dark"] .academy-calendar__day.is-today strong{ color:var(--c-gold-light); }
[data-theme="dark"] .home-calendar-sidebar__head h2{ color:#f5f0e2; }
[data-theme="dark"] .home-calendar-sidebar__head p{ color:#b8af9b; }
[data-theme="dark"] .news-banner__stage{ background:#29251f; border-color:rgba(227,194,115,.28); box-shadow:0 18px 42px -20px rgba(0,0,0,.7); }
[data-theme="dark"] .news-carousel__controls{ background:#29251f; border-color:rgba(227,194,115,.28); }
[data-theme="dark"] .news-banner{ background:linear-gradient(135deg,#2d2922 0%,#373026 52%,#29251f 100%); }
[data-theme="dark"] .news-banner::before{ background-image:linear-gradient(rgba(227,194,115,.1) 1px,transparent 1px),linear-gradient(90deg,rgba(227,194,115,.1) 1px,transparent 1px); }
[data-theme="dark"] .news-banner__content h3{ color:#f5f0e2; }
[data-theme="dark"] .news-banner__content p,
[data-theme="dark"] .news-banner__meta time{ color:#d2c8b4; }
[data-theme="dark"] .news-banner__meta{ color:var(--c-gold-light); }
[data-theme="dark"] .news-banner__demo,
[data-theme="dark"] .news-banner__link{ background:rgba(30,27,22,.45); border-color:rgba(227,194,115,.45); color:#f5f0e2; }
[data-theme="dark"] .news-carousel__btn{ background:rgba(42,37,30,.9); border-color:rgba(227,194,115,.48); color:var(--c-gold-light); box-shadow:0 6px 16px rgba(0,0,0,.3); }
[data-theme="dark"] .news-carousel__dots button{ background:rgba(245,240,226,.36); box-shadow:0 1px 3px rgba(0,0,0,.38); }
[data-theme="dark"] .news-carousel__dots button.active{ background:var(--c-gold-light); }
[data-theme="dark"] .interactive-card:hover,
[data-theme="dark"] .interactive-card:focus-visible,
[data-theme="dark"] .interactive-card:focus-within{
  border-color:rgba(227,194,115,.54);
  box-shadow:0 20px 42px -20px rgba(0,0,0,.82), 0 0 0 3px rgba(227,194,115,.14);
}
[data-theme="dark"] .news-card h3{ color:#f5f0e2; }
[data-theme="dark"] .news-card p,
[data-theme="dark"] .news-card__meta time,
[data-theme="dark"] .news-article__meta time,
[data-theme="dark"] .news-article__body{ color:#9a917e; }
[data-theme="dark"] .news-card__media,
[data-theme="dark"] .news-article__image{ background:linear-gradient(145deg, rgba(184,137,47,.16), rgba(21,19,15,.85)); }
[data-theme="dark"] .news-card__media--fallback,
[data-theme="dark"] .news-article__image--fallback{ background:linear-gradient(135deg, #211a0e, #4d3714 52%, #17130e); }
[data-theme="dark"] .news-card__media::before,
[data-theme="dark"] .news-article__image--fallback::before{ border-color:rgba(227,194,115,.2); }
[data-theme="dark"] .news-card__meta,
[data-theme="dark"] .news-article__meta{ color:var(--c-gold-light); }
[data-theme="dark"] .hero-media{ background: #15130f; border-color: rgba(184,137,47,.18); }
[data-theme="dark"] .hero-media__name{ color: #f5f0e2; }
[data-theme="dark"] .hero-media__photo{ border-color: #15130f; box-shadow: 0 0 0 3px rgba(184,137,47,.35), 0 14px 34px -10px rgba(0,0,0,.35); }
[data-theme="dark"] .hero-media__quote{ color: #f5f0e2; }
/* --c-gold-dark is tuned for gold text on the light cream background and is
   not restated by the dark palette, so on a dark card it fell to 3.68:1 and in
   the header to 3.88:1 — below the 4.5:1 WCAG AA minimum (both are small text:
   14.08px/700 and 9.28px/400). Dark mode already uses --c-gold-light for gold
   text elsewhere (.eyebrow, .stat-box strong, .nav-link:hover), so these two
   follow the same convention: 10.80:1 and 11.39:1. Light mode is unchanged and
   already passed at 5.04:1 and 4.70:1. */
[data-theme="dark"] .card__link{ color: var(--c-gold-light); }


/* AUTO-GENERATED — do not edit. Mirrors the [data-theme="dark"] rules
   above for visitors whose OS prefers dark and who have not chosen a
   theme manually. Source: generateAutoDarkBlock() in scripts/build.mjs. */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .card{ background: #15130f; border-color: rgba(184,137,47,.18); color: #e8e3d5; }
  :root:not([data-theme="light"]) .card p{ color: #9a917e; }
  :root:not([data-theme="light"]) .section--alt{ background: #15130f; }
  :root:not([data-theme="light"]) .muted{ color: #9a917e; }
  :root:not([data-theme="light"]) .archive-table-wrap{ background: #15130f; }
  :root:not([data-theme="light"]) .archive-table td{ border-bottom-color: rgba(184,137,47,.12); color: #e8e3d5; }
  :root:not([data-theme="light"]) .archive-table td strong{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .archive-table td span{ color: #9a917e; }
  :root:not([data-theme="light"]) .form-field input, :root:not([data-theme="light"]) .form-field select, :root:not([data-theme="light"]) .form-field textarea{ background: #1e1b15; color: #e8e3d5; border-color: #3a362e; }
  :root:not([data-theme="light"]) .form-field input:focus, :root:not([data-theme="light"]) .form-field select:focus, :root:not([data-theme="light"]) .form-field textarea:focus{ border-color: var(--c-gold); background: #2a2620; }
  :root:not([data-theme="light"]) .form-card{ background: #15130f; }
  :root:not([data-theme="light"]) .form-field label{ color: #e8e3d5; }
  :root:not([data-theme="light"]) .records-source{ background: linear-gradient(135deg, #15130f, #0d0c0a); }
  :root:not([data-theme="light"]) .contact-info-card{ background: #15130f; }
  :root:not([data-theme="light"]) .course-card{ background: #15130f; }
  :root:not([data-theme="light"]) .course-card__poster{ background: linear-gradient(145deg, #1e1b15, #15130f); }
  :root:not([data-theme="light"]) .course-card__quick-item{ background: #0d0c0a; }
  :root:not([data-theme="light"]) .team-card{ background: #15130f; }
  :root:not([data-theme="light"]) .vm-card{ background: #15130f; }
  :root:not([data-theme="light"]) .media-frame{ background: #15130f; }
  :root:not([data-theme="light"]) .nav-toggle span, :root:not([data-theme="light"]) .nav-toggle::before, :root:not([data-theme="light"]) .nav-toggle::after{ background: #e8e3d5; }
  :root:not([data-theme="light"]) .hero{ background: #0d0c0a; color: #e8e3d5; }
  :root:not([data-theme="light"]) .hero__title{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .hero__subtitle{ color: rgba(232,227,213,.7); }
  :root:not([data-theme="light"]) .page-head{ background: linear-gradient(180deg, #0d0c0a, #15130f); }
  :root:not([data-theme="light"]) .page-head h1{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .page-head p{ color: rgba(232,227,213,.7); }
  :root:not([data-theme="light"]) .btn-outline-dark{ color: #e8e3d5; border-color: rgba(232,227,213,.3); }
  :root:not([data-theme="light"]) .btn-outline-dark:hover{ border-color: var(--c-gold-light); color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .archive-stats a{ background: #15130f; border-color: rgba(184,137,47,.2); }
  :root:not([data-theme="light"]) .archive-index a{ background: #15130f; }
  :root:not([data-theme="light"]) .archive-course-file{ background: #15130f; }
  :root:not([data-theme="light"]) .archive-course-file > summary{ background: linear-gradient(135deg, rgba(184,137,47,.08), rgba(21,19,15,.98)); }
  :root:not([data-theme="light"]) .stat-box strong{ color: var(--c-gold-light); }
  /* Fix: buttons inside dark sections in dark mode */
:root:not([data-theme="light"]) .btn-outline{ color: rgba(232,227,213,.9) !important; border-color: rgba(232,227,213,.4) !important; }
  :root:not([data-theme="light"]) .btn-outline:hover{ border-color: var(--c-gold-light) !important; color: var(--c-gold-light) !important; }
  :root:not([data-theme="light"]) .section--dark .btn-outline{ color: rgba(255,255,255,.9) !important; border-color: rgba(255,255,255,.4) !important; }
  :root:not([data-theme="light"]) .section--dark .btn-outline:hover{ color: var(--c-gold-light) !important; border-color: var(--c-gold-light) !important; }
  :root:not([data-theme="light"]) .cta-band .btn-outline{ color: rgba(255,255,255,.9) !important; border-color: rgba(255,255,255,.4) !important; }
  :root:not([data-theme="light"]) .btn-gold{ background: var(--grad-gold) !important; color: #0d0c0a !important; }
  :root:not([data-theme="light"]) .btn-dark{ background: #1e1b15 !important; color: #f5f0e2 !important; border-color: #2a2620 !important; }
  :root:not([data-theme="light"]) .btn-dark:hover{ background: #2a2620 !important; }
  :root:not([data-theme="light"]) .stat-box span{ color: #9a917e; }
  :root:not([data-theme="light"]) .eyebrow{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .section-head p{ color: #9a917e; }
  :root:not([data-theme="light"]) .course-card__quick-item strong{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .course-card__quick-item span{ color: #9a917e; }
  :root:not([data-theme="light"]) .course-card__detail{ color: #9a917e; }
  :root:not([data-theme="light"]) .course-card__detail strong{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .course-card p.desc{ color: #9a917e; }
  :root:not([data-theme="light"]) .course-card__dept{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .badge-upcoming{ background: rgba(184,137,47,.2); color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .hero{ background: linear-gradient(180deg, #15130f 0%, #0d0c0a 100%); color: #e8e3d5; }
  :root:not([data-theme="light"]) .hero__title{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .hero__title em{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .hero__service-line{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .hero__subtitle{ color: rgba(232,227,213,.7); }
  :root:not([data-theme="light"]) .archive-section__head p{ color: #9a917e; }
  :root:not([data-theme="light"]) .records-group__head p{ color: #9a917e; }
  :root:not([data-theme="light"]) .gold-text{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .tag-pill{ background: rgba(184,137,47,.15); color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .course-card__more summary{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .course-card__meta{ border-top-color: rgba(184,137,47,.1); }
  :root:not([data-theme="light"]) .course-card__detail{ border-bottom-color: rgba(184,137,47,.1); }
  :root:not([data-theme="light"]) .course-card__quick{ background: rgba(184,137,47,.08); border-top-color: rgba(184,137,47,.1); border-bottom-color: rgba(184,137,47,.1); }
  :root:not([data-theme="light"]) .course-card__more{ border-bottom-color: rgba(184,137,47,.1); }
  :root:not([data-theme="light"]) .feature-row{ border-bottom-color: rgba(184,137,47,.1); }
  :root:not([data-theme="light"]) .feature-row__num{ color: var(--c-gray-200); }
  :root:not([data-theme="light"]) .ornament::before, :root:not([data-theme="light"]) .ornament::after{ background: var(--grad-gold); }
  :root:not([data-theme="light"]) .pill{ background: #15130f; border-color: rgba(184,137,47,.2); color: #9a917e; }
  :root:not([data-theme="light"]) .pill.active, :root:not([data-theme="light"]) .pill:hover{ border-color: var(--c-gold); color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .archive-audit-note{ background: rgba(184,137,47,.05); border-color: rgba(184,137,47,.2); }
  :root:not([data-theme="light"]) .archive-hub-card{ background: #15130f; border-color: rgba(184,137,47,.15); }
  :root:not([data-theme="light"]) .archive-hub-card p{ color: #9a917e; }
  :root:not([data-theme="light"]) .archive-milestones article{ background: rgba(184,137,47,.05); border-color: rgba(184,137,47,.15); }
  /* Fix: dark-bg sections keep white text in dark mode */
:root:not([data-theme="light"]) .archive-stats a{ background: #15130f; color: #f5f0e2; }
  :root:not([data-theme="light"]) .archive-stats strong{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .archive-stats span{ color: rgba(232,227,213,.7); }
  :root:not([data-theme="light"]) .cta-band{ background: linear-gradient(180deg, #15130f, #0d0c0a); color: #f5f0e2; }
  :root:not([data-theme="light"]) .cta-band h2{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .cta-band p{ color: rgba(232,227,213,.7); }
  :root:not([data-theme="light"]) .contact-info-card{ background: #15130f; color: #f5f0e2; }
  :root:not([data-theme="light"]) .contact-info-item strong{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .contact-info-item span, :root:not([data-theme="light"]) .contact-info-item a{ color: rgba(232,227,213,.7); }
  :root:not([data-theme="light"]) .records-promo{ background: #15130f; }
  :root:not([data-theme="light"]) .records-promo h2{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .records-promo p{ color: rgba(232,227,213,.7); }
  :root:not([data-theme="light"]) .itqan-notice{ background: #15130f; color: #f5f0e2; }
  :root:not([data-theme="light"]) .itqan-notice h2{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .itqan-notice p{ color: rgba(232,227,213,.74); }
  :root:not([data-theme="light"]) .archive-milestones{ background: linear-gradient(180deg, #15130f, #0d0c0a); }
  :root:not([data-theme="light"]) .archive-milestones h4{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .archive-milestones p{ color: rgba(232,227,213,.65); }
  :root:not([data-theme="light"]) .page-head{ background: linear-gradient(180deg, #15130f, #0d0c0a); }
  :root:not([data-theme="light"]) .page-head h1{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .page-head p{ color: rgba(232,227,213,.7); }
  :root:not([data-theme="light"]) .page-head .crumbs{ color: rgba(232,227,213,.5); }
  :root:not([data-theme="light"]) .section--dark{ background: linear-gradient(180deg, #15130f, #0d0c0a); color: #f5f0e2; }
  :root:not([data-theme="light"]) .section--dark h2, :root:not([data-theme="light"]) .section--dark h3{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .section--dark p{ color: rgba(232,227,213,.7); }
  :root:not([data-theme="light"]) .card--dark{ background: #1e1b15; color: #e8e3d5; }
  :root:not([data-theme="light"]) .card--dark p{ color: rgba(232,227,213,.68); }
  :root:not([data-theme="light"]) .records-signature{ background: linear-gradient(180deg, #15130f, #0d0c0a); }
  :root:not([data-theme="light"]) .records-signature blockquote{ background: rgba(184,137,47,.04); border-color: rgba(184,137,47,.2); }
  :root:not([data-theme="light"]) .records-signature blockquote > p{ color: rgba(232,227,213,.78); }
  :root:not([data-theme="light"]) .records-signature footer strong{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .records-signature footer span{ color: rgba(232,227,213,.58); }
  :root:not([data-theme="light"]) .records-status{ background: #15130f; color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .badge-current{ background: #15130f; color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .archive-table th{ background: #15130f; color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .btn-dark{ background: #1e1b15; color: #f5f0e2; border-color: #1e1b15; }
  :root:not([data-theme="light"]) .btn-dark:hover{ background: #2a2620; }
  :root:not([data-theme="light"]) .ijazah-record{ background: #15130f; }
  :root:not([data-theme="light"]) .ijazah-record__identity strong{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .ijazah-record p{ color: #9a917e; }
  :root:not([data-theme="light"]) .team-card{ background: #15130f; }
  :root:not([data-theme="light"]) .team-card .role{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .team-card .spec{ color: #9a917e; border-top-color: rgba(184,137,47,.1); }
  :root:not([data-theme="light"]) .team-card p.bio{ color: #9a917e; }
  :root:not([data-theme="light"]) .vm-card{ background: #15130f; }
  :root:not([data-theme="light"]) .vm-card p{ color: #9a917e; }
  /* Force all text using --c-black or --c-gray-900 to white in dark mode */
:root:not([data-theme="light"]) .archive-audit-note strong{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .archive-hub-card strong{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .archive-table td strong{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .archive-date time{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .archive-course-file > summary strong{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .archive-empty--page strong{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .media-card__body h4{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .form-field label{ color: #e8e3d5; }
  :root:not([data-theme="light"]) .form-field input, :root:not([data-theme="light"]) .form-field select, :root:not([data-theme="light"]) .form-field textarea{ color: #e8e3d5; }
  :root:not([data-theme="light"]) .mobile-nav{ background: #0d0c0a; color: #e8e3d5; }
  :root:not([data-theme="light"]) .mobile-nav .m-link{ color: #e8e3d5; }
  :root:not([data-theme="light"]) .nav-link--feature{ background: var(--grad-gold); color: #0d0c0a !important; }
  :root:not([data-theme="light"]) .audio-card{ background: #15130f; }
  :root:not([data-theme="light"]) .audio-card__body h4{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .audio-card__body span{ color: #9a917e; }
  :root:not([data-theme="light"]) .media-card{ background: #15130f; }
  :root:not([data-theme="light"]) .media-card__body .cat{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .media-card__body span.meta{ color: #9a917e; }
  :root:not([data-theme="light"]) .video-series{ background:#15130f; border-color:rgba(184,137,47,.2); }
  :root:not([data-theme="light"]) .video-series__head{ background:linear-gradient(135deg,rgba(184,137,47,.12),rgba(21,19,15,.96)); border-bottom-color:rgba(184,137,47,.14); }
  :root:not([data-theme="light"]) .video-series :is(p,.video-series__count,.video-lesson-card__watch){ color:var(--c-gold-light); }
  :root:not([data-theme="light"]) .video-series__empty p,:root:not([data-theme="light"]) .video-lesson-card p{ color:#9a917e; }
  :root:not([data-theme="light"]) .records-index{ background: #15130f; border-color: rgba(184,137,47,.18); }
  :root:not([data-theme="light"]) .records-index a{ background: #1e1b15; color: #9a917e; }
  :root:not([data-theme="light"]) .records-index a strong{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .records-source{ background: linear-gradient(135deg, #15130f, #0d0c0a); }
  :root:not([data-theme="light"]) .records-source h2{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .records-source p{ color: #9a917e; }
  :root:not([data-theme="light"]) .records-stat{ background: #15130f; border-color: rgba(184,137,47,.16); }
  :root:not([data-theme="light"]) .records-stat strong{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .records-stat span{ color: #9a917e; }
  :root:not([data-theme="light"]) .ijazah-record__number{ background: rgba(184,137,47,.1); color: var(--c-gold-light); border-color: rgba(184,137,47,.2); }
  :root:not([data-theme="light"]) .regulation-page{ background: #0d0c0a; }
  :root:not([data-theme="light"]) .regulation-cover{ background: linear-gradient(135deg, #15130f, #0d0c0a); border-color: rgba(184,137,47,.18); }
  :root:not([data-theme="light"]) .regulation-cover h2,
:root:not([data-theme="light"]) .regulation-cover__academy,
:root:not([data-theme="light"]) .regulation-supervisors strong,
:root:not([data-theme="light"]) .regulation-subsection h3{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .regulation-cover__supervision,
:root:not([data-theme="light"]) .regulation-article p,
:root:not([data-theme="light"]) .regulation-list li,
:root:not([data-theme="light"]) .regulation-bullets li{ color: #9a917e; }
  :root:not([data-theme="light"]) .regulation-article{ background: #15130f; border-color: rgba(184,137,47,.14); }
  :root:not([data-theme="light"]) .regulation-article h2,
:root:not([data-theme="light"]) .regulation-supervisors span{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .regulation-supervisors strong{ background: rgba(184,137,47,.08); border-color: rgba(184,137,47,.16); }
  :root:not([data-theme="light"]) .regulation-subsection{ background: #0d0c0a; border-color: rgba(184,137,47,.12); }
  :root:not([data-theme="light"]) .team-card__photo{ border-color: #15130f; box-shadow: 0 0 0 3px var(--c-gold-dark), var(--shadow-gold); }
  :root:not([data-theme="light"]) .team-card__avatar{ background: rgba(184,137,47,.1); color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .team-growth{ background: #15130f; border-color: rgba(184,137,47,.2); }
  :root:not([data-theme="light"]) .team-growth p{ color: #9a917e; }
  :root:not([data-theme="light"]) .check-list li .ic{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .form-note{ color: #9a917e; }
  :root:not([data-theme="light"]) .form-success{ background: rgba(184,137,47,.1); color: var(--c-gold-light); border-color: rgba(184,137,47,.2); }
  :root:not([data-theme="light"]) .archive-source{ background: linear-gradient(135deg, #15130f, #0d0c0a); }
  :root:not([data-theme="light"]) .archive-source h2{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .archive-source p{ color: #9a917e; }
  :root:not([data-theme="light"]) .archive-source__meta a, :root:not([data-theme="light"]) .archive-source__meta span{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .archive-section__head h2{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .archive-section__head .eyebrow{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .archive-subsection h3{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .archive-subsection .eyebrow{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .archive-course-file > summary small{ color: #9a917e; }
  :root:not([data-theme="light"]) .archive-table td a{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .archive-table td small{ color: #9a917e; }
  :root:not([data-theme="light"]) .archive-record--image{ background: rgba(184,137,47,.04); }
  :root:not([data-theme="light"]) .archive-date small{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .records-top-link{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .archive-page__footer a{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .archive-section-nav a{ background: #15130f; color: #9a917e; border-color: rgba(184,137,47,.15); }
  :root:not([data-theme="light"]) .archive-section-nav a:hover{ color: var(--c-gold-light); border-color: var(--c-gold); }
  :root:not([data-theme="light"]) .section-head h2{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .section-head .eyebrow{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .btn-outline-dark{ color: #e8e3d5; border-color: rgba(232,227,213,.3); }
  :root:not([data-theme="light"]) .btn-outline-dark:hover{ border-color: var(--c-gold-light); color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .ornament i{ background: var(--c-gold); }
  :root:not([data-theme="light"]) .hero__eyebrow{ background: rgba(184,137,47,.1); border-color: rgba(184,137,47,.3); color: var(--c-gold-light); }
  :root:not([data-theme="light"]) .stat-box strong{ color: var(--c-gold-light); }
  /* Fix: buttons inside dark sections in dark mode */
:root:not([data-theme="light"]) .btn-outline{ color: rgba(232,227,213,.9) !important; border-color: rgba(232,227,213,.4) !important; }
  :root:not([data-theme="light"]) .btn-outline:hover{ border-color: var(--c-gold-light) !important; color: var(--c-gold-light) !important; }
  :root:not([data-theme="light"]) .section--dark .btn-outline{ color: rgba(255,255,255,.9) !important; border-color: rgba(255,255,255,.4) !important; }
  :root:not([data-theme="light"]) .section--dark .btn-outline:hover{ color: var(--c-gold-light) !important; border-color: var(--c-gold-light) !important; }
  :root:not([data-theme="light"]) .cta-band .btn-outline{ color: rgba(255,255,255,.9) !important; border-color: rgba(255,255,255,.4) !important; }
  :root:not([data-theme="light"]) .btn-gold{ background: var(--grad-gold) !important; color: #0d0c0a !important; }
  :root:not([data-theme="light"]) .btn-dark{ background: #1e1b15 !important; color: #f5f0e2 !important; border-color: #2a2620 !important; }
  :root:not([data-theme="light"]) .btn-dark:hover{ background: #2a2620 !important; }
  :root:not([data-theme="light"]) .trust-strip{ border-color: rgba(227,194,115,.18); }
  :root:not([data-theme="light"]) .trust-strip__item{ color: #9a917e; }
  :root:not([data-theme="light"]) .trust-strip__item strong{ color: var(--c-gold-light); }
  :root:not([data-theme="light"]) a.trust-strip__item:hover{ color: #e8e3d5; }
  :root:not([data-theme="light"]) a.trust-strip__item:hover strong{ color: var(--c-gold-lighter); }
  :root:not([data-theme="light"]) .trust-strip__divider{ background: rgba(227,194,115,.28); }
  :root:not([data-theme="light"]) .teacher-card,
:root:not([data-theme="light"]) .teacher-card{
  background: #15130f;
  border-color: rgba(184,137,47,.22);
  color: #e8e3d5;
}
  :root:not([data-theme="light"]) .teacher-card__name,
:root:not([data-theme="light"]) .teacher-card__name{
  color: #f5f0e2;
}
  :root:not([data-theme="light"]) .teacher-card__count,
:root:not([data-theme="light"]) .teacher-card__count{
  background: rgba(184,137,47,.15);
  color: var(--c-gold-light);
}
  :root:not([data-theme="light"]) .teacher-card__head,
:root:not([data-theme="light"]) .teacher-card__head{
  border-bottom-color: rgba(184,137,47,.22);
}
  :root:not([data-theme="light"]) .student-chip,
:root:not([data-theme="light"]) .student-chip{
  background: #1e1b15;
  border-color: rgba(184,137,47,.2);
  color: #d8d2c2;
}
  :root:not([data-theme="light"]) .student-chip:hover,
:root:not([data-theme="light"]) .student-chip:hover{
  background: #252017;
  border-color: var(--c-gold-light);
  color: var(--c-gold-light);
}
  /* Ported from the old hand-written prefers-color-scheme block so they live in
   the single authored source and reach both dark paths. */
:root:not([data-theme="light"]) .card--compact p{ color: #9a917e; }
  :root:not([data-theme="light"]) .news-card,
:root:not([data-theme="light"]) .news-article__shell{ background:#15130f; border-color:rgba(184,137,47,.18); }
  :root:not([data-theme="light"]) .academy-calendar{ background:#15130f; border-color:rgba(184,137,47,.24); box-shadow:0 16px 38px -20px rgba(0,0,0,.85); }
  :root:not([data-theme="light"]) .academy-calendar__heading span{ color:var(--c-gold-light); }
  :root:not([data-theme="light"]) .academy-calendar__nav{ color:var(--c-gold-light); border-color:rgba(227,194,115,.38); }
  :root:not([data-theme="light"]) .academy-calendar__day.is-today{ border-color:var(--c-gold-light); background:rgba(184,137,47,.15); }
  :root:not([data-theme="light"]) .academy-calendar__day.is-today strong{ color:var(--c-gold-light); }
  :root:not([data-theme="light"]) .home-calendar-sidebar__head h2{ color:#f5f0e2; }
  :root:not([data-theme="light"]) .home-calendar-sidebar__head p{ color:#b8af9b; }
  :root:not([data-theme="light"]) .news-banner__stage{ background:#29251f; border-color:rgba(227,194,115,.28); box-shadow:0 18px 42px -20px rgba(0,0,0,.7); }
  :root:not([data-theme="light"]) .news-carousel__controls{ background:#29251f; border-color:rgba(227,194,115,.28); }
  :root:not([data-theme="light"]) .news-banner{ background:linear-gradient(135deg,#2d2922 0%,#373026 52%,#29251f 100%); }
  :root:not([data-theme="light"]) .news-banner::before{ background-image:linear-gradient(rgba(227,194,115,.1) 1px,transparent 1px),linear-gradient(90deg,rgba(227,194,115,.1) 1px,transparent 1px); }
  :root:not([data-theme="light"]) .news-banner__content h3{ color:#f5f0e2; }
  :root:not([data-theme="light"]) .news-banner__content p,
:root:not([data-theme="light"]) .news-banner__meta time{ color:#d2c8b4; }
  :root:not([data-theme="light"]) .news-banner__meta{ color:var(--c-gold-light); }
  :root:not([data-theme="light"]) .news-banner__demo,
:root:not([data-theme="light"]) .news-banner__link{ background:rgba(30,27,22,.45); border-color:rgba(227,194,115,.45); color:#f5f0e2; }
  :root:not([data-theme="light"]) .news-carousel__btn{ background:rgba(42,37,30,.9); border-color:rgba(227,194,115,.48); color:var(--c-gold-light); box-shadow:0 6px 16px rgba(0,0,0,.3); }
  :root:not([data-theme="light"]) .news-carousel__dots button{ background:rgba(245,240,226,.36); box-shadow:0 1px 3px rgba(0,0,0,.38); }
  :root:not([data-theme="light"]) .news-carousel__dots button.active{ background:var(--c-gold-light); }
  :root:not([data-theme="light"]) .interactive-card:hover,
:root:not([data-theme="light"]) .interactive-card:focus-visible,
:root:not([data-theme="light"]) .interactive-card:focus-within{
  border-color:rgba(227,194,115,.54);
  box-shadow:0 20px 42px -20px rgba(0,0,0,.82), 0 0 0 3px rgba(227,194,115,.14);
}
  :root:not([data-theme="light"]) .news-card h3{ color:#f5f0e2; }
  :root:not([data-theme="light"]) .news-card p,
:root:not([data-theme="light"]) .news-card__meta time,
:root:not([data-theme="light"]) .news-article__meta time,
:root:not([data-theme="light"]) .news-article__body{ color:#9a917e; }
  :root:not([data-theme="light"]) .news-card__media,
:root:not([data-theme="light"]) .news-article__image{ background:linear-gradient(145deg, rgba(184,137,47,.16), rgba(21,19,15,.85)); }
  :root:not([data-theme="light"]) .news-card__media--fallback,
:root:not([data-theme="light"]) .news-article__image--fallback{ background:linear-gradient(135deg, #211a0e, #4d3714 52%, #17130e); }
  :root:not([data-theme="light"]) .news-card__media::before,
:root:not([data-theme="light"]) .news-article__image--fallback::before{ border-color:rgba(227,194,115,.2); }
  :root:not([data-theme="light"]) .news-card__meta,
:root:not([data-theme="light"]) .news-article__meta{ color:var(--c-gold-light); }
  :root:not([data-theme="light"]) .hero-media{ background: #15130f; border-color: rgba(184,137,47,.18); }
  :root:not([data-theme="light"]) .hero-media__name{ color: #f5f0e2; }
  :root:not([data-theme="light"]) .hero-media__photo{ border-color: #15130f; box-shadow: 0 0 0 3px rgba(184,137,47,.35), 0 14px 34px -10px rgba(0,0,0,.35); }
  :root:not([data-theme="light"]) .hero-media__quote{ color: #f5f0e2; }
  /* --c-gold-dark is tuned for gold text on the light cream background and is
   not restated by the dark palette, so on a dark card it fell to 3.68:1 and in
   the header to 3.88:1 — below the 4.5:1 WCAG AA minimum (both are small text:
   14.08px/700 and 9.28px/400). Dark mode already uses --c-gold-light for gold
   text elsewhere (.eyebrow, .stat-box strong, .nav-link:hover), so these two
   follow the same convention: 10.80:1 and 11.39:1. Light mode is unchanged and
   already passed at 5.04:1 and 4.70:1. */
:root:not([data-theme="light"]) .card__link{ color: var(--c-gold-light); }
}
