/* ============================================================
   Ahsan Model School — Stylesheet
   Palette: sage green + warm cream, terracotta & gold accents
   ============================================================ */

:root {
  --sage-50: #F3F7F4; --sage-100: #EAF0EC; --sage-200: #D4E0D8; --sage-300: #AEC5B8;
  --sage-400: #7FA08D; --sage-500: #5C7F6E; --sage-600: #3E5C50; --sage-700: #284037;
  --sage-800: #1E3029; --sage-900: #16241F;
  --cream-50: #FDFBF7; --cream-100: #F5F2EA; --cream-200: #EFE9DC; --cream-300: #E2DCD2;
  --terra-400: #D68F6B; --terra-500: #C87A54; --terra-600: #A9613F;
  --gold-400: #E0C05C; --gold-500: #D4AF37; --gold-600: #B8962B;
  --ink: #1F2927; --muted: #5C6865; --faint: #9aa5a2;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --arabic: "Amiri", serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-sm: 0 10px 30px rgba(62, 92, 80, .1);
  --shadow-md: 0 14px 50px rgba(62, 92, 80, .1);
  --shadow-lg: 0 16px 44px rgba(62, 92, 80, .14);
  --radius: 1.5rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream-50);
  -webkit-font-smoothing: antialiased; line-height: 1.6; font-size: 16px;
}
::selection { background: var(--sage-600); color: var(--cream-50); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--sage-700); color: var(--cream-50); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
.section { padding: 6rem 0; scroll-margin-top: 8rem; }
@media (min-width: 640px) { .section { padding: 8rem 0; } }
.bg-sage-50 { background: var(--sage-50); }
.bg-sage-800 { background: var(--sage-800); }
.bg-cream-100 { background: var(--cream-100); }
.pattern-geo { background-image: url("data:image/svg+xml,%3Csvg width='84' height='84' viewBox='0 0 84 84' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%233E5C50' stroke-opacity='0.09'%3E%3Cpath d='M42 8l9.5 24.5L76 42l-24.5 9.5L42 76l-9.5-24.5L8 42l24.5-9.5z'/%3E%3Ccircle cx='42' cy='42' r='11'/%3E%3C/g%3E%3C/svg%3E"); }
.pattern-geo-light { background-image: url("data:image/svg+xml,%3Csvg width='84' height='84' viewBox='0 0 84 84' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23FDFBF7' stroke-opacity='0.12'%3E%3Cpath d='M42 8l9.5 24.5L76 42l-24.5 9.5L42 76l-9.5-24.5L8 42l24.5-9.5z'/%3E%3Ccircle cx='42' cy='42' r='11'/%3E%3C/g%3E%3C/svg%3E"); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.25rem; }
.gap-xl { gap: 3rem; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .grid-4 > * {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .admission-eligibility-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .form-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
}
.mt-7 { margin-top: 1.75rem; } .mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; } .mt-14 { margin-top: 3.5rem; } .mt-16 { margin-top: 4rem; }
.center { text-align: center; }
.row-center { display: flex; align-items: center; gap: .75rem; }
.grow { flex: 1; }
.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; }

/* ---------- Typography ---------- */
.h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--sage-700); }
.strong { font-weight: 600; color: var(--ink); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; line-height: 1.6; }
.italic { font-style: italic; }
.sage { color: var(--sage-700); } .terra { color: var(--terra-500); } .gold { color: var(--gold-400); } .cream { color: var(--cream-50); }
.eyebrow { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--terra-500); margin-top: .25rem; }
.eyebrow.gold { color: var(--gold-400); }
.arabic { font-family: var(--arabic); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kicker { display: inline-flex; align-items: center; gap: .75rem; border: 1px solid rgba(62,92,80,.2); background: rgba(255,255,255,.7); backdrop-filter: blur(6px); border-radius: 999px; padding: .375rem 1rem; font-size: .69rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--sage-700); }
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }

.chapter { max-width: 48rem; }
.chapter-head { display: flex; align-items: baseline; gap: 1rem; }
.chapter-index { font-family: var(--serif); font-size: 3rem; line-height: 1; color: rgba(62,92,80,.15); }
.chapter-label { font-size: .75rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--terra-500); }
.chapter-title { margin-top: 1rem; font-family: var(--serif); font-size: 1.875rem; line-height: 1.12; font-weight: 700; color: var(--sage-700); }
.chapter-desc { margin-top: 1.25rem; color: var(--muted); line-height: 1.7; }
@media (min-width: 640px) { .chapter-index { font-size: 3.75rem; } .chapter-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .chapter-title { font-size: 3rem; } }
.chapter-dark .chapter-index { color: rgba(253,251,247,.2); }
.chapter-dark .chapter-label { color: var(--gold-400); }
.chapter-dark .chapter-title { color: var(--cream-50); }
.chapter-dark .chapter-desc { color: rgba(245,242,234,.8); }

/* ---------- Icons ---------- */
.ico { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.ico-sm { width: .9rem; height: .9rem; } .ico-md { width: 1.5rem; height: 1.5rem; } .ico-lg { width: 1.5rem; height: 1.5rem; } .ico-xl { width: 2.5rem; height: 2.5rem; }
.ico-terra { color: var(--terra-500); } .ico-terra-light { color: var(--terra-400); } .ico-gold { color: var(--gold-500); }
.icon-box { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: .875rem; background: var(--sage-100); color: var(--sage-600); flex-shrink: 0; transition: background-color .3s, color .3s, transform .3s; }
.icon-box-gold { width: 3rem; height: 3rem; border-radius: 1rem; background: rgba(212,175,55,.15); color: var(--gold-400); }
.icon-box-goldlight { background: rgba(212,175,55,.15); color: var(--gold-600); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; padding: .7rem 1.5rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; transition: background-color .3s, color .3s, box-shadow .3s, transform .3s; white-space: nowrap; }
.btn-sm { padding: .55rem 1.25rem; font-size: .78rem; letter-spacing: .03em; }
.btn-lg { padding: 1.05rem 2rem; font-size: .85rem; }
.btn-primary { background: var(--sage-600); color: var(--cream-50); box-shadow: 0 10px 24px rgba(62,92,80,.25); }
.btn-primary:hover { background: var(--sage-700); box-shadow: 0 14px 30px rgba(62,92,80,.3); transform: translateY(-1px); }
.btn-outline-terra { border: 2px solid var(--terra-500); color: var(--terra-600); background: rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn-outline-terra:hover { background: var(--terra-500); color: var(--cream-50); }
.btn-terra { background: var(--terra-500); color: var(--cream-50); }
.btn-terra:hover { background: var(--terra-600); transform: translateY(-1px); }
.btn-gold { background: var(--gold-500); color: var(--sage-900); border-radius: .6rem; padding: .7rem 1.25rem; }
.btn-gold:hover { background: var(--gold-400); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn .ico-shift { transition: transform .3s; } .btn:hover .ico-shift { transform: translateX(4px); }
.ico-diag { transition: transform .3s; }
a:hover .ico-diag, button:hover .ico-diag { transform: translate(2px, -2px); }
.text-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--terra-600); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; color: var(--sage-700); transition: background-color .2s; }
.icon-btn:hover { background: var(--cream-200); }

/* ---------- Header ---------- */
.site-header { position: relative; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--cream-300); box-shadow: 0 1px 12px rgba(31,41,39,.06); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(31,41,39,.1); }
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-top: .05rem;
    padding-bottom: .05rem;
}
.logo-mark {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
}

.logo-lg {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
    transform: scale(1.18);
}
.brand-text { line-height: 1.2; }
.brand-logo {
    width: 140px !important;
    height: auto !important;
    max-width: none !important;
    object-fit: contain;
    display: block;
}
.brand-name { display: block; font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--sage-700); }
.brand-tag { display: block; font-size: .6rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--terra-500); }
@media (min-width: 640px) { .brand-name { font-size: 1.05rem; } }
.header-actions { display: none; align-items: center; gap: .75rem; }
.header-phone { display: none; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 500; color: var(--sage-700); margin-right: .25rem; }
.menu-btn { display: inline-flex; padding: .5rem; border-radius: .5rem; color: var(--sage-700); }
.primary-nav { display: none; border-top: 1px solid var(--cream-200); }
.primary-nav-inner { display: flex; justify-content: center; gap: 1.75rem; padding-top: .05rem; padding-bottom: .05rem; }
.nav-link { position: relative; font-size: .78rem; font-weight: 600; letter-spacing: .12em; color: var(--sage-700); transition: color .3s; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%; background: var(--terra-500); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-link:hover, .nav-link.is-active { color: var(--terra-600); }
.nav-link:hover::after, .nav-link:focus-visible::after, .nav-link.is-active::after { transform: scaleX(1); }
@media (min-width: 1024px) { .header-actions { display: flex; } .menu-btn { display: none; } .primary-nav { display: block; } }
@media (min-width: 1280px) { .header-phone { display: flex; } }

/* Drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(22,36,31,.5); z-index: 60; opacity: 0; transition: opacity .3s; }
.drawer-backdrop.is-open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 320px; max-width: 88vw; background: var(--cream-50); z-index: 70; transform: translateX(100%); transition: transform .45s var(--ease); overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.15); }
.drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem; border-bottom: 1px solid var(--cream-300); }
.drawer-nav { display: flex; flex-direction: column; padding: 1.25rem; }
.drawer-link { padding: .75rem 0; border-bottom: 1px solid var(--cream-200); font-size: .875rem; font-weight: 600; letter-spacing: .08em; color: var(--sage-700); transition: color .3s; }
.drawer-link:hover, .drawer-link.is-active { color: var(--terra-500); }
.drawer-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.drawer-phone { margin-top: .5rem; text-align: center; font-size: .75rem; color: var(--muted); }
body.drawer-locked { overflow: hidden; }

/* ---------- Motion primitives ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .85s var(--ease), transform .85s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.mask { display: block; overflow: hidden; }
.mask > span { display: block; transform: translateY(112%); animation: rise 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.bounce { animation: bounce 1.8s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mask > span, .fade-up { animation: none; opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 92vh; overflow: hidden; }
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(253,251,247,.55) 0%,
        rgba(253,251,247,.25) 50%,
        rgba(253,251,247,.08) 100%
    );
}

@media (min-width: 1024px) {
    .hero-overlay {
        background: linear-gradient(
            to right,
            rgba(253,251,247,.55) 0%,
            rgba(253,251,247,.25) 50%,
            rgba(253,251,247,.08) 100%
        );
    }
}
.hero-body { position: relative; padding-top: 6rem; padding-bottom: 6rem; }
.hero-body > * { max-width: 48rem; }
.hero-title {
    margin-top: 1.5rem;
    font-family: var(--serif);
    font-size: 2.5rem;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
    text-shadow: 0 2px 4px rgba(255,255,255,.55);
}
.hero-title .terra { color: var(--terra-500); font-style: normal; }
.hero-title .sage-italic { color: var(--sage-600); font-style: italic; }
@media (min-width: 640px) { .hero-title { font-size: 3.25rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4rem; } }
@media (min-width: 1280px) { .hero-title { font-size: 4.75rem; } }
.hero-title {
    margin-top: 1.5rem;
    font-family: var(--serif);
    font-size: 2.5rem;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
    text-shadow: 0 2px 4px rgba(255,255,255,.55);
}
.hero-sub { margin-top: 1.75rem; max-width: 32rem; color: #1f2937; font-size: 1rem; line-height: 1.7; font-weight: 500; text-shadow: 0 1px 2px rgba(255,255,255,.25); }
@media (min-width: 640px) { .hero-sub { font-size: 1.125rem; } }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2.5rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 3rem; }
.hero-stat-v { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--sage-700); }
.hero-stat-l { font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero-cue { position: absolute; bottom: 1.5rem; left: 50%; margin-left: -.75rem; color: var(--sage-600); display: none; }
@media (min-width: 640px) { .hero-cue { display: block; } }

/* Marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--cream-300); border-bottom: 1px solid var(--cream-300); background: var(--cream-100); padding: 1rem 0; }
.marquee-track { display: flex; width: max-content; gap: 2.5rem; animation: drift 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--serif); font-size: 1.125rem; font-style: italic; color: var(--sage-700); white-space: nowrap; }
.marquee-dot { color: var(--gold-500); font-size: .75rem; align-self: center; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Page hero (sub pages) */
.page-hero { position: relative; overflow: hidden; min-height: 52vh; display: flex; align-items: flex-end; background: var(--sage-900); }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--sage-900) 10%, rgba(22,36,31,.55) 60%, rgba(22,36,31,.2)); }
.page-hero-body { position: relative; padding-top: 7rem; padding-bottom: 4rem; }
.page-hero .kicker { background: rgba(253,251,247,.1); border-color: rgba(253,251,247,.25); color: var(--cream-50); }
.page-hero-title { margin-top: 1.25rem; font-family: var(--serif); font-size: 2.5rem; line-height: 1.08; font-weight: 700; color: var(--cream-50); max-width: 50rem; }
@media (min-width: 640px) { .page-hero-title { font-size: 3.25rem; } }
@media (min-width: 1024px) { .page-hero-title { font-size: 4rem; } }
.page-hero-desc { margin-top: 1.25rem; max-width: 38rem; color: rgba(245,242,234,.85); font-size: 1.05rem; line-height: 1.7; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--cream-300); border-radius: var(--radius); }
.card-hover { transition: transform .3s, box-shadow .3s, border-color .3s; }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--sage-300); }
.card-title { font-family: var(--serif); font-size: 1.125rem; font-weight: 700; color: var(--sage-700); }
.tile { border-radius: var(--radius); padding: 1.75rem; transition: transform .3s; }
.tile:hover { transform: translateY(-4px); }
.tile p:last-child { margin-top: .75rem; font-size: .95rem; line-height: 1.7; color: var(--sage-800); }
.tile-sage { background: var(--sage-100); } .tile-cream { background: var(--cream-100); }
.glass-card { height: 100%; border-radius: var(--radius); border: 1px solid rgba(253,251,247,.1); background: rgba(253,251,247,.04); backdrop-filter: blur(6px); padding: 1.75rem; transition: transform .3s, border-color .3s, background-color .3s; }
.glass-card:hover { transform: translateY(-6px); border-color: rgba(212,175,55,.4); background: rgba(253,251,247,.08); }
.glass-card:hover .icon-box { transform: scale(1.1); }
.glass-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.ghost-num { font-family: var(--serif); font-size: 2.25rem; color: rgba(253,251,247,.1); }
.glass-title { margin-top: 1.25rem; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--cream-50); }
.glass-desc { margin-top: .6rem; font-size: .875rem; line-height: 1.7; color: rgba(245,242,234,.75); }

/* About */
.about-grid { display: grid; gap: 3rem; margin-top: 4rem; align-items: start; }
@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 7fr 5fr;
        align-items: stretch;
    }

    .about-visual {
        height: 100%;
        padding: 0;
    }

    .about-visual .framed {
        height: 100%;
    }

    .about-visual .framed > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
.about-main { display: grid; gap: 2.5rem; }
.quote-card { position: relative; background: #fff; border: 1px solid var(--cream-300); border-radius: var(--radius); padding: 2rem; box-shadow: 0 10px 40px rgba(62,92,80,.07); }
@media (min-width: 640px) { .quote-card { padding: 2.5rem; } }
.quote-badge { position: absolute; top: -1.25rem; left: 2rem; display: inline-flex; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--gold-500); color: var(--cream-50); align-items: center; justify-content: center; }
.quote-text {
    font-family: var(--serif);
    font-size: 1.18rem;
    line-height: 1.8;
    font-weight: 400;
    font-style: normal;
    color: var(--sage-700);
    text-align: left;
    max-width: 100%;
}
@media (min-width: 640px) { .quote-text { font-size: 1.5rem; } }
.quote-author { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.quote-author img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; border: 2px solid rgba(212,175,55,.6); }
.about-visual { padding: .75rem .75rem 2rem 1.25rem; }
.framed { position: relative; }
.framed::before { content: ""; position: absolute; inset: 0; border: 1px solid rgba(212,175,55,.4); border-radius: 2rem; }
.framed > img {
    position: relative;
    width: 100%;
   height: 100%;
object-fit: fill;
}
.since-badge { position: absolute; bottom: -1.5rem; left: -1rem; background: var(--sage-700); color: var(--cream-50); border-radius: 1rem; padding: 1rem 1.5rem; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
@media (min-width: 640px) { .since-badge { left: -2rem; } }
.since-year { font-family: var(--serif); font-size: 1.875rem; font-weight: 700; color: var(--gold-400); }
.since-label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }

/* Education */
.ayah { margin-top: 2.5rem; }
.ayah-text { font-size: 1.75rem; line-height: 2; color: var(--sage-700); }
@media (min-width: 640px) { .ayah-text { font-size: 2rem; } }
.edu-grid { margin-top: 3.5rem; }
.edu-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.edu-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 640px) {
  .edu-list {
 grid-template-columns: 1fr !important;
  }
}
.edu-item { display: flex; gap: 1rem; background: #fff; border: 1px solid transparent; border-radius: 1rem; padding: 1rem; transition: transform .3s, border-color .3s, box-shadow .3s; }
.edu-item:hover { transform: translateY(-2px); border-color: var(--sage-200); box-shadow: 0 8px 28px rgba(62,92,80,.1); }
.edu-item:hover .edu-icon { transform: scale(1.1); }
.edu-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: .75rem; flex-shrink: 0; margin-top: .125rem; transition: transform .3s; }
.edu-icon-sage { background: var(--sage-100); color: var(--sage-600); }
.edu-icon-cream { background: var(--cream-200); color: var(--terra-500); }
 
/* =========================
   PROGRAMS
   ========================= */

.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 3.5rem;
    align-items: stretch;
}


/* Featured card */

.program-featured {
    grid-column: span 2;
    grid-row: span 2;

    position: relative;
    min-height: 0;
    height: auto;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 2rem;

    border-radius: var(--radius);

    background-size: cover;
   background-position: 65% center;

    overflow: hidden;
}


/* Featured image overlay */

.program-featured::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(20, 45, 36, 0.88),
            rgba(20, 45, 36, 0.12)
        );

    z-index: 0;
}


/* Featured content */

.program-featured-overlay {
    position: relative;
    z-index: 2;
}


/* Featured small text */

.program-featured .eyebrow_gold {
    color: #C87A54 !important;
}


/* Featured title */

.program-featured-title {
    margin-top: .5rem;

    font-family: var(--serif);
    font-size: 1.875rem;
    line-height: 1.2;

    color: #ffffff;
}


/* Featured description */

.program-featured-desc {
    margin-top: .75rem;

    color: #C87A54 !important;

    line-height: 1.6;
}


/* Normal cards */

.program-card {
    min-width: 0;
    height: auto;
    min-height: 220px;

    display: flex;
    flex-direction: column;

    padding: 1.5rem;

    overflow: hidden;
}


/* Card title */

.program-card .card-title {
    margin-top: 1rem;
}


/* Card subtitle */

.program-card .eyebrow {
    margin-top: .5rem;

    color: #1F4D3B !important;
}


/* Card description */

.program-card .small {
    margin-top: .6rem;

    color: #1F4D3B !important;

    line-height: 1.6;

    overflow: visible;
}


/* Icon */

.program-card .icon-box {
    flex-shrink: 0;
}


/* Hover */

.program-card:hover .icon-box {
    background: var(--sage-600);
    color: var(--cream-50);
}
/* =========================
   PROGRAMS DESKTOP FINAL
========================= */

@media (min-width: 1024px) {

    .programs-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
        align-items: stretch;
    }

    .program-featured {
        grid-column: span 2;
        grid-row: span 2;
        height: 100%;
    }

    .program-card {
        min-width: 0;
        min-height: 220px;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 1023px) and (min-width: 640px) {

    .programs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .program-featured {
        grid-column: span 2;
        grid-row: auto;
    }

}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 639px) {

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .program-featured {
        grid-column: auto;
        grid-row: auto;
    }

    .program-card {
        min-height: auto;
    }

}
/* Student life */
.timeline { margin-top: 3rem; }
.timeline-item { position: relative; display: flex; gap: 1.5rem; padding-bottom: 2.25rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; top: 2.25rem; left: 26px; width: 1px; height: calc(100% - 2rem); background: var(--sage-200); }
.timeline-time { z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--sage-200); background: #fff; font-family: var(--serif); font-size: .8rem; font-weight: 700; color: var(--sage-700); box-shadow: 0 1px 3px rgba(0,0,0,.06); flex-shrink: 0; }
.timeline-item > div { padding-top: .375rem; }
.visual { position: relative; }
.visual-img { width: 100%; border-radius: 2rem; object-fit: cover; box-shadow: 0 20px 50px rgba(31,41,39,.15); }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.badge-gold { position: absolute; bottom: -1.25rem; right: 1.5rem; background: var(--gold-500); color: var(--sage-900); border-radius: 1rem; padding: .75rem 1.25rem; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.clubs-card { margin-top: 3rem; padding: 1.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.25rem; }
.chip { border: 1px solid var(--sage-200); background: var(--sage-50); border-radius: 999px; padding: .375rem 1rem; font-size: .75rem; font-weight: 600; color: var(--sage-700); transition: background-color .3s, color .3s, border-color .3s; cursor: default; }
.chip:hover { background: var(--terra-500); border-color: var(--terra-500); color: var(--cream-50); }

/* Teachers */
.teacher-card { overflow: hidden; }
.teacher-photo { position: relative; overflow: hidden; }
.teacher-photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; transition: transform .7s; }
.teacher-card:hover .teacher-photo img { transform: scale(1.05); }
.teacher-qual { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(40,64,55,.95); color: var(--cream-100); padding: 1rem; font-size: .75rem; line-height: 1.6; transform: translateY(100%); transition: transform .4s ease-out; }
.teacher-card:hover .teacher-qual { transform: translateY(0); }
.teacher-body { padding: 1.25rem; }
/* Only Hafiz Sheikh Imran photo */
.teacher-photo img[src*="Hafiz%20Sheikh%20Imran.jpeg"] {
    object-position: center top;
}
/* Only Hafiz Muhammad Ahmad photo */
.teacher-photo img[src*="Hafiz%20Muhammad%20Ahmad.jpeg"] {
    object-position: center top;
}
/* Campus */
.facility-card { overflow: hidden; }
.facility-photo { position: relative; overflow: hidden; }
.facility-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .7s; }
.facility-card:hover .facility-photo img { transform: scale(1.05); }
.facility-icon { position: absolute; bottom: .75rem; left: .75rem; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: rgba(253,251,247,.95); color: var(--sage-700); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.facility-body { padding: 1.5rem; }
.facility-body .small { margin-top: .5rem; }

/* Achievements */
.stats-grid { display: grid; gap: 2.5rem; margin-top: 3.5rem; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { border-left: 2px solid rgba(212,175,55,.6); padding-left: 1.5rem; }
.stat-value { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--sage-700); line-height: 1; }
@media (min-width: 640px) { .stat-value { font-size: 3.75rem; } }
.stat-label { margin-top: .5rem; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.award { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--cream-300); border-radius: 1rem; padding: 1.25rem; transition: transform .3s, border-color .3s, box-shadow .3s; }
.award:hover { transform: translateY(-2px); border-color: rgba(212,175,55,.5); box-shadow: 0 10px 30px rgba(212,175,55,.15); }
.award-year { font-family: var(--serif); font-size: 1.125rem; font-weight: 700; color: var(--sage-300); }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-btn { border: 1px solid var(--cream-300); background: #fff; border-radius: 999px; padding: .375rem 1rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-700); transition: background-color .3s, color .3s, border-color .3s; }
.filter-btn:hover { border-color: var(--sage-400); }
.filter-btn.is-active { background: var(--sage-600); border-color: var(--sage-600); color: var(--cream-50); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; gap: 1rem; margin-top: 3rem; }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { position: relative; overflow: hidden; border-radius: 1rem; aspect-ratio: 1; padding: 0; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery-item.tall { grid-row: span 2; aspect-ratio: 3 / 4.2; }
@media (min-width: 1024px) { .gallery-item.tall { aspect-ratio: auto; } }
.gallery-item.is-hidden { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: rgba(22,36,31,0); transition: background-color .3s; }
.gallery-item:hover::after { background: rgba(22,36,31,.25); }
.gallery-cat { position: absolute; bottom: .75rem; left: .75rem; z-index: 1; background: rgba(253,251,247,.9); border-radius: 999px; padding: .25rem .75rem; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-700); opacity: 0; transition: opacity .3s; }
.gallery-item:hover .gallery-cat { opacity: 1; }
.gallery-item:focus-visible { outline: 2px solid var(--sage-600); outline-offset: 2px; }

/* Forms */
.form-layout { display: grid; gap: 3rem; margin-top: 3.5rem; }
@media (min-width: 1024px) { .form-layout { grid-template-columns: 5fr 7fr; } }
.steps { display: grid; gap: 1.5rem; align-content: start; }
.step { display: flex; gap: 1.25rem; padding: 1.25rem; }
.step-num { font-family: var(--serif); font-size: 1.875rem; font-weight: 700; color: var(--gold-500); line-height: 1; }
.form-card { background: #fff; border: 1px solid var(--cream-300); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-md); }
@media (min-width: 640px) { .form-card { padding: 2.25rem; } }
.form-card-cream { background: var(--cream-50); box-shadow: 0 25px 60px rgba(0,0,0,.25); }
.form-card > .small { margin-top: .25rem; }
.form-grid { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } .span-2 { grid-column: span 2; } }
.field { display: grid; gap: .5rem; }
.field label { font-size: .875rem; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--cream-300); background: var(--cream-50); border-radius: .6rem; padding: .7rem .9rem; font: inherit; font-size: .9rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.form-card-cream .field input, .form-card-cream .field select, .form-card-cream .field textarea { background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage-600); box-shadow: 0 0 0 3px rgba(62,92,80,.15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0392b; }
.field .field-error { font-size: .75rem; color: #c0392b; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C6865' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; }
.field select:invalid { color: var(--faint); }
.field textarea { resize: vertical; min-height: 5rem; }
.amount-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.amount-chip { border: 1px solid var(--cream-300); background: #fff; border-radius: 999px; padding: .5rem 1.25rem; font-size: .875rem; font-weight: 700; color: var(--sage-700); transition: background-color .3s, color .3s, border-color .3s; }
.amount-chip:hover { border-color: var(--terra-500); }
.amount-chip.is-active { background: var(--terra-500); border-color: var(--terra-500); color: var(--cream-50); }
@media (min-width: 640px) { .form-card .btn-lg { width: auto; padding-left: 2.5rem; padding-right: 2.5rem; } }
@media (max-width: 639px) { .form-card .btn-lg { width: 100%; } }

/* Contact */
.contact-info { display: grid; gap: 1rem; align-content: start; }
.info-card { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem; }
.info-card .eyebrow { margin: 0; }
.info-card .strong { margin-top: .25rem; font-size: .95rem; }
.map-card { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--cream-300); }
.map-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.map-card p { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1.25rem; background: linear-gradient(to top, rgba(22,36,31,.7), transparent); color: var(--cream-50); font-size: .875rem; font-weight: 600; }

/* News */
.news-grid { display: grid; gap: 1.25rem; margin-top: 3.5rem; }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
.news-lead { display: flex; flex-direction: column; justify-content: space-between; height: 100%; width: 100%; text-align: left; background: var(--sage-700); border-radius: var(--radius); padding: 2rem; transition: transform .3s; }
@media (min-width: 640px) { .news-lead { padding: 2.5rem; } }
.news-lead:hover { transform: translateY(-6px); }
.news-meta { display: flex; align-items: center; gap: .75rem; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.news-meta.small { font-size: .68rem; }
.pill { border-radius: 999px; padding: .25rem .75rem; }
.pill-gold { background: var(--gold-500); color: var(--sage-900); }
.news-date { display: inline-flex; align-items: center; gap: .375rem; color: rgba(245,242,234,.7); }
.news-lead-title { margin-top: 1.25rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; font-weight: 700; color: var(--cream-50); }
@media (min-width: 640px) { .news-lead-title { font-size: 1.875rem; } }
.news-lead-excerpt { margin-top: 1rem; max-width: 28rem; font-size: .875rem; line-height: 1.7; color: rgba(245,242,234,.8); }
.news-read { display: inline-flex; align-items: center; gap: .5rem; margin-top: 2rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-400); }
.news-list { display: flex; flex-direction: column; gap: 1.25rem; }
.news-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; width: 100%; text-align: left; padding: 1.5rem; }
.news-item-title { margin-top: .5rem; font-family: var(--serif); font-size: 1.125rem; line-height: 1.3; font-weight: 700; color: var(--sage-700); transition: color .3s; }
.news-item:hover .news-item-title { color: var(--terra-600); }
.news-item .small.clamp-2 { margin-top: .375rem; }
.news-arrow { margin-top: .25rem; width: 1.25rem; height: 1.25rem; color: var(--sage-300); transition: color .3s, transform .3s; }
.news-item:hover .news-arrow { color: var(--terra-500); }

/* Testimonials */
.testi-grid { display: grid; gap: 1.25rem; margin-top: 3.5rem; }
@media (min-width: 1024px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } .testi-featured { grid-row: span 2; } }
.testi-featured { display: flex; flex-direction: column; justify-content: space-between; background: var(--sage-700); border-radius: var(--radius); padding: 2rem; }
@media (min-width: 640px) { .testi-featured { padding: 2.5rem; } }
.testi-featured-quote { margin-top: 1.5rem; font-family: var(--serif); font-size: 1.25rem; line-height: 1.6; font-style: italic; color: var(--cream-50); }
@media (min-width: 640px) { .testi-featured-quote { font-size: 1.5rem; } }
.testi-featured figcaption { margin-top: 2rem; }
.testi-card { padding: 1.75rem; height: 100%; }
.testi-quote { margin-top: 1rem; font-size: .95rem; line-height: 1.7; color: #45524e; }
.testi-caption { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--cream-200); }
.testi-caption .eyebrow { font-size: .68rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sage-900); color: var(--cream-100); padding: 4rem 0; }
@media (min-width: 640px) { .site-footer { padding: 5rem 0; } }
.footer-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 4fr 3fr 2fr 3fr; } }
.footer-brand-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--cream-50); }
.footer-brand-tag { font-size: .69rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-400); }
.footer-arabic { margin-top: 1.5rem; font-size: 1.5rem; line-height: 2; color: var(--gold-400); }
.footer-hadith { margin-top: .5rem; font-size: .875rem; font-style: italic; color: rgba(245,242,234,.7); }
.newsletter-form { margin-top: 2rem; }
.footer-label, .footer-heading { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(245,242,234,.8); }
.footer-heading { color: var(--gold-400); }
.newsletter-row { display: flex; gap: .5rem; margin-top: .75rem; }
.newsletter-row input { flex: 1; min-width: 0; border: 1px solid rgba(253,251,247,.2); background: rgba(253,251,247,.1); border-radius: .6rem; padding: .7rem .9rem; color: var(--cream-50); font: inherit; font-size: .9rem; }
.newsletter-row input::placeholder { color: rgba(245,242,234,.4); }
.newsletter-row input:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(212,175,55,.2); }
.footer-list { display: grid; gap: .625rem; margin-top: 1.25rem; }
.footer-list a { font-size: .875rem; color: rgba(245,242,234,.75); transition: color .3s; }
.footer-list a:hover { color: var(--gold-400); }
.footer-contact { display: grid; gap: 1rem; margin-top: 1.25rem; font-size: .875rem; color: rgba(245,242,234,.75); }
.footer-contact li { display: flex; gap: .75rem; }
.footer-contact .ico { color: var(--gold-400); margin-top: .15rem; }
.footer-contact a:hover { color: var(--gold-400); }
.footer-hours { margin-top: 1.25rem; font-size: .75rem; color: rgba(245,242,234,.5); }
.footer-bottom { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(253,251,247,.1); font-size: .75rem; color: rgba(245,242,234,.5); }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom a:hover { color: var(--gold-400); }

/* ---------- Toasts ---------- */
.toast-wrap { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; display: flex; flex-direction: column; gap: .75rem; max-width: 24rem; width: calc(100% - 2rem); }
.toast { background: #fff; border: 1px solid var(--cream-300); border-left: 4px solid var(--sage-600); border-radius: 1rem; padding: 1rem 1.25rem; box-shadow: 0 16px 40px rgba(31,41,39,.18); transform: translateY(20px); opacity: 0; transition: transform .4s var(--ease), opacity .4s; }
.toast.in { transform: none; opacity: 1; }
.toast.error { border-left-color: #c0392b; }
.toast-title { font-weight: 700; font-size: .9rem; color: var(--ink); }
.toast-desc { margin-top: .25rem; font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal[hidden], .drawer-backdrop[hidden] { display: none !important; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(22,36,31,.7); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.modal.in .modal-backdrop { opacity: 1; }
.modal-box { position: relative; background: var(--cream-50); border: 1px solid var(--cream-300); border-radius: 1.25rem; width: 100%; max-width: 42rem; max-height: 90vh; overflow: auto; padding: 1.75rem; box-shadow: 0 30px 80px rgba(0,0,0,.35); transform: translateY(16px) scale(.97); opacity: 0; transition: transform .35s var(--ease), opacity .35s; }
.modal.in .modal-box { transform: none; opacity: 1; }
.modal-box.is-photo { max-width: 60rem; padding: .5rem; }
.modal-close { position: absolute; top: .75rem; right: .75rem; z-index: 2; background: rgba(253,251,247,.9); }
.modal-photo { width: 100%; max-height: 75vh; object-fit: contain; border-radius: .75rem; }
.modal-caption { padding: .75rem; font-size: .875rem; color: var(--muted); }
.modal-title { margin-top: .75rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; font-weight: 700; color: var(--sage-700); }
.modal-body { margin-top: 1rem; font-size: .95rem; line-height: 1.75; color: #45524e; }
.pill-sage { background: var(--sage-100); color: var(--sage-700); }
body.modal-open { overflow: hidden; }

/* 404 */
.not-found .chapter-index { font-size: 6rem; }
.not-found .chapter-title, .not-found .chapter-desc { margin-left: auto; margin-right: auto; }
/* ===== Dark Islamic Green Header ===== */

.site-header {
    background: #123B2A !important;
    color: #FFFFFF;
}

/* Header کے اندر تمام عام Text */
.site-header,
.site-header p,
.site-header span {
    color: #FFFFFF;
}

/* Navigation Links */
.site-header nav a,
.site-header .nav a,
.site-header .menu a {
    color: #FFFFFF !important;
    transition: color .25s ease, background-color .25s ease;
}

/* Navigation Hover */
.site-header nav a:hover,
.site-header .nav a:hover,
.site-header .menu a:hover {
    color: #D4AF37 !important;
}

/* Active Menu */
.site-header nav a.active,
.site-header .nav a.active,
.site-header .menu a.active {
    color: #D4AF37 !important;
}

/* Donate / Apply جیسے Buttons کو برقرار رکھنے کے لیے */
.site-header button {
    color: inherit;
}

/* Header Bottom Border */
.site-header {
    border-bottom: 1px solid #D4AF37;
}/* =========================================================
   FINAL ISLAMIC HEADER DESIGN
   Dark Green + Cream White + Gold
   ========================================================= */

/* ---------- Main Header ---------- */

.site-header {
    background: #0E3526 !important;
    color: #F7F3E8 !important;
    border-bottom: 1px solid #D4AF37 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.20) !important;
    backdrop-filter: blur(12px);
}


/* ---------- Header Top Area ---------- */

.site-header .header-top {
    background: #0E3526 !important;
    color: #F7F3E8 !important;
}


/* ---------- Header Text ---------- */

.site-header p,
.site-header span,
.site-header div {
    color: #F7F3E8;
}


/* ---------- Navigation ---------- */

.site-header nav,
.site-header .nav,
.site-header .main-nav {
    background: #09291E !important;
}


/* ---------- Navigation Links ---------- */

.site-header nav a,
.site-header .nav a,
.site-header .main-nav a {
    color: #F7F3E8 !important;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}


/* ---------- Navigation Hover ---------- */

.site-header nav a:hover,
.site-header .nav a:hover,
.site-header .main-nav a:hover {
    color: #D4AF37 !important;
}


/* ---------- Active Menu ---------- */

.site-header nav a.active,
.site-header .nav a.active,
.site-header .main-nav a.active,
.site-header nav a[aria-current="page"] {
    color: #D4AF37 !important;
}


/* ---------- Subtle Gold Line ---------- */

.site-header::after {
    content: "";
    display: block;
    height: 2px;
    width: 100%;
    background: #D4AF37;
    opacity: 0.85;
}


/* ---------- Phone / Contact Area ---------- */

.site-header a[href^="tel"] {
    color: #F7F3E8 !important;
}

.site-header a[href^="tel"]:hover {
    color: #D4AF37 !important;
}


/* ---------- Apply Now Button ---------- */

.site-header .btn-primary,
.site-header .btn-apply,
.site-header a[class*="apply"] {
    background: #D4AF37 !important;
    color: #09291E !important;
    border: 1px solid #D4AF37 !important;
    font-weight: 700;
    transition: all 0.25s ease;
}


/* Apply Now Hover */

.site-header .btn-primary:hover,
.site-header .btn-apply:hover,
.site-header a[class*="apply"]:hover {
    background: #F0D477 !important;
    color: #09291E !important;
    transform: translateY(-1px);
}


/* ---------- Donate Button ---------- */

.site-header .btn-outline,
.site-header .btn-donate,
.site-header a[class*="donate"] {
    background: transparent !important;
    color: #F7F3E8 !important;
    border: 1px solid #D4AF37 !important;
    transition: all 0.25s ease;
}


/* Donate Hover */

.site-header .btn-outline:hover,
.site-header .btn-donate:hover,
.site-header a[class*="donate"]:hover {
    background: #D4AF37 !important;
    color: #09291E !important;
}


/* ---------- Header Icons ---------- */

.site-header svg,
.site-header i {
    color: #D4AF37;
}


/* ---------- Logo Area ---------- */

.site-header .logo,
.site-header .logo-text {
    color: #F7F3E8;
}


/* ---------- Mobile Menu ---------- */

@media (max-width: 768px) {

    .site-header {
        background: #0E3526 !important;
    }

    .site-header nav,
    .site-header .nav,
    .site-header .main-nav {
        background: #09291E !important;
    }

    .site-header nav a,
    .site-header .nav a,
    .site-header .main-nav a {
        color: #F7F3E8 !important;
    }

    .site-header nav a:hover,
    .site-header .nav a:hover,
    .site-header .main-nav a:hover {
        color: #D4AF37 !important;
    }
}
/* ===== Student Life Timeline - Final Circle Fix ===== */
@media (min-width: 1024px) {

  .timeline-time {
    width: 64px;
    height: 64px;
    min-width: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    padding: 3px;

    text-align: center;
    white-space: normal;
    overflow: hidden;

    font-size: 11px;
    line-height: 1.05;

    flex-shrink: 0;
  }

  .timeline-item:not(:last-child)::before {
    left: 32px;
  }
}
/* =========================================================
   TEACHER PROFILE POPUP
   ========================================================= */

.teacher-modal-profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.teacher-modal-photo-wrap {
  width: 220px;
}

.teacher-modal-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1rem;
  display: block;
  border: 1px solid var(--cream-300);
}

.teacher-modal-info {
  min-width: 0;
}

.teacher-modal-info .modal-title {
  margin-top: .35rem;
  padding-right: 2rem;
}

.teacher-modal-qual {
  margin-top: .75rem;
  padding: .65rem .8rem;
  border-left: 4px solid var(--sage-500);
  background: var(--sage-50);
  color: var(--sage-700);
  border-radius: .4rem;
  font-size: .9rem;
  line-height: 1.5;
  font-weight: 600;
}

.teacher-modal-bio {
  margin-top: 1rem;
  white-space: normal;
}

/* Teacher cards are clickable */
.teacher-card[data-teacher] {
  cursor: pointer;
}

.teacher-card[data-teacher]:focus-visible {
  outline: 3px solid var(--sage-500);
  outline-offset: 4px;
}

/* Mobile */
@media (max-width: 700px) {
  .teacher-modal-profile {
    grid-template-columns: 1fr;
  }

  .teacher-modal-photo-wrap {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }

  .teacher-modal-info {
    text-align: left;
  }
}
/* =========================================================
   SECTION 10 — ADMISSIONS
   FINAL DESKTOP HEADER DESIGN
   ========================================================= */

@media (min-width: 1024px) {

  /* ---------- Admission Intro ---------- */

  #apply .chapter {
    max-width: 58rem;
    position: relative;
    padding-bottom: 1.75rem;
  }

  #apply .chapter-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: .5rem;
  }

  #apply .chapter-index {
    font-size: 3.5rem;
    line-height: 1;
    color: rgba(40,64,55,.12);
  }

  #apply .chapter-label {
    display: inline-flex;
    align-items: center;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: rgba(212,175,55,.12);
    border: 1px solid rgba(212,175,55,.35);
    color: var(--sage-700);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .22em;
  }

  #apply .chapter-title {
    margin-top: .75rem;
    font-size: 3.2rem;
    line-height: 1.08;
    letter-spacing: -.025em;
    color: var(--sage-800);
  }

  #apply .chapter-desc {
    max-width: 52rem;
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--muted);
  }

  /* Decorative line below Admission introduction */

  #apply .chapter::after {
    content: "";
    display: block;
    width: 5rem;
    height: 3px;
    margin-top: 1.5rem;
    border-radius: 999px;
    background: linear-gradient(
      to right,
      var(--gold-500),
      var(--sage-500)
    );
  }

  /* ---------- WHO CAN APPLY ---------- */

  #apply .chapter + .eyebrow {
    display: inline-flex;
    align-items: center;
    margin-top: 1.25rem;
    margin-bottom: .5rem;
    padding-left: .75rem;
    border-left: 3px solid var(--gold-500);
    color: var(--terra-600);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .22em;
  }

/* =========================================================
   ADMISSION ELIGIBILITY — FINAL SPACING & DESIGN
   ========================================================= */

/* Space between Admissions heading and Who Can Apply */
#apply > .container > .chapter {
    margin-bottom: 2.5rem;
}

/* Who Can Apply / Admission Eligibility block */
#apply > .container > .section-head {
    margin-bottom: 1.25rem;
}

/* Who Can Apply label */
#apply > .container > .section-head .eyebrow {
    display: block;
    margin-bottom: .45rem;
}

/* Admission Eligibility heading */
#apply > .container > .section-head .h2 {
    margin-top: 0;
    margin-bottom: .55rem;
    line-height: 1.2;
}

/* Eligibility description */
#apply > .container > .section-head .muted {
    margin-top: 0;
    line-height: 1.7;
    max-width: 68rem;
}

/* Space between description and four cards */
#apply > .container > .section-head + .grid-4 {
    margin-top: 1.5rem;
}

/* Four eligibility cards */
#apply > .container > .grid-4 {
    margin-bottom: 1.75rem;
}

/* Educational Programme card */
#apply > .container > .grid-4 + .card {
    margin-top: 0;
}

  /* ---------- Admission Eligibility Cards ---------- */

  #apply .grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
  }

  #apply .grid-4 > .card,
  #apply .grid-4 > article {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    padding: 1.25rem;
    overflow: hidden;
  }

  #apply .grid-4 .card-title {
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.3;
  }

  #apply .grid-4 .small {
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.65;
    margin: 0;
  }

  #apply .grid-4 .step-num {
    display: block;
    margin-bottom: .65rem;
  }

  /* ---------- Integrated Education ---------- */

  #apply > .container > .card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  #apply > .container > .card p {
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.7;
  }

  /* ---------- Fee Cards ---------- */

  #apply .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  #apply .grid-2 > .card,
  #apply .grid-2 > article {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  #apply .fee-row {
    min-width: 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
  }

  #apply .fee-row span,
  #apply .fee-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  /* ---------- Rules ---------- */

  #apply .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
  }

  #apply .grid-3 > .card,
  #apply .grid-3 > article {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 1.25rem;
    overflow: hidden;
  }

  #apply .grid-3 li {
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.6;
  }
  
}
/* =========================================================
   SECTION 10 — FEE STRUCTURE
   FINAL DESKTOP FIX
   ========================================================= */

@media (min-width: 1024px) {

    /* Fee heading */
    #apply .section-head.mt-7 {
        margin-bottom: 1.5rem;
    }

    #apply .section-head.mt-7 .h2 {
        margin-top: 0;
        margin-bottom: .6rem;
        line-height: 1.25;
    }

    #apply .section-head.mt-7 .muted {
        margin-top: 0;
        line-height: 1.65;
    }


    /* Two fee cards */
    #apply .section-head.mt-7 + .grid-2 {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1.5rem;
        align-items: stretch;
        width: 100%;
        box-sizing: border-box;
    }


    /* Individual fee card */
    #apply .section-head.mt-7 + .grid-2 > .card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: auto;
        min-height: 100%;
        box-sizing: border-box;
        padding: 1.5rem;
        overflow: visible;
    }


    /* Card heading */
    #apply .section-head.mt-7 + .grid-2 > .card .eyebrow {
        display: block;
        margin-bottom: .45rem;
    }

    #apply .section-head.mt-7 + .grid-2 > .card .h3 {
        margin-top: 0;
        margin-bottom: 1.25rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }


    /* Fee list */
    #apply .section-head.mt-7 + .grid-2 .fee-list {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: .65rem;
        box-sizing: border-box;
    }


    /* Every fee row */
    #apply .section-head.mt-7 + .grid-2 .fee-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) max-content;
        align-items: baseline;
        column-gap: 1.25rem;
        width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }


    /* Fee description */
    #apply .section-head.mt-7 + .grid-2 .fee-row > span {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: normal;
        line-height: 1.5;
    }


    /* Fee amount */
    #apply .section-head.mt-7 + .grid-2 .fee-row > strong {
        min-width: max-content;
        white-space: nowrap;
        text-align: right;
        line-height: 1.5;
    }


    /* Give total rows a little visual separation */
    #apply .section-head.mt-7 + .grid-2 .fee-row:nth-last-child(3) {
        margin-top: .25rem;
    }

    #apply .section-head.mt-7 + .grid-2 .fee-row:nth-last-child(2) {
        margin-top: .15rem;
    }


    /* Fee Concession box */
    #apply .section-head.mt-7 + .grid-2 + .card.mt-5 {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        height: auto;
        margin-top: 1.5rem;
        padding: 1.15rem 1.5rem;
        overflow: visible;
    }


    /* Fee Concession text */
    #apply .section-head.mt-7 + .grid-2 + .card.mt-5 p {
        width: 100%;
        max-width: 100%;
        margin: 0;
        line-height: 1.75;
        overflow-wrap: anywhere;
        word-break: normal;
    }

}
/* =========================================================
   SECTION 10 — REQUIRED ITEMS
   FINAL DESKTOP FIX
   ========================================================= */

@media (min-width: 1024px) {

    /* Required Items heading area */
    #apply .required-items-head {
        margin-top: 3rem;
        margin-bottom: 1.5rem;
    }

    #apply .required-items-head .eyebrow {
        display: block;
        margin-bottom: .5rem;
    }

    #apply .required-items-head .h2 {
        margin-top: 0;
        margin-bottom: .65rem;
        line-height: 1.2;
    }

    #apply .required-items-head .muted {
        margin-top: 0;
        max-width: 75rem;
        line-height: 1.7;
    }


    /* Required Items card */
    #apply .required-items-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        min-height: 0;
        box-sizing: border-box;

        margin-top: 0;
        padding: 1.5rem 1.75rem;

        overflow: visible;
    }


    /* Text inside the card */
    #apply .required-items-card p {
        width: 100%;
        max-width: 100%;
        margin: 0;
        line-height: 1.7;

        overflow-wrap: anywhere;
        word-break: normal;
    }


    /* Required Items button */
    #apply .required-items-card .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        min-height: 48px;
        max-width: 100%;

        margin-top: 1.25rem;

        padding: .75rem 1.4rem;

        box-sizing: border-box;

        white-space: nowrap;
        text-align: center;
        line-height: 1.25;
    }


    /* Space before Rules & Regulations */
    #apply .required-items-card + .section-head {
        margin-top: 3rem;
    }

}
/* =========================================================
   SECTION 10 — EDUCATIONAL PROGRAMME
   DESKTOP TEXT / CARD FIX
   ========================================================= */

@media (min-width: 1024px) {

    /* Educational Programme card */
    #apply .educational-programme-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        box-sizing: border-box;

        padding: 1.5rem 1.75rem;

        overflow: visible;
    }


    /* Heading area */
    #apply .educational-programme-card .section-head {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }


    /* Small heading */
    #apply .educational-programme-card .eyebrow {
        display: block;
        margin-bottom: .5rem;
        line-height: 1.4;
    }


    /* Main heading */
    #apply .educational-programme-card .h2 {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        margin-top: 0;
        margin-bottom: .75rem;

        line-height: 1.25;

        overflow-wrap: anywhere;
        word-break: normal;
    }


    /* All programme paragraphs */
    #apply .educational-programme-card > p,
    #apply .educational-programme-card .section-head + p {
        display: block;

        width: 100%;
        max-width: 100%;
        min-width: 0;

        margin-left: 0;
        margin-right: 0;

        line-height: 1.75;

        overflow-wrap: anywhere;
        word-break: normal;
        white-space: normal;

        box-sizing: border-box;
    }


    /* Gap between paragraphs */
    #apply .educational-programme-card > p + p {
        margin-top: .65rem;
    }

}
/* =========================================================
   FEE CONCESSION — IMPORTANT NOTICE
   ========================================================= */

@media (min-width: 1024px) {

    #apply .section-head.mt-7 + .grid-2 + .card.mt-5 {
        background: #edf5ef;
        border: 1px solid rgba(31, 78, 55, 0.22);
        border-left: 5px solid #1f4e37;

        padding: 1.15rem 1.5rem;

        margin-top: 1.5rem;
        margin-bottom: 2.5rem;

        border-radius: 14px;

        box-sizing: border-box;
    }

    #apply .section-head.mt-7 + .grid-2 + .card.mt-5 p {
        margin: 0;

        color: #26382d;

        font-size: 1rem;
        line-height: 1.75;

        font-weight: 500;

        overflow-wrap: anywhere;
        word-break: normal;
    }

    /* Important heading */
    #apply .section-head.mt-7 + .grid-2 + .card.mt-5 strong {
        color: #17452f;
        font-weight: 800;
    }

}
/* =========================================================
   IMPORTANT FEE NOTICE — HIGHLIGHT
   ========================================================= */

@media (min-width: 1024px) {

    #apply .fee-concession-notice {
        position: relative;

        background: #edf5ef;
        border: 1px solid rgba(31, 78, 55, 0.22);
        border-left: 5px solid #1f4e37;

        padding: 0 1.5rem 1.15rem;

        margin-top: 1.5rem;
        margin-bottom: 2.5rem;

        border-radius: 14px;

        overflow: hidden;
        box-sizing: border-box;
    }

    #apply .fee-notice-label {
        display: inline-block;

        background: #1f4e37;
        color: #ffffff;

        padding: .55rem 1rem;

        margin-left: -1.5rem;
        margin-bottom: 1rem;

        border-radius: 0 0 8px 0;

        font-size: .78rem;
        font-weight: 800;
        letter-spacing: .12em;
        line-height: 1.2;

        text-transform: uppercase;
    }

    #apply .fee-concession-notice p {
        margin: 0;

        color: #26382d;

        font-size: 1rem;
        line-height: 1.75;
        font-weight: 500;

        overflow-wrap: anywhere;
        word-break: normal;
    }

    #apply .fee-concession-notice strong {
        color: #17452f;
        font-weight: 800;
    }
}
/* =========================================================
   RULES & REGULATIONS — FINAL BUTTON LAYOUT
   ========================================================= */

@media (min-width: 1024px) {

    /* Three Rules cards */
    #apply .section-head.mt-7 + .grid-3 {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
        align-items: stretch;
    }

    /* Individual card */
    #apply .section-head.mt-7 + .grid-3 > .card {
        display: flex;
        flex-direction: column;

        min-width: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;

        box-sizing: border-box;
        overflow: visible;
    }

    /* Rules list takes available space */
    #apply .section-head.mt-7 + .grid-3 > .card .list-check {
        flex: 1 1 auto;
        min-width: 0;

        margin-bottom: 0;
    }

    /* View Full Rules button */
    #apply .section-head.mt-7 + .grid-3 > .card .rules-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        align-self: flex-start;

        min-height: 44px;
        margin-top: 1.25rem;

        padding: .65rem 1.25rem;

        border-radius: 8px;

        font-size: .85rem;
        font-weight: 700;
        line-height: 1.2;

        white-space: nowrap;
        text-decoration: none;

        box-sizing: border-box;

        flex-shrink: 0;
    }

    /* Small hover effect */
    #apply .section-head.mt-7 + .grid-3 > .card .rules-btn:hover {
        transform: translateY(-1px);
    }

}
/* =========================================================
   RULES & REGULATIONS — STAR BULLET STYLE
   ========================================================= */

@media (min-width: 1024px) {

    /* Rules list */
    #apply .grid-3 .list-check {
        list-style: none;
        padding-left: 0;
        margin-left: 0;
    }

    /* Each rule */
    #apply .grid-3 .list-check li {
        position: relative;

        padding-left: 1.35rem;
        margin-bottom: .65rem;

        line-height: 1.6;

        overflow-wrap: anywhere;
        word-break: normal;
    }

    /* Star before every rule */
    #apply .grid-3 .list-check li::before {
        content: "★";

        position: absolute;
        left: 0;
        top: .05rem;

        color: #1f4e37;

        font-size: .72rem;
        line-height: 1.6;
    }

    /* Last rule */
    #apply .grid-3 .list-check li:last-child {
        margin-bottom: 0;
    }

}
/* =========================================================
   SECTION 10 — ADMISSION
   FINAL MOBILE RESPONSIVE FIX
   Desktop layout remains unchanged
   ========================================================= */

@media (max-width: 1023px) {

    /* -----------------------------------------------------
       MAIN ADMISSION CONTAINER
       ----------------------------------------------------- */

    #apply {
        overflow-x: hidden;
    }

    #apply > .container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 1rem;
        padding-right: 1rem;
    }


    /* -----------------------------------------------------
       CHAPTER / ADMISSION INTRO
       ----------------------------------------------------- */

    #apply > .container > .chapter {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 2rem;
    }

    #apply .chapter-title {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    #apply .chapter-desc {
        max-width: 100%;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }


    /* -----------------------------------------------------
       ALL SECTION HEADINGS
       ----------------------------------------------------- */

    #apply .section-head {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #apply .section-head .eyebrow {
        display: block;
        margin-bottom: .45rem;
        line-height: 1.4;
    }

    #apply .section-head .h2 {
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        margin-bottom: .65rem;

        font-size: clamp(1.55rem, 6vw, 2rem);
        line-height: 1.25;

        overflow-wrap: anywhere;
        word-break: normal;
    }

    #apply .section-head .muted {
        width: 100%;
        max-width: 100%;
        margin-top: 0;

        line-height: 1.7;

        overflow-wrap: anywhere;
        word-break: normal;
    }


    /* -----------------------------------------------------
       ELIGIBILITY — FOUR CARDS
       ----------------------------------------------------- */

    #apply > .container > .grid-4 {
        display: grid !important;

        grid-template-columns: 1fr !important;

        gap: 1rem;

        width: 100%;
        max-width: 100%;

        margin-top: 1.25rem;

        box-sizing: border-box;
    }

    #apply > .container > .grid-4 > .card,
    #apply > .container > .grid-4 > article {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        height: auto;
        min-height: 0;

        padding: 1.25rem;

        box-sizing: border-box;

        overflow: visible;
    }

    #apply .admission-eligibility-card .card-title {
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    #apply .admission-eligibility-card .small {
        line-height: 1.65;
        overflow-wrap: anywhere;
    }


    /* -----------------------------------------------------
       EDUCATIONAL PROGRAMME
       ----------------------------------------------------- */

    #apply .educational-programme-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        height: auto;

        margin-top: 2rem;

        padding: 1.25rem;

        box-sizing: border-box;

        overflow: visible;
    }

    #apply .educational-programme-card .section-head {
        width: 100%;
        max-width: 100%;
    }

    #apply .educational-programme-card .h2 {
        font-size: clamp(1.45rem, 5.5vw, 1.9rem);
        line-height: 1.3;
    }

    #apply .educational-programme-card p {
        width: 100%;
        max-width: 100%;

        margin-left: 0;
        margin-right: 0;

        line-height: 1.7;

        overflow-wrap: anywhere;
        word-break: normal;
        white-space: normal;
    }


    /* -----------------------------------------------------
       FEE STRUCTURE
       ----------------------------------------------------- */

    #apply .section-head.mt-7 {
        width: 100%;
        max-width: 100%;
        margin-top: 2.5rem;
        margin-bottom: 1.25rem;
    }

    #apply .section-head.mt-7 + .grid-2 {
        display: grid;

        grid-template-columns: 1fr;

        gap: 1rem;

        width: 100%;
        max-width: 100%;
    }

    #apply .section-head.mt-7 + .grid-2 > .card {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        height: auto;
        min-height: 0;

        padding: 1.25rem;

        box-sizing: border-box;

        overflow: visible;
    }


    /* Fee card heading */
    #apply .section-head.mt-7 + .grid-2 > .card .h3 {
        font-size: 1.45rem;
        line-height: 1.3;

        margin-top: 0;
        margin-bottom: 1rem;

        overflow-wrap: anywhere;
    }


    /* Fee rows */
    #apply .section-head.mt-7 + .grid-2 .fee-list {
        width: 100%;
        max-width: 100%;

        display: flex;
        flex-direction: column;

        gap: .7rem;
    }

    #apply .section-head.mt-7 + .grid-2 .fee-row {
        display: grid;

        grid-template-columns: minmax(0, 1fr) auto;

        align-items: start;

        column-gap: .75rem;

        width: 100%;
        max-width: 100%;

        margin: 0;

        box-sizing: border-box;
    }

    #apply .section-head.mt-7 + .grid-2 .fee-row > span {
        min-width: 0;

        line-height: 1.5;

        overflow-wrap: anywhere;
        word-break: normal;
    }

    #apply .section-head.mt-7 + .grid-2 .fee-row > strong {
        min-width: max-content;

        white-space: nowrap;

        text-align: right;

        line-height: 1.5;
    }


    /* -----------------------------------------------------
       FEE CONCESSION
       ----------------------------------------------------- */

    #apply .fee-concession-notice,
    #apply .section-head.mt-7 + .grid-2 + .card.mt-5 {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        height: auto;

        margin-top: 1rem;
        margin-bottom: 2rem;

        padding: 1rem 1.1rem;

        box-sizing: border-box;

        overflow: visible;
    }

    #apply .fee-concession-notice p,
    #apply .section-head.mt-7 + .grid-2 + .card.mt-5 p {
        width: 100%;
        max-width: 100%;

        margin: 0;

        font-size: .95rem;
        line-height: 1.7;

        overflow-wrap: anywhere;
        word-break: normal;
    }

    #apply .fee-notice-label {
        max-width: 100%;

        margin-left: -1.1rem;

        padding: .5rem .8rem;

        font-size: .7rem;

        box-sizing: border-box;
    }


    /* -----------------------------------------------------
       REQUIRED ITEMS
       ----------------------------------------------------- */

    #apply .required-items-head {
        width: 100%;
        max-width: 100%;

        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    #apply .required-items-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        height: auto;

        padding: 1.25rem;

        margin-top: 0;

        box-sizing: border-box;

        overflow: visible;
    }

    #apply .required-items-card p {
        width: 100%;
        max-width: 100%;

        margin: 0;

        line-height: 1.7;

        overflow-wrap: anywhere;
    }

    #apply .required-items-card .btn {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;
        max-width: 100%;

        min-height: 48px;

        margin-top: 1rem;

        padding: .75rem 1rem;

        box-sizing: border-box;

        white-space: normal;

        text-align: center;
        line-height: 1.3;
    }


    /* -----------------------------------------------------
       RULES & REGULATIONS — THREE CARDS
       ----------------------------------------------------- */

    #apply .section-head.mt-7 + .grid-3 {
        display: grid;

        grid-template-columns: 1fr;

        gap: 1rem;

        width: 100%;
        max-width: 100%;

        box-sizing: border-box;
    }

    #apply .section-head.mt-7 + .grid-3 > .card {
        display: flex;
        flex-direction: column;

        width: 100%;
        max-width: 100%;
        min-width: 0;

        height: auto;
        min-height: 0;

        padding: 1.25rem;

        box-sizing: border-box;

        overflow: visible;
    }


    /* Rules card titles */
    #apply .section-head.mt-7 + .grid-3 > .card .card-title {
        font-size: 1.25rem;
        line-height: 1.3;

        overflow-wrap: anywhere;
    }


    /* Rules list */
    #apply .grid-3 .list-check {
        list-style: none;

        width: 100%;
        max-width: 100%;

        padding-left: 0;
        margin-left: 0;
    }

    #apply .grid-3 .list-check li {
        position: relative;

        width: 100%;
        max-width: 100%;

        padding-left: 1.25rem;

        margin-bottom: .65rem;

        line-height: 1.6;

        overflow-wrap: anywhere;
        word-break: normal;
    }

    /* Star */
    #apply .grid-3 .list-check li::before {
        content: "★";

        position: absolute;

        left: 0;
        top: .05rem;

        color: #1f4e37;

        font-size: .7rem;

        line-height: 1.6;
    }


    /* Rules buttons */
    #apply .grid-3 .rules-btn {
        display: flex;

        align-items: center;
        justify-content: center;

        width: 100%;
        max-width: 100%;

        min-height: 46px;

        margin-top: 1rem;

        padding: .7rem 1rem;

        box-sizing: border-box;

        white-space: normal;

        text-align: center;
        line-height: 1.25;

        flex-shrink: 0;
    }


    /* -----------------------------------------------------
       GENERAL CARD SAFETY
       ----------------------------------------------------- */

    #apply .card,
    #apply article {
        max-width: 100%;
        min-width: 0;

        box-sizing: border-box;

        overflow-wrap: anywhere;
        word-break: normal;
    }

    #apply .card p,
    #apply .card li,
    #apply .card h3,
    #apply .card h2 {
        max-width: 100%;

        overflow-wrap: anywhere;
        word-break: normal;
    }


    /* -----------------------------------------------------
       ALL LINKS / BUTTONS
       ----------------------------------------------------- */

    #apply .btn {
        box-sizing: border-box;
        max-width: 100%;
    }


    /* -----------------------------------------------------
       ADMISSION FORM
       ----------------------------------------------------- */

    #apply .form-layout {
        display: grid;

        grid-template-columns: 1fr;

        gap: 1.25rem;

        width: 100%;
        max-width: 100%;

        margin-top: 2rem;
    }

    #apply input,
    #apply select,
    #apply textarea {
        width: 100%;
        max-width: 100%;

        box-sizing: border-box;
    }

    #apply textarea {
        min-height: 140px;

        resize: vertical;
    }


    /* -----------------------------------------------------
       PREVENT HORIZONTAL SCROLLING
       ----------------------------------------------------- */

    #apply img,
    #apply iframe,
    #apply table {
        max-width: 100%;
    }

}
/* =========================================================
   KAFALAH PROGRAM
   Matches existing donation section design
   ========================================================= */

.kafalah-section {
  margin-top: 3.5rem;
}

.kafalah-heading {
  max-width: 900px;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.kafalah-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--gold-400);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.kafalah-title {
  margin: .8rem 0 1rem;
  font-family: var(--serif);
  color: var(--cream-50);
  font-size: 2rem;
  line-height: 1.2;
}

.kafalah-intro {
  max-width: 900px;
  margin: 0 auto;
  color: rgba(253,251,247,.72);
  font-size: .95rem;
  line-height: 1.8;
}

.kafalah-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.kafalah-card {
  min-width: 0;
  height: 100%;
  padding: 1.75rem;
  border: 1px solid rgba(212,175,55,.55);
  border-radius: var(--radius);
  background: rgba(253,251,247,.06);
  transition:
    transform .3s,
    border-color .3s,
    background-color .3s,
    box-shadow .3s;
}

.kafalah-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212,175,55,.85);
  background: rgba(253,251,247,.09);
  box-shadow: 0 18px 45px rgba(0,0,0,.16);
}

.kafalah-card h3 {
  margin: 0 0 1.5rem;
  color: var(--cream-50);
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.25;
}

.kafalah-description {
  min-height: 5.5rem;
  margin: 0;
  color: rgba(253,251,247,.78);
  font-size: .9rem;
  line-height: 1.75;
}

.kafalah-price {
  margin-top: 2rem;
}

.kafalah-price strong {
  display: block;
  color: var(--cream-50);
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.1;
}

.kafalah-price span {
  display: block;
  margin-top: .65rem;
  color: rgba(253,251,247,.72);
  font-size: .75rem;
  font-weight: 600;
}

.kafalah-price-secondary {
  margin-top: 2.25rem;
}

.kafalah-price-secondary strong {
  font-size: 2rem;
}

.kafalah-price-secondary small {
  font-size: .65em;
  font-weight: 400;
}

.kafalah-action {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.kafalah-action .btn {
  min-width: 230px;
}


/* Desktop */
@media (min-width: 768px) {
  .kafalah-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .kafalah-title {
    font-size: 2.25rem;
  }

  .kafalah-card {
    padding: 2rem;
  }
}


/* Mobile */
@media (max-width: 639px) {
  .kafalah-section {
    margin-top: 3rem;
  }

  .kafalah-heading {
    margin-bottom: 2rem;
  }

  .kafalah-title {
    font-size: 1.8rem;
  }

  .kafalah-intro {
    font-size: .88rem;
    line-height: 1.7;
  }

  .kafalah-card {
    padding: 1.4rem;
  }

  .kafalah-card h3 {
    font-size: 1.35rem;
  }

  .kafalah-description {
    min-height: auto;
  }

  .kafalah-price strong,
  .kafalah-price-secondary strong {
    font-size: 1.9rem;
  }

  .kafalah-action .btn {
    width: 100%;
  }
}
/* =========================================================
   DIRECT DONATION / PAYMENT OPTIONS
   Existing Ahsanul Madaris design
   ========================================================= */

.direct-donation {
  width: 100%;
}

.direct-donation-head {
  max-width: 58rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.direct-donation-head .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.direct-donation-title {
  margin-top: .9rem;
  color: var(--cream-50);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
}

.direct-donation-intro {
  max-width: 55rem;
  margin: 1.25rem auto 0;
  color: rgba(253,251,247,.75);
  line-height: 1.8;
  font-size: .92rem;
}

.direct-donation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.direct-donation-card {
  min-width: 0;
  padding: 2rem;
  border: 1px solid rgba(212,175,55,.28);
  border-radius: var(--radius);
  background: rgba(253,251,247,.055);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 44px rgba(0,0,0,.08);
  transition:
    transform .3s var(--ease),
    border-color .3s ease,
    background-color .3s ease,
    box-shadow .3s ease;
}

.direct-donation-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212,175,55,.55);
  background: rgba(253,251,247,.08);
  box-shadow: 0 20px 50px rgba(0,0,0,.14);
}

.direct-donation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(212,175,55,.14);
  color: var(--gold-400);
  margin-bottom: 1.25rem;
}

.direct-donation-label {
  display: block;
  color: var(--gold-400);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
}

.direct-donation-card-title {
  margin-top: .8rem;
  color: var(--cream-50);
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.25;
  font-weight: 700;
}

.direct-donation-text {
  margin-top: 1rem;
  color: rgba(253,251,247,.72);
  font-size: .88rem;
  line-height: 1.7;
}


/* ---------- QR ---------- */

.donation-qr-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.75rem 0 1.25rem;
}

.donation-qr {
  width: 190px;
  height: 190px;
  padding: .6rem;
  object-fit: contain;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
}

.donation-upi {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(212,175,55,.25);
  border-radius: .9rem;
  background: rgba(212,175,55,.06);
}


/* ---------- Details ---------- */

.donation-detail,
.bank-detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.donation-detail span,
.bank-detail-row span {
  color: rgba(253,251,247,.62);
  font-size: .78rem;
}

.donation-detail strong,
.bank-detail-row strong {
  color: var(--cream-50);
  font-size: .88rem;
  text-align: right;
  overflow-wrap: anywhere;
}


/* ---------- Bank ---------- */

.bank-details {
  margin-top: 1.75rem;
}

.bank-detail-row {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(253,251,247,.1);
}

.bank-detail-row:first-child {
  padding-top: 0;
}

.bank-detail-row:last-child {
  border-bottom: 0;
}

.bank-value-with-copy {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  min-width: 0;
}

.bank-value-with-copy strong {
  overflow-wrap: anywhere;
}

.copy-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border: 1px solid rgba(212,175,55,.35);
  border-radius: .55rem;
  color: var(--gold-400);
  background: rgba(212,175,55,.07);
  transition:
    background-color .2s ease,
    color .2s ease,
    transform .2s ease;
}

.copy-mini:hover {
  background: var(--gold-500);
  color: var(--sage-900);
  transform: translateY(-1px);
}

.copy-mini .ico {
  width: .9rem;
  height: .9rem;
}


/* ---------- Buttons ---------- */

.donation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.btn-copy {
  border: 1px solid rgba(212,175,55,.4);
  color: var(--cream-50);
  background: rgba(253,251,247,.05);
}

.btn-copy:hover {
  background: rgba(212,175,55,.14);
  border-color: var(--gold-400);
  transform: translateY(-1px);
}

.bank-note {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--gold-500);
  border-radius: .5rem;
  background: rgba(212,175,55,.06);
  color: rgba(253,251,247,.7);
  font-size: .78rem;
  line-height: 1.65;
}

.bank-note strong {
  color: var(--gold-400);
}


/* ---------- Desktop ---------- */

@media (min-width: 768px) {
  .direct-donation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .direct-donation-card {
    min-height: 100%;
  }

  .direct-donation-title {
    font-size: 2.35rem;
  }
}


/* ---------- Mobile ---------- */

@media (max-width: 639px) {

  .direct-donation-card {
    padding: 1.4rem;
  }

  .direct-donation-title {
    font-size: 1.8rem;
  }

  .direct-donation-intro {
    font-size: .86rem;
  }

  .donation-qr {
    width: 175px;
    height: 175px;
  }

  .donation-detail,
  .bank-detail-row {
    flex-direction: column;
    gap: .35rem;
  }

  .donation-detail strong,
  .bank-detail-row strong {
    text-align: left;
  }

  .bank-value-with-copy {
    justify-content: flex-start;
    width: 100%;
  }

  .donation-actions {
    flex-direction: column;
  }

  .donation-actions .btn {
    width: 100%;
  }
}
/* ---------- Final Compact UPI Row ---------- */

.donation-detail.donation-upi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-top: 16px;
    padding: 12px 16px;
    box-sizing: border-box;
}

.donation-upi-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.donation-upi-info span {
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 700;
}

.donation-upi-info strong {
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.donation-detail.donation-upi .btn-copy {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Equal Height Direct Donation Cards */
.direct-donation-grid {
    align-items: stretch;
}

.direct-donation-card {
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
}
/* Mobile */
@media (max-width: 639px) {
    .donation-detail.donation-upi {
        flex-wrap: wrap;
    }

    .donation-upi-info {
        width: 100%;
    }

    .donation-detail.donation-upi .btn-copy {
        margin-left: auto;
    }
}
/* =========================================================
   SECTION 12 — NEWS & UPDATES / BLOG STYLE
   ========================================================= */

#news .news-grid {
  align-items: stretch;
  gap: 28px;
}

#news .news-lead {
  min-height: 390px;
  padding: 34px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease;
}

#news .news-lead:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
}

#news .news-lead-title {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  margin: 24px 0 16px;
}

#news .news-lead-excerpt {
  max-width: 620px;
  line-height: 1.75;
  font-size: 16px;
}

#news .news-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#news .news-list {
  display: grid;
  gap: 16px;
}

#news .news-item {
  min-height: 175px;
  padding: 26px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease;
}

#news .news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

#news .news-item-title {
  font-size: 22px;
  line-height: 1.3;
  margin: 12px 0 8px;
}

#news .news-item .clamp-2 {
  line-height: 1.6;
  max-width: 560px;
}

#news .news-arrow {
  flex: 0 0 auto;
}

#news .news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

#news .news-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 900px) {
  #news .news-grid {
    grid-template-columns: 1fr;
  }

  #news .news-lead {
    min-height: 320px;
  }
}

@media (max-width: 600px) {
  #news .news-lead {
    min-height: 280px;
    padding: 24px;
  }

  #news .news-item {
    min-height: 150px;
    padding: 20px;
  }

  #news .news-item-title {
    font-size: 19px;
  }
}
/* =========================================================
   SECTION 12 — NEWS & UPDATES / BLOG IMAGE SYSTEM
   ========================================================= */

#news .news-grid {
  align-items: stretch;
  gap: 28px;
}


/* =========================================================
   FEATURED NEWS
   ========================================================= */

#news .news-lead {
  min-height: 390px;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}

#news .news-lead:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .14);
}


/* Featured Image */

#news .news-lead-image {
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #173f36;
}

#news .news-lead-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease;
}

#news .news-lead:hover .news-lead-image img {
  transform: scale(1.04);
}


/* Featured Content */

#news .news-lead-content {
  padding: 28px 32px 12px;
}

#news .news-lead-title {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  margin: 20px 0 14px;
}

#news .news-lead-excerpt {
  max-width: 620px;
  line-height: 1.75;
  font-size: 16px;
}

#news .news-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 0 32px 28px;
}


/* =========================================================
   NEWS LIST
   ========================================================= */

#news .news-list {
  display: grid;
  gap: 16px;
}

#news .news-item {
  min-height: 175px;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease;
}

#news .news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}


/* Small News Images */

#news .news-item-image {
  width: 145px;
  min-width: 145px;
  overflow: hidden;
  background: #173f36;
}

#news .news-item-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}

#news .news-item:hover .news-item-image img {
  transform: scale(1.05);
}


/* News Text */

#news .news-item-content {
  flex: 1;
  padding: 24px 18px 24px 24px;
  min-width: 0;
}

#news .news-item-title {
  font-size: 22px;
  line-height: 1.3;
  margin: 12px 0 8px;
}

#news .news-item .clamp-2 {
  line-height: 1.6;
  max-width: 560px;
}

#news .news-arrow {
  flex: 0 0 auto;
  margin: 24px 20px 0 0;
}


/* =========================================================
   NEWS META
   ========================================================= */

#news .news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

#news .news-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  #news .news-grid {
    grid-template-columns: 1fr;
  }

  #news .news-lead {
    min-height: 350px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  #news .news-lead {
    min-height: 0;
  }

  #news .news-lead-image {
    height: 200px;
  }

  #news .news-lead-content {
    padding: 22px 22px 10px;
  }

  #news .news-lead-title {
    font-size: 28px;
  }

  #news .news-read {
    padding: 0 22px 22px;
  }

  #news .news-item {
    min-height: 130px;
  }

  #news .news-item-image {
    width: 105px;
    min-width: 105px;
  }

  #news .news-item-content {
    padding: 18px 12px 18px 16px;
  }

  #news .news-item-title {
    font-size: 18px;
  }

  #news .news-arrow {
    margin: 18px 12px 0 0;
  }

}

/* =========================================
   SECTION 14 — GOOGLE MAP
   ========================================= */

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.contact-map-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.contact-map {
    width: 100%;
    height: 180px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f5f5f5;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-directions {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
    justify-content: center;
    text-decoration: none;
}


/* ---------- Mobile ---------- */

@media (max-width: 767px) {

    .contact-right {
        width: 100%;
        gap: 1rem;
    }

    .contact-map-card {
        width: 100%;
        max-width: 100%;
    }

    .contact-map {
        height: 220px;
    }

    .contact-directions {
        width: 100%;
        max-width: 100%;
    }
}
/* Footer logo size */
.site-footer .logo-lg {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
    transform: scale(1.15);
}
/* =========================================
   IMPORTANT NOTICE — RUNNING TICKER
   ========================================= */

.notice-ticker {
    width: 100%;
    background: var(--sage-700);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.notice-ticker-inner {
    display: flex;
    align-items: stretch;
    min-height: 42px;
}

.notice-label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 0 1.1rem;
    background: var(--terra-500);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
}

.notice-window {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.notice-track {
    display: flex;
    align-items: center;
    width: max-content;
    white-space: nowrap;
    animation: notice-scroll 26s linear infinite;
    will-change: transform;
}

.notice-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 0 4rem;
   color: #ffffff !important;
opacity: 1;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.notice-item::before {
    content: "•";
    margin-right: 1rem;
    color: var(--terra-300);
    font-size: 1.1rem;
}

/* English direction: Right → Left */
@keyframes notice-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Pause when mouse is placed over the notice */
.notice-window:hover .notice-track {
    animation-play-state: paused;
}


/* ---------- Mobile ---------- */

@media (max-width: 767px) {

    .notice-ticker-inner {
        min-height: 40px;
    }

    .notice-label {
        padding: 0 0.75rem;
        font-size: 0.65rem;
    }

    .notice-item {
        padding: 0 2.5rem;
        font-size: 0.72rem;
    }

    .notice-track {
        animation-duration: 20s;
    }
}
/* =========================================================
   FINAL DESKTOP HEADER
   CENTER LOGO + LEFT BRAND NAME + RIGHT ACTIONS
   ========================================================= */

@media (min-width: 1024px) {

    /* ---------- Header Top ---------- */

    header.site-header .header-top {
        position: relative !important;
        min-height: 110px !important;
        height: 110px !important;
        padding: 0 1.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
    }


    /* =====================================================
       BRAND WRAPPER
       ===================================================== */

    header.site-header .header-top > a.brand {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 110px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        z-index: 5 !important;
    }


    /* =====================================================
       LOGO — EXACT CENTER
       ===================================================== */

    header.site-header .header-top > a.brand > img.brand-logo {
        position: absolute !important;

        left: 50% !important;
        top: 50% !important;

        transform: translate(-50%, -50%) !important;

        width: 122px !important;
        height: auto !important;

        max-width: 122px !important;
        max-height: 92px !important;

        object-fit: contain !important;
        display: block !important;

        z-index: 6 !important;
    }


    /* =====================================================
       BRAND NAME + TAG
       LEFT SIDE — NEAR THE ORIGINAL POSITION
       ===================================================== */

    header.site-header .header-top > a.brand > .brand-text {

        position: absolute !important;

        left: 1.5rem !important;
        top: 42% !important;

        transform: translateY(-50%) !important;

        display: flex !important;
        flex-direction: column !important;

        align-items: flex-start !important;
        justify-content: center !important;

        width: auto !important;
        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        text-align: left !important;

        visibility: visible !important;
        opacity: 1 !important;

        z-index: 7 !important;
    }


    /* ---------- School Name ---------- */

    header.site-header .brand-name {

        display: block !important;

        font-size: 1.05rem !important;
        line-height: 1.2 !important;

        white-space: nowrap !important;

        color: #F7F3E8 !important;

        visibility: visible !important;
        opacity: 1 !important;
    }


    /* ---------- Faith · Knowledge · Character ---------- */

    header.site-header .brand-tag {

        display: block !important;

        margin-top: 3px !important;

        font-size: .58rem !important;
        line-height: 1.2 !important;

        letter-spacing: .10em !important;

        white-space: nowrap !important;

        color: #F0D477 !important;

        visibility: visible !important;
        opacity: 1 !important;
    }


    /* =====================================================
       RIGHT SIDE — PHONE + APPLY + DONATE
       ===================================================== */

    header.site-header .header-actions {

        position: absolute !important;

        right: 1.5rem !important;
        top: 50% !important;

        transform: translateY(-50%) !important;

        display: flex !important;
        align-items: center !important;

        gap: .75rem !important;

        margin: 0 !important;

        z-index: 8 !important;
    }


    /* =====================================================
       NAVIGATION — ALWAYS BELOW HEADER TOP
       ===================================================== */

    header.site-header .primary-nav {

        position: relative !important;

        z-index: 20 !important;

        height: auto !important;

        overflow: visible !important;
    }

    header.site-header .primary-nav-inner {

        min-height: 38px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }


    /* Navigation text */

    header.site-header .nav-link {

        white-space: nowrap !important;
    }
}


/* =========================================================
   IMPORTANT NOTICE BAR
   KEEP THE BAR — REMOVE ONLY RED "IMPORTANT NOTICE" LABEL
   ========================================================= */

.notice-label {
    display: none !important;
}

.notice-ticker-inner {
    display: block !important;
    width: 100% !important;
}

.notice-window {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}


/* =========================================================
   MOBILE — DO NOT CHANGE THE EXISTING MOBILE DESIGN
   ========================================================= */

@media (max-width: 1023px) {

    header.site-header .header-top {
        min-height: auto !important;
        height: auto !important;
        padding-top: .05rem !important;
        padding-bottom: .05rem !important;
    }

    header.site-header .header-top > a.brand {
        position: static !important;
        width: auto !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
    }

    header.site-header .header-top > a.brand > img.brand-logo {
        position: static !important;
        width: 140px !important;
        max-width: 140px !important;
        height: auto !important;
        transform: none !important;
    }

    header.site-header .header-top > a.brand > .brand-text {
        position: static !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
        display: block !important;
    }
}
/* =========================================================
   ANNOUNCEMENT BAR — PREMIUM FINAL
   ========================================================= */

.notice-ticker {
    background: #263F36;
    border-top: 1px solid rgba(212, 175, 55, 0.35);
    border-bottom: 1px solid rgba(212, 175, 55, 0.45);
}

.notice-ticker-inner {
    min-height: 34px;
    height: 34px;
    display: flex;
    align-items: center;
}

.notice-window {
    height: 34px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.notice-track {
    height: 100%;
    display: flex;
    align-items: center;
    width: max-content;
    white-space: nowrap;
    animation: notice-scroll 26s linear infinite;
    will-change: transform;
}

.notice-item {
    color: #F0D477 !important;
    font-size: 0.96rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    line-height: 1.2 !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.notice-item::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    min-width: 6px;
    margin-right: 9px;
    border-radius: 50%;
    background: #F0D477;
    vertical-align: middle;
    box-shadow: 0 0 7px rgba(240, 212, 119, 0.45);
}

@media (max-width: 767px) {

    .notice-ticker-inner {
        min-height: 32px;
        height: 32px;
    }

    .notice-window {
        height: 32px;
    }

    .notice-item {
        font-size: 0.82rem !important;
    }

    .notice-item::before {
        width: 5px;
        height: 5px;
        min-width: 5px;
        margin-right: 7px;
    }
}
/* Three-language selector */
.header-top {
    position: relative;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
}

.language-switcher a {
    color: var(--sage-700);
    text-decoration: none;
    transition: color .2s ease;
}

.language-switcher a:hover,
.language-switcher a.active {
    color: var(--terra-600);
}

.language-switcher span {
    color: var(--sage-400);
}

@media (min-width: 1024px) {
    .language-switcher {
        position: absolute;
        top: .65rem;
        right: 0;
     margin-top: 0 !important;   
    }

    .header-actions {
        margin-right: 150px;
    }
}

@media (max-width: 1023px) {
    .language-switcher {
        margin-left: auto;
        margin-right: .5rem;
    }
}
