/* =====================================================================
   Al Hadi — PROFESSIONAL DESIGN LAYER (public website)
   Loaded AFTER style.css / dark-mode.css / motion.css. It only restyles; it changes no content or behaviour.
   ===================================================================== */
:root {
  --p-maroon: #7a1620; --p-maroon-d: #4a0d12; --p-maroon-l: #a3303a; --p-gold: #c9982a; --p-gold-l: #f1d98c; --p-plum: #4b1450;
  --p-ink: #1d1a16; --p-muted: #6b5e53; --p-line: rgba(70, 30, 30, .10); --p-card: #ffffff; --p-bg: #fbf8f3;
  --p-r: 18px; --p-r-sm: 12px;
  --p-shadow: 0 14px 36px -16px rgba(60, 20, 20, .34); --p-shadow-sm: 0 5px 16px -8px rgba(60, 20, 20, .28);
  --p-ease: cubic-bezier(.2, .8, .3, 1);
}
html { scroll-behavior: smooth; }
::selection { background: rgba(201, 152, 42, .32); }
:focus-visible { outline: 3px solid rgba(201, 152, 42, .65); outline-offset: 2px; border-radius: 6px; }

/* ---------- thin reading-progress bar ---------- */
.pro-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 3000; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--p-gold), #f1d98c, var(--p-maroon-l)); pointer-events: none; }

/* ---------- 1. header: one slim, elegant row ---------- */
body .main-header {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: nowrap; text-align: left;
  padding: 12px clamp(16px, 4vw, 56px); background: linear-gradient(180deg, #fff, #fffdf9); border-bottom: 1px solid var(--p-line); box-shadow: none;
}
body .main-header::after { display: none; }
body .header-logo-area { display: flex; align-items: center; gap: 14px; min-width: 0; }
body .school-logo-wrap, body .school-logo { width: 58px; height: 58px; flex: none; }
body .school-logo { object-fit: contain; filter: drop-shadow(0 4px 8px rgba(120, 60, 20, .25)); }
body .header-title { display: block; min-width: 0; text-align: left; }
body .header-title-top { font-size: 10.5px; letter-spacing: .28em; font-weight: 700; color: var(--p-gold); margin: 0; }
body .header-title-main { font-size: clamp(19px, 2.1vw, 27px); line-height: 1.08; letter-spacing: .02em; margin: 2px 0 0; background: linear-gradient(95deg, var(--p-maroon-d), var(--p-maroon) 55%, #b4532a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
body .header-title-main::after, body .header-title-top::after { display: none; }
body .header-title-sub { font-size: 11.5px; margin: 3px 0 0; color: var(--p-muted); font-style: normal; letter-spacing: .01em; }
body .header-title .header-title-main + .header-title-sub::before { display: none; }
body .header-contact-nav { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
body .header-contact-line { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
body .header-contact-line .contact-item { padding: 5px 12px 5px 6px; font-size: 12.5px; border: 1px solid var(--p-line); background: #fff; box-shadow: none; border-radius: 999px; transition: box-shadow .25s, transform .25s; }
body .header-contact-line .contact-item:hover { box-shadow: var(--p-shadow-sm); transform: translateY(-1px); }
body .header-contact-line .ci-ic { width: 24px; height: 24px; font-size: 12px; background: linear-gradient(145deg, var(--p-maroon-l), var(--p-maroon-d)); }
body .header-divider { display: none; }
body .header-nav-line { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
body .header-nav-line a { font-size: 12px; font-weight: 600; letter-spacing: .01em; color: var(--p-muted); padding: 4px 10px; border-radius: 999px; transition: background .2s, color .2s; text-decoration: none; }
body .header-nav-line a:hover { background: rgba(122, 22, 32, .07); color: var(--p-maroon); }
body .header-nav-line .donations-btn { border: 1px solid rgba(122, 22, 32, .35); color: var(--p-maroon); background: rgba(255, 255, 255, .8); }

/* ---------- 2. information strip: slim ---------- */
body .udise-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 6px clamp(16px, 4vw, 56px); min-height: 0; background: linear-gradient(90deg, var(--p-maroon-d), #651420 50%, var(--p-plum)); border: 0; }
body .udise-bar strong { font-size: 11px; letter-spacing: .09em; font-weight: 600; color: rgba(255, 255, 255, .92); }
body .udise-bar .udise-icon { font-size: 12px; opacity: .85; margin-right: 4px; }
body .udise-left, body .udise-right { display: flex; align-items: center; padding: 0; }

/* ---------- 3. main navigation: sticky glass ---------- */
body .main-nav { position: sticky; top: 0; z-index: 1500; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); border-bottom: 1px solid var(--p-line); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset; transition: box-shadow .3s, background .3s; }
body .main-nav.is-stuck { box-shadow: 0 10px 30px -16px rgba(60, 20, 20, .45); background: rgba(255, 255, 255, .92); }
body .main-nav-inner { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 1320px; margin: 0 auto; padding: 0 clamp(12px, 3vw, 28px); min-height: 56px; }
body .main-nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
body .main-nav-links > a, body .nav-dd-trigger { font-size: 12.5px; font-weight: 600; letter-spacing: .07em; color: #3d3027; padding: 9px 13px; border-radius: 999px; position: relative; transition: background .2s, color .2s; text-decoration: none; }
body .main-nav-links > a:hover, body .nav-dd-trigger:hover { background: rgba(122, 22, 32, .07); color: var(--p-maroon); }
body .main-nav-links > a.active { color: var(--p-maroon); background: rgba(122, 22, 32, .09); }
body .main-nav-links > a.active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: linear-gradient(90deg, var(--p-gold), var(--p-maroon-l)); }
body .nav-admission, body .nav-admission:hover { color: #9a6c0e; }
body .nav-dd-menu, body .login-dropdown { border-radius: 14px; border: 1px solid var(--p-line); box-shadow: var(--p-shadow); background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: 6px; overflow: hidden; }
body .nav-dd-menu a, body .login-dropdown a { border-radius: 10px; font-size: 13px; font-weight: 600; padding: 10px 14px; }
body .nav-dd-menu a:hover, body .login-dropdown a:hover { background: rgba(122, 22, 32, .07); color: var(--p-maroon); }
body .nav-login { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; border-radius: 999px; padding: 10px 18px; background: linear-gradient(135deg, var(--p-maroon-l), var(--p-maroon-d)); color: #fff; box-shadow: 0 8px 20px -10px rgba(122, 22, 32, .8); transition: transform .2s var(--p-ease), box-shadow .2s; border: 0; }
body .nav-login:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(122, 22, 32, .9); }
/* the school mark that slides in once the big header has scrolled away */
.pro-nav-brand { display: flex; align-items: center; gap: 9px; overflow: hidden; max-width: 0; opacity: 0; transform: translateX(-8px); transition: max-width .35s var(--p-ease), opacity .3s, transform .3s var(--p-ease); text-decoration: none; flex: none; white-space: nowrap; }
.main-nav.is-stuck .pro-nav-brand { max-width: 260px; opacity: 1; transform: none; margin-right: 8px; }
.pro-nav-brand img { width: 34px; height: 34px; object-fit: contain; }
.pro-nav-brand b { font-family: 'Playfair Display', Georgia, serif; font-size: 15px; color: var(--p-maroon-d); line-height: 1; }

/* ---------- 4. news ticker: a slim pill ---------- */
body .notice-ticker-bar { margin: 12px clamp(12px, 3vw, 40px); height: 42px; min-height: 0; border-radius: 999px; overflow: hidden; border: 0; background: linear-gradient(90deg, #5a0f18, #7a1620 60%, #5d1649); box-shadow: var(--p-shadow-sm); }
body .ticker-label { padding: 0 18px; font-size: 11px; letter-spacing: .12em; font-weight: 800; background: linear-gradient(135deg, var(--p-gold-l), var(--p-gold)); color: #4a2d00; border-radius: 999px 0 0 999px; }
body .ticker-item { font-size: 13px; font-weight: 600; }
body .open-notices-btn { font-size: 11px; letter-spacing: .08em; font-weight: 800; padding: 0 18px; background: rgba(0, 0, 0, .28); border-radius: 0 999px 999px 0; }

/* ---------- 5. page banners (inner pages): one consistent, rich look ---------- */
body .page-hero { background: radial-gradient(900px 380px at 85% -10%, rgba(201, 152, 42, .28), transparent 60%), radial-gradient(700px 360px at 5% 110%, rgba(163, 48, 58, .5), transparent 65%), linear-gradient(135deg, #3d0a10 0%, #6b1320 52%, #4b1450 130%); }
body .page-hero::after { opacity: .5; }
body .page-hero h1 { font-size: clamp(30px, 4.2vw, 50px); letter-spacing: -.005em; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
body .page-hero p { max-width: 760px; margin-left: auto; margin-right: auto; color: rgba(255, 255, 255, .9); }
body .hero-badge { background: rgba(255, 255, 255, .08); border: 1px solid rgba(241, 217, 140, .55); color: var(--p-gold-l); letter-spacing: .22em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ---------- 6. home: slider + stats ---------- */
body .home-slider { border-radius: 0; box-shadow: none; }
body .stats-bar { position: relative; z-index: 3; max-width: 1100px; margin: -34px auto 24px; padding: 18px 12px; border-radius: 22px; background: #fff; border: 1px solid var(--p-line); box-shadow: var(--p-shadow); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
body .stats-bar .stat { text-align: center; padding: 6px 10px; position: relative; }
body .stats-bar .stat + .stat::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--p-line); }
body .stat-num { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(28px, 3.4vw, 40px); background: linear-gradient(120deg, var(--p-maroon-d), var(--p-maroon-l) 70%, #c2652a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
body .stat-label { font-size: 11px; letter-spacing: .16em; font-weight: 600; color: var(--p-muted); }

/* ---------- 7. section headings ---------- */
body .section-eyebrow { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--p-maroon); background: rgba(201, 152, 42, .14); border: 1px solid rgba(201, 152, 42, .35); }
body .section-title { font-family: 'Playfair Display', Georgia, serif; letter-spacing: -.005em; color: var(--p-maroon-d); }
body .section-divider { height: 4px; width: 64px; border: 0; border-radius: 4px; background: linear-gradient(90deg, var(--p-gold), var(--p-maroon-l)); margin-left: auto; margin-right: auto; }
body .section-sub { color: var(--p-muted); }

/* ---------- 8. cards ---------- */
body .card, body .quick-card, body .team-card, body .voice-card, body .video-card, body .mind-card, body .choice-card {
  border-radius: var(--p-r); border: 1px solid var(--p-line); box-shadow: var(--p-shadow-sm); background: var(--p-card);
  transition: transform .35s var(--p-ease), box-shadow .35s var(--p-ease), border-color .35s;
}
body .card:hover, body .quick-card:hover, body .team-card:hover, body .voice-card:hover, body .video-card:hover, body .mind-card:hover, body .choice-card:hover {
  transform: translateY(-5px); box-shadow: var(--p-shadow); border-color: rgba(201, 152, 42, .45);
}
body .qc-ic, body .choice-ic, body .card-icon { border-radius: 14px; }

/* ---------- 9. buttons ---------- */
body .form-submit, body .pf-submit, body .choice-btn, body .ra-btn {
  border-radius: 12px; font-weight: 700; letter-spacing: .03em; border: 0; color: #fff; background: linear-gradient(135deg, var(--p-maroon-l), var(--p-maroon-d));
  box-shadow: 0 10px 22px -12px rgba(122, 22, 32, .85); transition: transform .2s var(--p-ease), box-shadow .2s, filter .2s;
}
body .form-submit:hover, body .pf-submit:hover, body .choice-btn:hover, body .ra-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(122, 22, 32, .9); filter: brightness(1.05); }
body .form-submit:active, body .pf-submit:active { transform: translateY(0); }
body .filter-btn { border-radius: 999px; }

/* ---------- 10. forms ---------- */
body .form-group label, body .pro-form label { font-weight: 700; font-size: 12.5px; letter-spacing: .02em; color: #3d3027; }
body .form-group input, body .form-group select, body .form-group textarea, body .pro-form input, body .pro-form select, body .pro-form textarea {
  border-radius: var(--p-r-sm); border: 1.5px solid rgba(70, 30, 30, .16); background: #fffdfa; transition: border-color .2s, box-shadow .2s, background .2s;
}
body .form-group input:focus, body .form-group select:focus, body .form-group textarea:focus, body .pro-form input:focus, body .pro-form select:focus, body .pro-form textarea:focus {
  border-color: var(--p-gold); box-shadow: 0 0 0 4px rgba(201, 152, 42, .18); background: #fff; outline: none;
}
body .pf-head { border-radius: var(--p-r) var(--p-r) 0 0; }

/* ---------- 11. footer ---------- */
body footer { background: radial-gradient(800px 320px at 90% -20%, rgba(201, 152, 42, .18), transparent 60%), linear-gradient(160deg, #2c070c, #4a0d12 55%, #3a1040); color: rgba(255, 255, 255, .86); border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--p-gold), var(--p-maroon-l), var(--p-gold)) 1; }
body footer h3, body footer h4 { color: #fff; }
body footer a { color: rgba(255, 255, 255, .82); transition: color .2s, transform .2s; }
body footer a:hover { color: var(--p-gold-l); }
body .footer-social .fs-btn { border-radius: 12px; transition: transform .25s var(--p-ease), box-shadow .25s; }
body .footer-social .fs-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .6); }
body .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }

/* ---------- 12. floating buttons ---------- */
body .floating-wa { box-shadow: 0 14px 30px -10px rgba(18, 140, 70, .8); }
body .scroll-top { border-radius: 14px; background: linear-gradient(135deg, var(--p-maroon-l), var(--p-maroon-d)); box-shadow: 0 12px 24px -10px rgba(122, 22, 32, .9); }

/* ---------- phones & tablets ---------- */
@media (max-width: 991px) {
  body .main-header { padding: 10px 14px; gap: 10px; }
  body .school-logo-wrap, body .school-logo { width: 44px; height: 44px; }
  body .header-title-top { font-size: 9px; letter-spacing: .2em; }
  body .header-title-main { font-size: 16px; }
  body .header-title-sub { display: none; }
  body .header-contact-nav { flex-direction: row; align-items: center; gap: 6px; }
  body .header-contact-line .ci-text { display: none; }
  body .header-contact-line .contact-item { padding: 4px; }
  body .header-nav-line { display: none; }
  body .udise-bar { padding: 5px 14px; justify-content: center; flex-wrap: wrap; gap: 2px 14px; }
  body .udise-bar strong { font-size: 9.5px; letter-spacing: .05em; }
  body .main-nav-inner { min-height: 50px; justify-content: space-between; }
  body .notice-ticker-bar { margin: 10px 12px; height: 38px; }
  body .ticker-label { padding: 0 12px; font-size: 10px; }
  body .open-notices-btn { padding: 0 12px; }
  body .stats-bar { margin: -22px 12px 18px; grid-template-columns: repeat(2, 1fr); }
  body .stats-bar .stat + .stat::before { display: none; }
}
@media (max-width: 520px) { body .header-title-main { font-size: 14.5px; } body .header-contact-line .contact-item:nth-child(2) { display: none; } }

/* dark mode: the site inverts the whole page with a filter (see dark-mode.css), so everything above is written for the LIGHT look only. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .pro-progress { display: none; } body .card, body .quick-card, body .team-card, body .voice-card, body .video-card, body .mind-card, body .choice-card { transition: none; } .pro-nav-brand { transition: none; } }

@media (max-width: 991px) { .pro-nav-brand { display: none !important; } }

/* ---------- phones (the old rules sit at 768px, so these are explicit) ---------- */
@media (max-width: 768px) {
  body .main-header { flex-direction: row !important; align-items: center; justify-content: space-between; text-align: left; padding: 9px 14px; }
  body .header-logo-area { justify-content: flex-start; flex: 1 1 auto; min-width: 0; gap: 10px; }
  body .header-title { text-align: left; }
  body .header-contact-nav { width: auto; align-items: center; flex-direction: row; gap: 6px; }
  body .header-contact-line { gap: 6px; }
  body .udise-bar { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1px 12px; padding: 4px 10px; }
  body .udise-bar .udise-icon { display: none; }
  body .udise-bar strong { font-size: 9px; letter-spacing: .02em; }
  body .main-nav-inner { flex-direction: row !important; flex-wrap: nowrap !important; justify-content: space-between !important; gap: 8px; padding: 3px 12px; min-height: 48px; }
  body .mnav-burger { padding: 8px 6px; font-size: 13px; letter-spacing: .08em; }
  body .nav-login-wrap { margin: 0; }
  body .nav-login { padding: 8px 15px; font-size: 12px; }
  body .notice-ticker-bar { margin: 8px 10px; }
}

/* the closed mobile menu drawer sits just off-screen: keep its shadow from bleeding onto the page edge */
body .mnav-drawer { transition: transform .3s ease, visibility 0s linear .3s, box-shadow 0s linear .3s; }
body .mnav-drawer:not(.open) { box-shadow: none; visibility: hidden; }
body .mnav-drawer.open { visibility: visible; transition: transform .3s ease; }
/* mid-width desktops: make room for the sticky school mark */
@media (min-width: 992px) and (max-width: 1399px) {
  .pro-nav-brand b { display: none; }
  .main-nav.is-stuck .pro-nav-brand { max-width: 44px; margin-right: 4px; }
  body .main-nav-links > a, body .nav-dd-trigger { padding: 9px 9px; letter-spacing: .04em; font-size: 12px; }
  body .nav-login { padding: 9px 14px; }
}

/* keep sideways overflow clipped WITHOUT making the page a scroll container (that is what stopped the sticky bar on phones) */
html, html body { overflow-x: clip; }


/* ===== Home hero: headline + call-to-action over the photo slider ===== */
body .home-slider .hs-overlay { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; line-height: 1.4;
  padding: clamp(20px, 4vw, 44px) clamp(24px, 7vw, 110px) clamp(84px, 10vw, 118px); pointer-events: none;
  background: linear-gradient(to top, rgba(22, 6, 8, .66), rgba(22, 6, 8, .22) 55%, rgba(22, 6, 8, 0)); }
.hs-panel { max-width: 580px; color: #fff; pointer-events: auto; animation: mFadeUp .8s cubic-bezier(.2, .8, .3, 1) .25s both; }
.hs-kicker { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--p-gold-l, #f1d98c);
  padding: 5px 12px; border: 1px solid rgba(241, 217, 140, .45); border-radius: 999px; background: rgba(0, 0, 0, .22); backdrop-filter: blur(6px); }
.hs-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 900; font-size: clamp(26px, 3.7vw, 48px); line-height: 1.14; margin: 14px 0 8px; text-shadow: 0 3px 18px rgba(0, 0, 0, .45); }
.hs-sub { font-size: clamp(13px, 1.25vw, 16px); opacity: .92; margin: 0; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.hs-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hs-btn { display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 800; font-size: 14px; letter-spacing: .3px; color: #fff; text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px); transition: transform .25s cubic-bezier(.2, .8, .3, 1), background .25s, box-shadow .25s; }
.hs-btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .24); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.hs-btn.primary { background: linear-gradient(135deg, #c9982a, #e6b94f); color: #2a1204; border-color: transparent; }
.hs-btn.primary:hover { background: linear-gradient(135deg, #d8a638, #f0c561); }
@media (max-width: 760px) { body .home-slider .hs-overlay { display: none; } }
@media (prefers-reduced-motion: reduce) { .hs-panel { animation: none; } .hs-btn { transition: none; } }
