/* ==========================================================================
   DAMAQS — Daarul Mu'uminaat Institute of Qur'an Studies
   Premium Design System · Emerald · Cream · Gold
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --green-950: #06231B;
  --green-900: #0A3227;
  --green-800: #0F4433;
  --green-700: #155A44;
  --green-600: #1E7257;
  --green-500: #2A8F6D;
  --green-100: #DDEBE3;

  --gold-100: #F6ECCF;
  --gold-200: #EDDCA4;
  --gold-300: #E3CD7E;
  --gold-400: #D4B757;
  --gold-500: #C9A227;
  --gold-600: #A8861B;

  --cream-50:  #FDFBF5;
  --cream-100: #FAF5E9;
  --cream-200: #F3EBD8;
  --cream-300: #E9DDC2;

  --ink: #21302A;
  --ink-soft: #5A6B62;
  --ink-faint: #8A988F;

  --font-serif: "Cormorant Garamond", "Georgia", serif;
  --font-sans: "Jost", "Segoe UI", sans-serif;
  --font-arabic: "Amiri", serif;

  --shadow-soft: 0 18px 45px -18px rgba(10, 50, 39, .22);
  --shadow-deep: 0 32px 70px -28px rgba(6, 35, 27, .45);
  --radius-card: 22px;
  --ease: cubic-bezier(.22, .8, .28, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream-100);
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--gold-400); color: var(--green-950); }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--cream-200); }
::-webkit-scrollbar-thumb { background: var(--green-700); border-radius: 8px; border: 3px solid var(--cream-200); }
::-webkit-scrollbar-thumb:hover { background: var(--green-800); }

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

/* ---------- Typography ---------- */
h1, h2, h3, .serif { font-family: var(--font-serif); font-weight: 600; line-height: 1.14; letter-spacing: .2px; }

.arabic { font-family: var(--font-arabic); direction: rtl; }

.display-1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); }
.display-2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }

.section-title em, .display-1 em, .display-2 em {
  font-style: italic;
  color: var(--gold-600);
}
.on-dark .section-title em, .on-dark h1 em { color: var(--gold-300); }

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

.section { position: relative; padding: clamp(72px, 9vw, 128px) 0; }

.section.cream { background: var(--cream-100); }
.section.dark {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(201,162,39,.14), transparent 60%),
    radial-gradient(900px 420px at 0% 110%, rgba(42,143,109,.18), transparent 55%),
    linear-gradient(160deg, var(--green-900), var(--green-950) 70%);
  color: var(--cream-100);
}
.section.dark h1, .section.dark h2, .section.dark h3 { color: var(--cream-50); }

/* subtle geometric star pattern for texture */
.pattern-light, .pattern-dark { position: absolute; inset: 0; pointer-events: none; opacity: .5; }
.pattern-light {
  background-image: url("data:image/svg+xml,%3Csvg width='92' height='92' viewBox='0 0 92 92' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C9A227' stroke-opacity='.16'%3E%3Cpath d='M46 8l7.6 30.4L84 46l-30.4 7.6L46 84l-7.6-30.4L8 46l30.4-7.6z'/%3E%3Ccircle cx='46' cy='46' r='3'/%3E%3C/g%3E%3C/svg%3E");
}
.pattern-dark {
  background-image: url("data:image/svg+xml,%3Csvg width='92' height='92' viewBox='0 0 92 92' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23E3CD7E' stroke-opacity='.08'%3E%3Cpath d='M46 8l7.6 30.4L84 46l-30.4 7.6L46 84l-7.6-30.4L8 46l30.4-7.6z'/%3E%3Ccircle cx='46' cy='46' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Section Headers & Ornaments ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(44px, 6vw, 72px); position: relative; z-index: 2; }

.section-label {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .78rem; font-weight: 500; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 18px;
}
.section-label::before, .section-label::after {
  content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-400));
}
.section-label::after { background: linear-gradient(90deg, var(--gold-400), transparent); }
.on-dark .section-label, .section.dark .section-label { color: var(--gold-300); }

.section-sub { margin-top: 18px; font-size: 1.05rem; color: var(--ink-soft); max-width: 640px; margin-inline: auto; }
.section.dark .section-sub { color: #C7D6CC; }

.ornament {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 26px; color: var(--gold-500); font-size: 1.05rem;
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; width: 64px;
  background: linear-gradient(90deg, transparent, var(--gold-400));
}
.ornament::after { background: linear-gradient(90deg, var(--gold-400), transparent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 500; font-size: .92rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 16px 34px; border-radius: 999px; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .35s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 55%, var(--gold-400));
  color: var(--green-950);
  box-shadow: 0 14px 30px -12px rgba(201,162,39,.55);
}
.btn-gold::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-22deg); transition: left .6s var(--ease);
}
.btn-gold:hover::after { left: 130%; }

.btn-outline { border: 1px solid var(--gold-400); color: var(--gold-600); background: transparent; }
.btn-outline:hover { background: var(--gold-100); }
.on-dark .btn-outline, .section.dark .btn-outline { border-color: var(--gold-300); color: var(--gold-200); }
.on-dark .btn-outline:hover, .section.dark .btn-outline:hover { background: rgba(227,205,126,.12); color: var(--gold-100); }

.btn-ghost { color: var(--green-800); padding: 16px 8px; letter-spacing: .14em; border-bottom: 1px solid transparent; }
.btn-ghost:hover { border-bottom-color: var(--gold-500); }

/* ---------- Announcement Bar ---------- */
.announce {
  position: relative; z-index: 60;
  background: linear-gradient(90deg, var(--green-950), var(--green-800), var(--green-950));
  color: var(--cream-200); font-size: .8rem; letter-spacing: .12em;
  text-align: center; padding: 9px 16px;
  border-bottom: 1px solid rgba(201,162,39,.35);
}
.announce b { color: var(--gold-300); font-weight: 500; }
.announce a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Navigation ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 100;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  padding: 22px 0;
  transition: padding .4s var(--ease), background .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(253,251,245,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px -18px rgba(10,50,39,.3);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo-img {
  width: 44px; height: auto; flex: none; display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
  transition: filter .3s;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-serif); font-size: 1.28rem; font-weight: 700; color: var(--cream-50); letter-spacing: .04em; }
.brand-tag { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-300); }
.nav.scrolled .brand-name { color: var(--green-900); }
.nav.scrolled .brand-tag { color: var(--gold-600); }
/* Logo swap (dark→colour) handled in JS via data attributes */

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: .84rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream-200); position: relative; padding: 6px 0;
  transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold-400); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-links a:hover { color: var(--gold-300); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav.scrolled .nav-links a { color: var(--ink-soft); }
.nav.scrolled .nav-links a:hover { color: var(--green-800); }

.nav-cta { font-size: .8rem; padding: 12px 26px; }
.burger { display: none; flex-direction: column; gap: 6px; padding: 8px; z-index: 95; }
.burger span { width: 26px; height: 2px; background: var(--cream-100); border-radius: 2px; transition: .35s var(--ease); }
.nav.scrolled .burger span { background: var(--green-900); }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--gold-400); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--gold-400); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 150px 0 90px;
  background:
    radial-gradient(1000px 520px at 78% 18%, rgba(201,162,39,.16), transparent 62%),
    radial-gradient(800px 600px at 8% 92%, rgba(42,143,109,.22), transparent 60%),
    linear-gradient(158deg, var(--green-900) 0%, var(--green-950) 78%);
  color: var(--cream-100);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 130px;
  background: linear-gradient(180deg, transparent, rgba(6,35,27,.9));
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 88px); align-items: center; position: relative; z-index: 3; }

.hero-bismillah {
  font-family: var(--font-arabic); font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--gold-300); margin-bottom: 20px; direction: rtl; text-align: left;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .74rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-200);
  border: 1px solid rgba(227,205,126,.4); border-radius: 999px; padding: 8px 18px; margin-bottom: 26px;
  background: rgba(227,205,126,.07);
}
.hero-copy h1 { color: var(--cream-50); }
.hero-copy .lead {
  margin-top: 24px; font-size: 1.08rem; color: #C9D8CE; max-width: 560px; line-height: 1.9;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px; padding: 10px 18px;
  border: 1px solid rgba(201,162,39,.45);
  border-radius: 999px;
  background: rgba(201,162,39,.12);
  color: var(--gold-300);
  font-size: .82rem; letter-spacing: .06em; font-weight: 500;
  max-width: max-content;
}
.hero-badge svg { flex: none; color: var(--gold-400); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 38px; }

.hero-stats {
  display: flex; gap: clamp(24px, 4vw, 56px); margin-top: 54px; padding-top: 34px;
  border-top: 1px solid rgba(227,205,126,.22);
}
.stat .stat-num {
  font-family: var(--font-serif); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 700;
  color: var(--gold-300); line-height: 1;
}
.stat .stat-num sup { font-size: .55em; margin-left: 2px; }
.stat .stat-label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: #9FB4A7; margin-top: 8px; }

.hero-visual { position: relative; }
.arch-frame {
  position: relative; padding: 16px;
  background: linear-gradient(150deg, rgba(227,205,126,.9), rgba(201,162,39,.35) 38%, rgba(227,205,126,.75));
  border-radius: 999px 999px 26px 26px;
  box-shadow: var(--shadow-deep);
}
.arch-frame .arch-inner {
  border-radius: 999px 999px 14px 14px; overflow: hidden;
  aspect-ratio: 4 / 5.1;
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }

.float-card {
  position: absolute; z-index: 4;
  background: rgba(253,251,245,.96); backdrop-filter: blur(8px);
  border: 1px solid var(--gold-200); border-radius: 18px;
  padding: 16px 20px; box-shadow: var(--shadow-soft);
  display: flex; align-items: center; gap: 14px;
  animation: floaty 7s ease-in-out infinite;
}
.float-card .fc-icon {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  display: grid; place-items: center; color: var(--gold-600);
  background: linear-gradient(140deg, var(--cream-200), var(--gold-100));
  border: 1px solid var(--gold-300);
}
.float-card .fc-title { font-family: var(--font-serif); font-weight: 700; font-size: 1.02rem; color: var(--green-900); line-height: 1.25; }
.float-card .fc-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.float-card.fc-1 { top: 12%; left: -8%; animation-delay: 0s; }
.float-card.fc-2 { bottom: 10%; right: -7%; animation-delay: 2.4s; }

@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-13px) } }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--gold-200); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
}
.scroll-hint .mouse { width: 24px; height: 40px; border: 1.5px solid var(--gold-300); border-radius: 14px; position: relative; }
.scroll-hint .mouse::after {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 8px; border-radius: 3px; background: var(--gold-300);
  animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 1; top: 7px } 70% { opacity: 0; top: 20px } 100% { opacity: 0 } }

/* ---------- Marquee Ribbon ---------- */
.marquee {
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400) 50%, var(--gold-500));
  padding: 13px 0; overflow: hidden; position: relative;
  box-shadow: 0 18px 40px -22px rgba(168,134,27,.6);
}
.marquee-track { display: flex; gap: 0; width: max-content; animation: scrollx 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 26px; padding-right: 26px;
  color: var(--green-950); font-size: .8rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track span::after { content: "۞"; color: rgba(6,35,27,.55); font-size: .95rem; }
@keyframes scrollx { to { transform: translateX(-50%) } }

/* ---------- Founder Section ---------- */
.founder-grid { display: grid; grid-template-columns: .94fr 1.06fr; gap: clamp(44px, 6vw, 84px); align-items: center; }

.founder-visual { position: relative; }
.founder-visual .arch-frame { transform: rotate(-2deg); }
.founder-quote {
  position: absolute; z-index: 5; bottom: -26px; right: -14px; max-width: 300px;
  background: linear-gradient(150deg, var(--green-800), var(--green-950));
  color: var(--cream-200); border: 1px solid var(--gold-500);
  border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow-deep);
  transform: rotate(1.5deg);
}
.founder-quote .arabic { color: var(--gold-300); font-size: 1.28rem; line-height: 2; }
.founder-quote .trans { font-size: .8rem; color: #B9CBBF; margin-top: 6px; font-style: italic; }

.founder-copy .signature {
  font-family: var(--font-serif); font-style: italic; font-weight: 600;
  font-size: 2rem; color: var(--green-800); margin-top: 26px;
  border-bottom: 1px solid var(--gold-300); display: inline-block; padding-bottom: 4px;
}
.founder-copy .role { font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-600); margin-top: 10px; }

.credential-list { margin-top: 30px; display: grid; gap: 16px; }
.credential {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(253,251,245,.72); border: 1px solid var(--cream-300);
  border-radius: 16px; padding: 16px 20px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.credential:hover { transform: translateX(6px); border-color: var(--gold-400); box-shadow: var(--shadow-soft); }
.credential .cred-icon {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-600);
  border: 1px solid var(--gold-300); background: var(--gold-100);
}
.credential b { display: block; font-weight: 500; color: var(--green-900); font-size: .98rem; }
.credential span { font-size: .88rem; color: var(--ink-soft); }

/* ---------- Departments ---------- */
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.dept-card.dept-flagship { grid-column: 2 / span 2; }
@media (max-width: 900px) { .dept-card.dept-flagship { grid-column: auto; } }

.dept-card {
  position: relative; background: var(--cream-50);
  border: 1px solid var(--cream-300); border-radius: var(--radius-card);
  padding: 34px 26px 28px; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.dept-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--green-600), var(--gold-400));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.dept-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); border-color: var(--gold-300); }
.dept-card:hover::before { transform: scaleX(1); }

.dept-num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700;
  color: var(--cream-300); line-height: 1;
}
.dept-icon {
  width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center; margin-bottom: 20px;
  color: var(--green-700); background: var(--green-100);
  border: 1px solid rgba(21,90,68,.18);
  transition: .4s var(--ease);
}
.dept-card:hover .dept-icon { background: linear-gradient(140deg, var(--green-700), var(--green-900)); color: var(--gold-300); transform: rotate(-6deg) scale(1.05); }
.dept-card h3 { font-size: 1.3rem; color: var(--green-900); margin-bottom: 10px; }
.dept-card p { font-size: .92rem; color: var(--ink-soft); line-height: 1.75; }
.dept-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: .74rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-600);
}
.dept-link svg { transition: transform .35s var(--ease); }
.dept-link:hover svg { transform: translateX(5px); }

.dept-card.featured {
  background:
    radial-gradient(300px 200px at 90% 0%, rgba(201,162,39,.22), transparent 60%),
    linear-gradient(160deg, var(--green-800), var(--green-950));
  border-color: var(--gold-500); color: var(--cream-200);
}
.dept-card.featured .dept-num { color: rgba(227,205,126,.28); }
.dept-card.featured .dept-icon { background: rgba(227,205,126,.12); color: var(--gold-300); border-color: rgba(227,205,126,.4); }
.dept-card.featured h3 { color: var(--cream-50); }
.dept-card.featured p { color: #C3D3C8; }
.dept-card.featured .dept-link { color: var(--gold-300); }
.free-tag {
  position: absolute; top: 22px; right: -34px; transform: rotate(45deg);
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); color: var(--green-950);
  font-size: .62rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  padding: 5px 40px; box-shadow: 0 6px 18px rgba(168,134,27,.4);
}

/* ---------- Learning Modes ---------- */
.modes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mode-card {
  position: relative; border-radius: var(--radius-card); padding: clamp(34px, 4vw, 52px);
  overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s;
}
.mode-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-deep); }
.mode-card.dark-mode {
  background:
    radial-gradient(400px 240px at 100% 0%, rgba(201,162,39,.2), transparent 60%),
    linear-gradient(155deg, var(--green-800), var(--green-950));
  color: var(--cream-200); border: 1px solid rgba(227,205,126,.35);
}
.mode-card.light-mode { background: var(--cream-50); border: 1px solid var(--gold-300); box-shadow: var(--shadow-soft); }
.mode-card .arabic-tag { font-family: var(--font-arabic); font-size: 1.4rem; color: var(--gold-500); margin-bottom: 14px; }
.mode-card.light-mode .arabic-tag { color: var(--gold-600); }
.mode-card h3 { font-size: 1.7rem; margin-bottom: 6px; }
.mode-card.light-mode h3 { color: var(--green-900); }
.mode-card .mode-sub { font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 20px; }
.mode-card.dark-mode .mode-sub { color: var(--gold-300); }
.mode-card.light-mode .mode-sub { color: var(--gold-600); }
.mode-card p { font-size: .96rem; line-height: 1.85; }
.mode-card.dark-mode p { color: #C7D6CC; }
.mode-card.light-mode p { color: var(--ink-soft); }
.mode-points { margin-top: 22px; display: grid; gap: 12px; }
.mode-points li { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.mode-card.dark-mode .mode-points li { color: var(--cream-100); }
.mode-card.light-mode .mode-points li { color: var(--ink); }
.mode-points .pt-check {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: .68rem; color: var(--green-950);
  background: linear-gradient(140deg, var(--gold-300), var(--gold-500));
}

/* ---------- Admission Journey ---------- */
.journey-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.journey-track::before {
  content: ""; position: absolute; top: 37px; left: 8%; right: 8%; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--gold-500) 0 14px, transparent 14px 26px);
}
.journey-step { text-align: center; position: relative; padding: 0 12px; }
.journey-num {
  width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--gold-600);
  background: var(--cream-50); border: 1.5px solid var(--gold-400);
  box-shadow: 0 0 0 8px var(--cream-100), 0 16px 34px -14px rgba(168,134,27,.45);
  transition: .4s var(--ease);
}
.journey-step:hover .journey-num {
  background: linear-gradient(140deg, var(--gold-300), var(--gold-500));
  color: var(--green-950); transform: scale(1.08);
}
.journey-step h3 { font-size: 1.2rem; color: var(--green-900); margin-bottom: 8px; }
.journey-step p { font-size: .88rem; color: var(--ink-soft); }
.journey-step .step-tag {
  display: inline-block; margin-top: 12px; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-600); border: 1px solid var(--gold-300); border-radius: 999px; padding: 4px 12px; background: var(--gold-100);
}

/* ---------- Why Choose Us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card {
  padding: 34px 28px; border-radius: var(--radius-card);
  background: rgba(253,251,245,.05); border: 1px solid rgba(227,205,126,.22);
  transition: .4s var(--ease);
}
.why-card:hover { background: rgba(253,251,245,.09); border-color: rgba(227,205,126,.5); transform: translateY(-6px); }
.why-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  color: var(--gold-300); background: rgba(227,205,126,.1); border: 1px solid rgba(227,205,126,.35);
}
.why-card h3 { font-size: 1.26rem; color: var(--cream-50); margin-bottom: 10px; }
.why-card p { font-size: .92rem; color: #BCCFC3; line-height: 1.8; }

/* ---------- Fees ---------- */
.fee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.fee-card {
  position: relative; background: var(--cream-50); border: 1px solid var(--cream-300);
  border-radius: var(--radius-card); padding: 40px 32px 34px;
  display: flex; flex-direction: column;
  transition: .4s var(--ease);
}
.fee-card:hover { border-color: var(--gold-400); box-shadow: var(--shadow-soft); transform: translateY(-6px); }
.fee-card.popular {
  border-color: var(--gold-500);
  background:
    radial-gradient(360px 220px at 100% 0%, rgba(201,162,39,.1), transparent 55%),
    linear-gradient(170deg, #FFFDF8, var(--cream-100));
  box-shadow: var(--shadow-soft);
}
.popular-tag {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--green-700), var(--green-900)); color: var(--gold-300);
  font-size: .64rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  padding: 7px 18px; border-radius: 999px; border: 1px solid var(--gold-500); white-space: nowrap;
}
.fee-card .arabic-tag { font-family: var(--font-arabic); font-size: 1.25rem; color: var(--gold-600); }
.fee-card h3 { font-size: 1.45rem; color: var(--green-900); margin: 8px 0 4px; }
.fee-card .fee-for { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 22px; }
.fee-features { display: grid; gap: 13px; margin-bottom: 28px; }
.fee-features li { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.fee-features .f-check {
  width: 20px; height: 20px; flex: none; margin-top: 3px; border-radius: 50%;
  display: grid; place-items: center; font-size: .62rem; color: var(--green-950);
  background: linear-gradient(140deg, var(--gold-300), var(--gold-500));
}
.fee-card .btn { margin-top: auto; width: 100%; }
.fee-note {
  margin-top: 34px; text-align: center; font-size: .92rem; color: var(--ink-soft);
  max-width: 720px; margin-inline: auto;
}
.fee-note b { color: var(--green-800); font-weight: 500; }

/* ---------- Testimonials ---------- */
.testi-shell { position: relative; max-width: 860px; margin: 0 auto; }
.testi-slider { overflow: hidden; border-radius: 26px; }
.testi-track { display: flex; transition: transform .65s var(--ease); }
.testi-slide { flex: 0 0 100%; padding: clamp(36px, 5vw, 56px); text-align: center; }
.testi-slide .t-stars { color: var(--gold-400); letter-spacing: .4em; font-size: .95rem; margin-bottom: 20px; }
.testi-slide .t-quote {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem); line-height: 1.65; color: var(--cream-50);
}
.testi-slide .t-quote::before { content: "“"; color: var(--gold-400); font-size: 1.4em; }
.testi-slide .t-quote::after { content: "”"; color: var(--gold-400); font-size: 1.4em; }
.testi-slide .t-person { margin-top: 26px; font-weight: 500; color: var(--gold-300); letter-spacing: .06em; }
.testi-slide .t-role { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: #9FB4A7; margin-top: 4px; }
.testi-slide .t-pending {
  margin-top: 16px; display: inline-block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-200); border: 1px dashed rgba(227,205,126,.5); border-radius: 999px; padding: 5px 14px;
}
.testi-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 34px; }
.testi-arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(227,205,126,.45); color: var(--gold-300);
  display: grid; place-items: center; transition: .35s var(--ease);
}
.testi-arrow:hover { background: var(--gold-500); color: var(--green-950); border-color: var(--gold-500); }
.testi-dots { display: flex; gap: 10px; }
.testi-dots button {
  width: 9px; height: 9px; border-radius: 50%; background: rgba(227,205,126,.3); transition: .3s;
}
.testi-dots button.active { background: var(--gold-400); transform: scale(1.35); }
.testi-note { text-align: center; margin-top: 26px; font-size: .8rem; color: #9FB4A7; font-style: italic; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--cream-50); border: 1px solid var(--cream-300);
  border-radius: 18px; margin-bottom: 16px; overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.faq-item.open { border-color: var(--gold-400); box-shadow: var(--shadow-soft); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 24px 28px; font-family: var(--font-serif); font-size: 1.18rem; font-weight: 600; color: var(--green-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--gold-500); color: var(--gold-600);
  display: grid; place-items: center; transition: .4s var(--ease); font-size: 1.1rem; line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--gold-500); color: var(--green-950); }
.faq-body { padding: 0 28px 26px; color: var(--ink-soft); font-size: .95rem; line-height: 1.85; }

/* ---------- Registration ---------- */
.register-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 70px); align-items: start; }

.register-info .contact-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 24px; border-radius: 18px; margin-bottom: 18px;
  background: rgba(253,251,245,.05); border: 1px solid rgba(227,205,126,.22);
  transition: .35s var(--ease);
}
.register-info .contact-card:hover { border-color: rgba(227,205,126,.5); background: rgba(253,251,245,.08); }
.contact-icon {
  width: 46px; height: 46px; flex: none; border-radius: 14px;
  display: grid; place-items: center; color: var(--gold-300);
  background: rgba(227,205,126,.1); border: 1px solid rgba(227,205,126,.35);
}
.contact-card b { display: block; color: var(--cream-50); font-weight: 500; margin-bottom: 4px; }
.contact-card span, .contact-card a { font-size: .9rem; color: #BCCFC3; }
.contact-card a:hover { color: var(--gold-300); }

.trial-banner {
  margin-top: 26px; border-radius: 20px; padding: 26px 28px;
  background:
    radial-gradient(300px 180px at 100% 0%, rgba(201,162,39,.25), transparent 60%),
    linear-gradient(150deg, var(--gold-500), var(--gold-600));
  color: var(--green-950); box-shadow: 0 20px 44px -18px rgba(168,134,27,.55);
}
.trial-banner .arabic { font-size: 1.3rem; margin-bottom: 8px; }
.trial-banner b { font-weight: 600; font-size: 1.05rem; display: block; margin-bottom: 6px; }
.trial-banner p { font-size: .88rem; line-height: 1.7; }

.register-form {
  background: var(--cream-50); border: 1px solid var(--gold-300);
  border-radius: 26px; padding: clamp(30px, 4vw, 46px);
  box-shadow: var(--shadow-deep);
}
.form-head { margin-bottom: 28px; }
.form-head .arabic { color: var(--gold-600); font-size: 1.35rem; margin-bottom: 8px; }
.form-head h3 { font-size: 1.6rem; color: var(--green-900); }
.form-head p { font-size: .88rem; color: var(--ink-soft); margin-top: 6px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--green-800);
}
.form-field label .req { color: var(--gold-600); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-sans); font-weight: 400; font-size: .95rem; color: var(--ink);
  background: var(--cream-100); border: 1px solid var(--cream-300);
  border-radius: 12px; padding: 14px 16px;
  transition: border-color .3s, box-shadow .3s, background .3s;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(201,162,39,.15);
}
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23155A44' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-submit { margin-top: 28px; width: 100%; font-size: .95rem; padding: 18px; }
.form-privacy { text-align: center; font-size: .76rem; color: var(--ink-faint); margin-top: 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 140%);
  z-index: 200; max-width: min(480px, 92vw);
  background: linear-gradient(150deg, var(--green-800), var(--green-950));
  color: var(--cream-100); border: 1px solid var(--gold-500);
  border-radius: 16px; padding: 16px 22px; box-shadow: var(--shadow-deep);
  display: flex; align-items: center; gap: 14px;
  transition: transform .5s var(--ease);
}
.toast.show { transform: translate(-50%, 0); }
.toast .t-icon { color: var(--gold-300); font-size: 1.2rem; }
.toast p { font-size: .88rem; line-height: 1.5; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background:
    radial-gradient(900px 400px at 90% 0%, rgba(201,162,39,.12), transparent 55%),
    linear-gradient(175deg, var(--green-950), #041711);
  color: #A9BDB0; padding: 90px 0 0; overflow: hidden;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(30px, 4vw, 60px); position: relative; z-index: 2; }
.footer .brand-name { color: var(--cream-50); }
.footer-about { font-size: .9rem; line-height: 1.85; margin-top: 20px; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-serif); color: var(--gold-300); font-size: 1.15rem; font-weight: 600;
  margin-bottom: 22px; position: relative; padding-bottom: 12px;
}
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 1.5px; background: var(--gold-500); }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: .9rem; transition: color .3s, padding-left .3s; }
.footer-col a:hover { color: var(--gold-300); padding-left: 6px; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  display: grid; place-items: center; color: var(--gold-300);
  border: 1px solid rgba(227,205,126,.35); background: rgba(227,205,126,.06);
  transition: .35s var(--ease);
}
.footer-social a:hover { background: var(--gold-500); color: var(--green-950); transform: translateY(-4px); border-color: var(--gold-500); }

.footer-dua { text-align: center; margin-top: 70px; padding: 40px 20px 0; border-top: 1px solid rgba(227,205,126,.18); }
.footer-dua .arabic { font-size: 1.5rem; color: var(--gold-300); line-height: 2.1; }
.footer-dua .trans { font-family: var(--font-serif); font-style: italic; color: #C7D6CC; margin-top: 8px; font-size: .95rem; }
.footer-base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 34px; padding: 24px 0 30px; font-size: .78rem; color: #7E948A;
  border-top: 1px solid rgba(227,205,126,.14);
}
.footer-base .made { letter-spacing: .14em; text-transform: uppercase; font-size: .68rem; }
.footer-base .made b { color: var(--gold-400); font-weight: 500; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 80;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--green-700), var(--green-950));
  color: var(--gold-300); border: 1px solid var(--gold-500);
  box-shadow: var(--shadow-deep);
  opacity: 0; pointer-events: none; transform: translateY(16px);
  transition: .4s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: linear-gradient(140deg, var(--gold-400), var(--gold-600)); color: var(--green-950); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal[data-delay="4"] { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 940px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .nav-open .nav-links {
    display: flex; position: fixed; inset: 0; z-index: 92;
    flex-direction: column; justify-content: center; gap: 34px;
    background: linear-gradient(165deg, var(--green-900), var(--green-950));
    font-size: 1.05rem;
  }
  .nav-open .nav-links a { color: var(--cream-100) !important; }
  .nav-open .nav-links a:hover { color: var(--gold-300) !important; }
  .nav-open { background: transparent; box-shadow: none; backdrop-filter: none; }
  .nav-open .burger span { background: var(--cream-100); }
  .nav-open .burger.open span { background: var(--gold-400); }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-bismillah { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .float-card.fc-1 { left: -4%; }
  .float-card.fc-2 { right: -3%; }

  .founder-grid, .register-grid { grid-template-columns: 1fr; }
  .founder-visual { max-width: 480px; margin: 0 auto 40px; }
  .modes-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .fee-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .journey-track { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .journey-track::before { display: none; }
}

@media (max-width: 640px) {
  .dept-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 22px; }
  .float-card { display: none; }
  .journey-track { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-about { margin-inline: auto; }
  .footer-social { justify-content: center; }
  .footer-base { justify-content: center; text-align: center; }
  .brand-tag { display: none; }
  .to-top { right: 16px; bottom: 16px; }
}
