/* ==========================================
   MASJID-E HASSAN - GLOBAL STYLESHEET
   ========================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --dark-green: #0b1b24;
    --mid-green: #122a36;
    --light-green: #1c3a4a;
    --gold: #c8a04a;
    --gold-light: #e7c982;
    --cream: #f4efe6;
    --ivory: #fbf7f0;
    --white: #ffffff;
    --text-dark: #1c2b2f;
    --text-mid: #4a5b5f;
    --text-light: rgba(255, 255, 255, 0.86);
    --shadow: 0 6px 26px rgba(15, 23, 28, 0.12);
    --shadow-lg: 0 16px 60px rgba(10, 17, 22, 0.2);
    --radius: 12px;
    --radius-lg: 20px;
    --font-body: 'Manrope', sans-serif;
    --font-display: 'Cormorant Garamond', serif;
    --font-arabic: 'Amiri', serif;
    --font-brand: 'Cinzel Decorative', 'Cormorant Garamond', serif;
    --font-brand-hero: 'Cinzel', 'Cormorant Garamond', serif;
    --nav-ink: #050607;
    --nav-ink-2: #0c0f12;
    --nav-ice: #e5e7eb;
    --nav-gold: #f4d28a;
    --nav-text: rgba(255, 255, 255, 0.9);
    --glass-bg: rgba(7, 8, 10, 0.62);
    --glass-bg-soft: rgba(7, 8, 10, 0.5);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-blur: 8px;
    --nav-pill-h: 46px;
    --nav-item-h: 32px;
    --nav-pill-pad: 6px;
    --nav-pill-pad-x: 12px;
    --nav-pill-gap: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--ivory);
    line-height: 1.7;
    font-size: 16px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    opacity: 1;
    transition: opacity 0.18s ease;
}

body.is-page-transitioning {
    opacity: 0.9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
    transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
    overflow: visible;
    box-shadow: none;
}

.navbar::before {
    content: none;
}

.navbar::after {
    content: none;
}

.navbar.scrolled {
    box-shadow: none;
    border-bottom-color: transparent;
    background: transparent;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 2;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(7, 8, 10, 0.72);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.38),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    backdrop-filter: blur(var(--glass-blur)) saturate(1.1);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.1);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6)) brightness(1.12) contrast(1.08);
}

.brand-name {
    display: block;
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.55);
    transition: color 0.18s ease, text-shadow 0.18s ease;
}

.brand-wordmark {
    font-family: var(--font-brand);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-sub {
    display: block;
    color: var(--nav-gold);
    font-size: 11px;
    opacity: 0.9;
    transition: color 0.18s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--nav-pill-gap);
    list-style: none;
    margin: 0 auto 0 clamp(64px, 7.3vw, 108px);
    position: relative;
    height: var(--nav-pill-h);
    padding: var(--nav-pill-pad) var(--nav-pill-pad-x);
    border-radius: 999px;
    background: var(--glass-bg-soft);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 8px 18px rgba(3, 7, 10, 0.38),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.05);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.05);
    overflow: visible;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-links::before {
    content: none;
}

.nav-links::after {
    content: none;
}

.nav-links a,
.nav-more-btn {
    color: var(--nav-text);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    height: var(--nav-item-h);
    padding: 0 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.25s ease;
    z-index: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
    transition: color 0.16s ease, text-shadow 0.16s ease, transform 0.16s ease;
}

.nav-links a::before,
.nav-more-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
    box-shadow: 0 10px 24px rgba(2, 6, 10, 0.35);
}

.nav-links a::after,
.nav-more-btn::after {
    content: none;
    position: absolute;
    bottom: -4px;
    left: 12%;
    right: 12%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    opacity: 0;
    transform: scaleX(0.6);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.nav-more-btn:hover,
.nav-more-btn.is-active,
.nav-more.open .nav-more-btn,
.nav-more:focus-within .nav-more-btn {
    color: rgba(255, 255, 255, 0.98);
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.3);
    transform: none;
}

.nav-links a:hover::before,
.nav-links a.is-active::before,
.nav-more-btn:hover::before,
.nav-more-btn.is-active::before,
.nav-more.open .nav-more-btn::before,
.nav-more:focus-within .nav-more-btn::before {
    opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.is-active::after,
.nav-more-btn:hover::after,
.nav-more-btn.is-active::after,
.nav-more.open .nav-more-btn::after,
.nav-more:focus-within .nav-more-btn::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-links a:focus-visible,
.nav-more-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
}

.nav-more {
    position: relative;
    display: flex;
    align-items: center;
    height: var(--nav-item-h);
}

.nav-more-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}

.nav-more-caret {
    font-size: 10px;
    opacity: 0.7;
    transform: translateY(-1px);
    transition: transform 0.18s ease;
}

.nav-more:hover .nav-more-caret,
.nav-more.open .nav-more-caret,
.nav-more:focus-within .nav-more-caret {
    transform: translateY(-1px) rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%, 6px);
    min-width: 230px;
    padding: 10px;
    border-radius: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    backdrop-filter: blur(var(--glass-blur)) saturate(1.1);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.1);
    z-index: 20;
}

.nav-dropdown a {
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: none;
    padding: 8px 12px;
    border-radius: 10px;
    height: auto;
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    color: rgba(255, 255, 255, 0.92);
    transition: background 0.18s ease, color 0.18s ease;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.98);
}

.nav-more:hover .nav-dropdown,
.nav-more.open .nav-dropdown,
.nav-more:focus-within .nav-dropdown {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}


/* -- Admin Panel link — staff only, visually separated -- */
.nav-admin-link {
    margin-top: 4px;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.13) !important;
    color: rgba(255, 255, 255, 0.48) !important;
    font-size: 11px !important;
    letter-spacing: 0.04em;
}

.nav-admin-link:hover,
.nav-admin-link:focus-visible {
    color: rgba(244, 210, 138, 0.9) !important;
    background: rgba(244, 210, 138, 0.09) !important;
}

.navbar.nav-light .nav-admin-link {
    color: rgba(12, 16, 20, 0.38) !important;
    border-top-color: rgba(0, 0, 0, 0.1) !important;
}

.navbar.nav-light .nav-admin-link:hover {
    color: rgba(118, 88, 26, 0.88) !important;
    background: rgba(0, 0, 0, 0.05) !important;
}
/* Light section contrast mode */
.navbar.nav-light .brand-name {
    color: rgba(10, 12, 14, 0.92);
    text-shadow: none;
}

.navbar.nav-light .brand-sub {
    color: rgba(118, 88, 26, 0.95);
}

.navbar.nav-light .nav-logo {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.navbar.nav-light .nav-logo img {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45)) brightness(1.18) contrast(1.12);
}

.navbar.nav-light .nav-links {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.14),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.navbar.nav-light .nav-links a,
.navbar.nav-light .nav-more-btn {
    color: rgba(12, 16, 20, 0.9);
    text-shadow: none;
}

.navbar.nav-light .nav-links a:hover,
.navbar.nav-light .nav-links a.is-active,
.navbar.nav-light .nav-more-btn:hover,
.navbar.nav-light .nav-more.open .nav-more-btn,
.navbar.nav-light .nav-more:focus-within .nav-more-btn {
    color: rgba(8, 10, 12, 0.98);
    text-shadow: none;
}

.navbar.nav-light .nav-links a::before,
.navbar.nav-light .nav-more-btn::before {
    background: rgba(0, 0, 0, 0.06);
}

.navbar.nav-light .nav-dropdown {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.navbar.nav-light .nav-dropdown a {
    color: rgba(12, 16, 20, 0.9);
}

.navbar.nav-light .nav-dropdown a:hover,
.navbar.nav-light .nav-dropdown a:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(8, 10, 12, 0.98);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.24s ease;
}

.hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-close {
    display: none;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #08131a;
    padding-top: 64px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Full-hero mosque background photo */
.mosque-illustration {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: image-set(url('assets/hero/masjid-hero-desktop.webp') type('image/webp'),
            url('assets/hero/masjid-hero-desktop.jpg') type('image/jpeg'));
    background-size: cover;
    background-position: center 54%;
    background-repeat: no-repeat;
    filter: brightness(0.8) saturate(1.08) contrast(1.06);
    transform: scale(1);
    transition: transform 8s ease;
}

/* Slow Ken-Burns zoom on load */
.hero:hover .mosque-illustration {
    transform: scale(1.02);
}

/* Vignette - dark edges, clear center */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 78% 66% at 50% 46%, rgba(0, 0, 0, 0) 34%, rgba(7, 19, 26, 0.45) 100%);
    z-index: 1;
}

/* Unified deep-green overlay - same strength top to bottom */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(6, 18, 26, 0.44) 0%,
            rgba(6, 18, 26, 0.24) 28%,
            rgba(6, 18, 26, 0.24) 60%,
            rgba(6, 18, 26, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 860px;
    width: 100%;
    box-sizing: border-box;
    padding: 22px 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Bismillah decorative frame */
.bismillah-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px 40px;
    width: min(92vw, 760px);
    box-sizing: border-box;
    border: 1px solid rgba(231, 201, 130, 0.42);
    border-radius: 16px;
    background: linear-gradient(155deg, rgba(8, 28, 43, 0.68), rgba(6, 20, 33, 0.45));
    backdrop-filter: blur(4px);
    overflow: visible;
    animation: fadeDown 1s ease both;
    box-shadow:
        0 14px 34px rgba(3, 8, 14, 0.36),
        0 0 20px rgba(212, 175, 112, 0.12),
        inset 0 0 24px rgba(231, 201, 130, 0.08);
}

.bframe-ornament {
    color: rgba(231, 201, 130, 0.78);
    font-size: 12px;
    letter-spacing: 3px;
}

.bismillah {
    font-size: clamp(26px, 3.8vw, 44px);
    font-family: var(--font-arabic);
    font-weight: 700;
    line-height: 1.5;
    display: inline-block;
    padding: 0.14em 0 0.12em;
    margin: 0;
    direction: rtl;
    text-align: center;
    white-space: nowrap;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    letter-spacing: 0;
    word-spacing: 0.08em;
    color: #f6df9f;
    animation: fadeDown 1s ease both;
    text-shadow:
        0 0 12px rgba(239, 205, 130, 0.26),
        0 2px 8px rgba(0, 0, 0, 0.56);
}

.hero-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gold);
    margin-bottom: 20px;
    animation: fadeDown 1s 0.1s ease both;
}

.hero-divider span {
    display: block;
    width: 60px;
    height: 1px;
    background: var(--gold);
    opacity: 0.7;
}

.hero-title {
    font-family: var(--font-brand-hero);
    font-size: clamp(30px, 5.8vw, 74px);
    color: #f8e5b0;
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: 0.012em;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-block;
    max-width: 100%;
    margin-bottom: 12px;
    animation: fadeDown 1s 0.2s ease both;
    background: linear-gradient(180deg, #faedc4 0%, #efcf85 48%, #fae7b5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0;
    text-rendering: geometricPrecision;
    font-kerning: normal;
    text-shadow:
        0 0 8px rgba(212, 175, 112, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-arabic {
    font-size: clamp(18px, 2.6vw, 22px);
    color: var(--gold);
    font-family: var(--font-arabic);
    direction: rtl;
    margin-bottom: 24px;
    animation: fadeDown 1s 0.3s ease both;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.hero-desc {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.82;
    width: min(100%, 700px);
    max-width: 700px;
    margin-bottom: 36px;
    padding: 14px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(155deg, rgba(7, 19, 26, 0.58), rgba(7, 19, 26, 0.38));
    backdrop-filter: blur(3px);
    font-weight: 400;
    animation: fadeDown 1s 0.4s ease both;
    text-shadow: 0 2px 9px rgba(0, 0, 0, 0.62);
    overflow-wrap: anywhere;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeDown 1s 0.5s ease both;
}

.btn-primary {
    background: var(--gold);
    color: var(--dark-green);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 18px rgba(201, 145, 43, 0.32);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(201, 145, 43, 0.40);
}

.btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.96);
    padding: 14px 28px;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.58);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

.section-light .btn-outline,
.section-cream .btn-outline {
    color: var(--text-dark);
    border-color: rgba(17, 42, 54, 0.28);
}

.section-light .btn-outline:hover,
.section-cream .btn-outline:hover {
    border-color: var(--dark-green);
    background: rgba(11, 27, 36, 0.05);
}

.page-top {
    padding-top: 132px;
}

.admissions-ticker {
    position: relative;
    width: min(100%, 840px);
    margin: 0 auto 14px;
    padding: 1px;
    border-radius: 999px;
    border: 1px solid rgba(200, 160, 74, 0.26);
    background: linear-gradient(135deg, rgba(200, 160, 74, 0.26), rgba(12, 23, 31, 0.72), rgba(255, 255, 255, 0.06), rgba(200, 160, 74, 0.2));
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    backdrop-filter: blur(12px) saturate(1.18);
    -webkit-backdrop-filter: blur(12px) saturate(1.18);
    isolation: isolate;
}

.admissions-ticker::before,
.admissions-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 42px;
    pointer-events: none;
    z-index: 2;
}

.admissions-ticker::before {
    left: 0;
    background: linear-gradient(90deg, rgba(9, 20, 27, 0.96), rgba(9, 20, 27, 0));
}

.admissions-ticker::after {
    right: 0;
    background: linear-gradient(270deg, rgba(9, 20, 27, 0.96), rgba(9, 20, 27, 0));
}

.admissions-ticker-track {
    display: flex;
    width: max-content;
    align-items: center;
    animation: admissionsTickerScroll 24s linear infinite;
    will-change: transform;
}

.admissions-ticker-group {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 10px 22px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admissions-ticker-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--dark-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.admissions-ticker-pill::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(11, 27, 36, 0.72);
    box-shadow: 0 0 0 3px rgba(11, 27, 36, 0.08);
    flex: 0 0 auto;
}

.admissions-ticker-dot {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    line-height: 1;
}

.flow-step {
    position: relative;
}

.flow-index {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(200, 160, 74, 0.2);
    border: 1px solid rgba(200, 160, 74, 0.45);
    color: var(--gold);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.section-light .flow-index,
.section-cream .flow-index {
    background: rgba(200, 160, 74, 0.14);
    color: #8a6a1f;
}

/* Prayer bar in hero */
.hero-prayer-bar {
    background: linear-gradient(170deg, rgba(7, 19, 26, 0.75), rgba(7, 19, 26, 0.55));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 112, 0.24);
    border-radius: 18px;
    padding: 20px 28px;
    width: 100%;
    max-width: 760px;
    animation: fadeUp 1s 0.6s ease both;
    margin-bottom: 24px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.prayer-bar-label {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 12px;
    font-weight: 700;
}

.prayer-bar-times {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.prayer-bar-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 12px 16px;
    min-width: 100px;
    text-align: center;
    transition: background 0.2s;
}

.prayer-bar-item.active {
    background: rgba(201, 145, 43, 0.15);
    border-color: var(--gold);
}

.pbi-arabic {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    direction: rtl;
}

.pbi-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
}

.pbi-name.active-name {
    color: var(--gold);
}

.pbi-time {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
}

.pbi-time.active-time {
    color: var(--gold-light);
}

.pbi-now {
    background: var(--gold);
    color: var(--dark-green);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 4px;
}

.scroll-indicator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    letter-spacing: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: fadeUp 1s 0.8s ease both;
    margin-bottom: 32px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
    animation: scrollPulse 2s infinite;
}

/* ==========================================
   SECTION SHARED STYLES
   ========================================== */
.section-light {
    background: var(--ivory);
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

.section-dark {
    background: var(--mid-green);
    padding: 72px 0;
    background-image:
        radial-gradient(circle at 20% 40%, rgba(0, 0, 0, 0.36) 0%, transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.05) 0%, transparent 45%),
        repeating-linear-gradient(45deg,
            transparent,
            transparent 46px,
            rgba(255, 255, 255, 0.02) 46px,
            rgba(255, 255, 255, 0.02) 47px);
}

.section-cream {
    background: var(--cream);
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

/* Authentic Islamic Background Pattern â€” User-provided image */
.section-light::before,
.section-cream::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.1;
    background-image: url('assets/textures/background_image.png');
    background-size: 600px auto;
    background-repeat: repeat;
}

/* Subdued background sections stay clean */
.section-light::after,
.section-cream::after {
    content: none;
}

/* Ensure all children content blocks stay above the geometric watermark background */
.section-light>.container,
.section-light>div,
.section-cream>.container,
.section-cream>div {
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-label {
    font-size: 11px;
    letter-spacing: 4px;
    color: #b48a2d; /* Premium gold from reference */
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.section-label.gold {
    color: var(--gold);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header h2.white {
    color: var(--white);
}

.section-divider {
    color: var(--text-mid);
    font-size: 16px;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.section-divider.gold {
    color: var(--gold);
}

.section-desc {
    font-size: 17px;
    color: #5d6f74;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.light-desc {
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   PROGRAMS & ACADEMIC SECTIONS
   ========================================== */
.about-grid-new {
    align-items: stretch;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.focus-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.focus-card h4 {
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.focus-card p {
    font-size: 13px;
    color: #5d6f74;
    line-height: 1.6;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.program-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.program-card h4 {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--white);
    margin-bottom: 10px;
}

.program-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 14px;
}

.program-link {
    color: var(--gold);
    font-weight: 600;
    font-size: 13px;
}

.success-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.highlight-item h3 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--gold-light);
    margin-bottom: 6px;
}

.highlight-item p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

/* Better contrast when highlight cards appear on light/cream sections */
.section-light .highlight-item,
.section-cream .highlight-item {
    background: var(--white);
    border: 1px solid rgba(17, 42, 54, 0.1);
    box-shadow: var(--shadow);
}

.section-light .highlight-item h3,
.section-cream .highlight-item h3 {
    color: #b48a2d;
}

.section-light .highlight-item p,
.section-cream .highlight-item p {
    color: #5d6f74;
    font-weight: 500;
}

.cta-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.cta-banner h3 {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--white);
    margin-bottom: 10px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 18px;
}

/* Ensure CTA text remains readable when the banner is used on light/cream sections */
.section-light .cta-banner,
.section-cream .cta-banner,
.cta-banner.section-cream-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(246, 239, 225, 0.94));
    border-color: rgba(17, 42, 54, 0.14);
    box-shadow: 0 14px 34px rgba(12, 20, 26, 0.16);
}

.section-light .cta-banner h3,
.section-cream .cta-banner h3,
.cta-banner.section-cream-card h3 {
    color: var(--text-dark);
}

.section-light .cta-banner p,
.section-cream .cta-banner p,
.cta-banner.section-cream-card p {
    color: var(--text-mid);
}

.btn-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.subsection-title {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text-dark);
    text-align: center;
    margin: 12px 0 22px;
}

.section-dark .subsection-title {
    color: var(--white);
}

.content-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.section-dark .content-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.content-card h4 {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.section-dark .content-card h4,
.section-dark .content-card h5 {
    color: var(--white);
}

.content-card p {
    font-size: 13px;
    line-height: 1.6;
    color: #5d6f74;
}

.section-dark .content-card p {
    color: rgba(255, 255, 255, 0.7);
}

.content-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.content-list li {
    position: relative;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.6;
    color: #5d6f74;
}

.section-dark .content-list li {
    color: rgba(255, 255, 255, 0.75);
}

.content-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    font-weight: 700;
}

.content-list.two-col {
    column-count: 2;
    column-gap: 20px;
}

.content-list.two-col li {
    break-inside: avoid;
}

.hifz-features-grid {
    grid-template-columns: minmax(0, 920px);
    justify-content: center;
    margin-bottom: 0;
}

.hifz-features-grid .content-card {
    padding: 28px 30px;
}

.hifz-feature-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px 18px;
    margin-top: 16px;
}

.hifz-feature-list li {
    break-inside: avoid;
}

.hifz-feature-list li::before {
    top: 1px;
}

@media (min-width: 900px) {
    .hifz-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
    }
}

.schedule-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.schedule-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
}

.section-light .schedule-list li,
.section-cream .schedule-list li {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

.schedule-list .time {
    font-weight: 700;
    color: var(--gold);
    min-width: 140px;
}

.schedule-list .label {
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
}

.section-light .schedule-list .label,
.section-cream .schedule-list .label {
    color: #5d6f74;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin-top: 12px;
}

.section-light .pill,
.section-cream .pill {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #5d6f74;
}

.note-card {
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.course-item {
    margin-bottom: 14px;
}

.course-item h5 {
    font-size: 14px;
    margin-bottom: 6px;
}

.muted {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.section-light .muted,
.section-cream .muted {
    color: #7a8b8f;
}

.stream-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 16px 0;
}

.stream-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
}

.stream-card h5 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--white);
}

.stream-card p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.admissions-form {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 16px;
}

.admissions-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admissions-form label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.admissions-form input,
.admissions-form select {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 14px;
    font-family: var(--font-body);
}

/* ==========================================
   COURSES PAGE
   ========================================== */
.courses-stack {
    display: grid;
    gap: 24px;
}

.course-program {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(17, 42, 54, 0.1);
    box-shadow: var(--shadow);
    padding: 28px;
}

.course-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.course-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(200, 160, 74, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.course-head-copy {
    flex: 1;
    min-width: 0;
}

.course-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.course-title-row h3 {
    font-family: var(--font-display);
    color: var(--text-dark);
    font-size: 36px;
    line-height: 1.1;
}

.course-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.badge-foundation {
    background: rgba(17, 75, 52, 0.14);
    color: #114b34;
    border: 1px solid rgba(17, 75, 52, 0.3);
}

.badge-board {
    background: rgba(31, 54, 94, 0.14);
    color: #1f365e;
    border: 1px solid rgba(31, 54, 94, 0.3);
}

.badge-higher {
    background: rgba(200, 160, 74, 0.2);
    color: #6d4d09;
    border: 1px solid rgba(137, 103, 24, 0.35);
}

.badge-hifz {
    background: rgba(61, 43, 114, 0.16);
    color: #3d2b72;
    border: 1px solid rgba(61, 43, 114, 0.34);
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 10px;
}

.course-meta span {
    font-size: 13px;
    color: #5d6f74;
    font-weight: 600;
}

.course-description {
    font-size: 15px;
    color: #55686d;
    line-height: 1.7;
}

.course-panels {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.course-panel {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(17, 42, 54, 0.08);
    border-radius: 12px;
    padding: 18px;
}

.course-panel h4 {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.course-panel .content-list {
    margin-top: 6px;
}

.course-outcome {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.course-outcome p {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
}

.course-apply {
    width: 100%;
    text-align: center;
}

/* ==========================================
   ADMISSIONS PAGE
   ========================================== */
.admissions-app {
    max-width: 920px;
    margin: 0 auto;
}

/* Admission brochure block */
.admission-brochure-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
    gap: 28px;
    align-items: start;
    padding: 28px 30px;
    margin: 28px 0 16px;
    border: 1px solid rgba(17, 42, 54, 0.1);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(212, 175, 112, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(250, 248, 242, 0.98), rgba(255, 255, 255, 0.92));
    box-shadow: var(--shadow-lg);
}

.admission-brochure-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(21, 66, 47, 0.04), transparent 42%),
        radial-gradient(circle at bottom left, rgba(21, 66, 47, 0.06), transparent 28%);
    pointer-events: none;
}

.admission-brochure-copy,
.admission-brochure-grid {
    position: relative;
    z-index: 1;
}

.admission-brochure-copy {
    align-self: start;
    padding: 10px 4px 8px 2px;
    max-width: 280px;
}

.admission-brochure-copy h3 {
    font-family: var(--font-display);
    font-size: 34px;
    line-height: 1.05;
    color: var(--text-dark);
    margin: 8px 0 0;
}

.admission-brochure-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-content: start;
    align-items: start;
}

.admission-brochure-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 216px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(17, 42, 54, 0.12);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 30px rgba(10, 30, 20, 0.06);
    align-self: start;
}

.admission-brochure-card-primary {
    background: linear-gradient(180deg, rgba(19, 68, 47, 0.98), rgba(21, 66, 47, 0.92));
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.96);
}

.admission-brochure-card-primary .admission-brochure-desc,
.admission-brochure-card-primary .admission-brochure-meta span {
    color: rgba(255, 255, 255, 0.82);
}

.admission-brochure-card-primary .admission-brochure-meta span {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.admission-brochure-card-primary .btn-primary {
    background: var(--gold);
    color: var(--dark-green);
}

.admission-brochure-card-primary .btn-primary:hover {
    background: var(--gold-light);
}

.admission-brochure-head {
    display: flex;
    gap: 12px;
    align-items: center;
}

.admission-brochure-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(145deg, #1d6147, #0f3829);
    color: #fff;
    font-size: 23px;
    box-shadow: 0 12px 24px rgba(13, 46, 33, 0.22);
}

.brochure-icon-gold {
    background: linear-gradient(145deg, #c99a3e, #8f6820);
}

.admission-brochure-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}

.admission-brochure-card h4 {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.15;
    color: inherit;
}

.admission-brochure-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admission-brochure-actions a {
    flex: 1 1 150px;
    text-align: center;
    white-space: nowrap;
}

.admission-brochure-card .btn-outline {
    color: var(--dark-green);
    border-color: rgba(17, 42, 54, 0.18);
}

.admission-brochure-card .btn-outline:hover {
    background: rgba(17, 42, 54, 0.05);
}

/* Ensure JS/HTML hidden toggles are not overridden by layout classes. */
.admissions-app [hidden] {
    display: none !important;
}

.admissions-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 18px;
}

.admission-tab {
    border: 1px solid rgba(17, 42, 54, 0.18);
    background: var(--white);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    padding: 11px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.admission-tab:hover {
    border-color: rgba(17, 42, 54, 0.36);
}

.admission-tab.is-active {
    background: var(--mid-green);
    color: var(--white);
    border-color: var(--mid-green);
}

.admission-shell {
    background: var(--white);
    border: 1px solid rgba(17, 42, 54, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.admission-shell-head {
    background: linear-gradient(135deg, #15422f, #1e573e);
    padding: 24px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.admission-shell-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.admission-shell-head h3 {
    font-family: var(--font-display);
    font-size: 38px;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 6px;
}

.admission-shell-sub {
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    margin-bottom: 10px;
}

/* Badge colors above courses are tuned for light cards.
   In the dark admissions header, force high-contrast variants. */
.admission-shell-head .course-badge {
    color: #f8fbff;
    border-color: rgba(255, 255, 255, 0.42);
}

.admission-shell-head .badge-foundation {
    background: rgba(19, 92, 63, 0.62);
}

.admission-shell-head .badge-board {
    background: rgba(31, 54, 94, 0.68);
}

.admission-shell-head .badge-higher {
    background: rgba(137, 103, 24, 0.72);
}

.admission-shell-head .badge-hifz {
    background: rgba(61, 43, 114, 0.72);
}

.admission-form-grid {
    padding: 24px;
    display: grid;
    gap: 16px;
}

.admission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.admission-form-grid .form-row {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.admission-form-grid label,
.admission-form-grid legend {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.admission-form-grid input,
.admission-form-grid textarea,
.admission-form-grid select {
    width: 100%;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-dark);
    border: 1px solid rgba(17, 42, 54, 0.18);
    border-radius: 10px;
    padding: 11px 12px;
    background: #fff;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.admission-form-grid textarea {
    resize: vertical;
    min-height: 84px;
}

.admission-form-grid input:focus,
.admission-form-grid textarea:focus,
.admission-form-grid select:focus {
    outline: none;
    border-color: #235f46;
    box-shadow: 0 0 0 3px rgba(35, 95, 70, 0.12);
}

.admission-form-grid .is-invalid {
    border-color: #b42318;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.form-error {
    min-height: 16px;
    font-size: 12px;
    color: #b42318;
}

.admission-fieldset {
    border: 1px solid rgba(17, 42, 54, 0.14);
    border-radius: 12px;
    padding: 16px;
    display: grid;
    gap: 12px;
    background: rgba(0, 0, 0, 0.015);
}

.admission-fieldset legend {
    padding: 0 8px;
    font-family: var(--font-display);
    font-size: 24px;
}

.radio-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 2px;
}

.radio-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: var(--text-dark);
}

.radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    padding: 0;
}

.compact-grid .form-row input {
    font-size: 13px;
}

.form-submit {
    width: 100%;
}

.admission-success {
    padding: 28px 24px 30px;
    text-align: center;
}

.admission-success h4 {
    font-family: var(--font-display);
    font-size: 40px;
    color: #13442f;
    margin-bottom: 8px;
}

.admission-success p {
    color: #5d6f74;
    max-width: 520px;
    margin: 0 auto 18px;
}

.admission-quick-actions {
    text-align: center;
    margin-top: 18px;
    margin-bottom: 10px;
}

.admission-quick-actions p {
    font-size: 15px;
    color: #5d6f74;
    margin-bottom: 10px;
}

.admission-whatsapp {
    min-width: 260px;
}

/* ==========================================
   MORE PAGES
   ========================================== */
.more-page-app {
    display: grid;
    gap: 20px;
}

.more-page-app [hidden] {
    display: none !important;
}

.more-intro-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(247, 240, 227, 0.9));
    border: 1px solid rgba(17, 42, 54, 0.14);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.more-intro-card h3 {
    font-family: var(--font-display);
    font-size: 38px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.more-intro-card p {
    font-size: 15px;
    color: #5d6f74;
}

.center-card {
    text-align: center;
}

.more-grid {
    display: grid;
    gap: 16px;
}

.more-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.more-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.more-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.more-grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.more-card {
    background: var(--white);
    border: 1px solid rgba(17, 42, 54, 0.12);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.more-card:hover {
    transform: translateY(-4px);
    border-color: rgba(17, 42, 54, 0.24);
    box-shadow: var(--shadow-lg);
}

.more-card h4 {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 8px;
}

.more-kicker {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 6px;
}

.more-muted {
    font-size: 14px;
    color: #5d6f74;
    line-height: 1.66;
}

.teacher-card {
    position: relative;
}

.teacher-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: linear-gradient(145deg, #1f4f3c, #2b6a4f);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    box-shadow: 0 8px 18px rgba(10, 22, 28, 0.28);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.chip-btn {
    border: 1px solid rgba(17, 42, 54, 0.18);
    border-radius: 999px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.chip-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(17, 42, 54, 0.35);
}

.chip-btn.is-active {
    background: var(--mid-green);
    color: #fff;
    border-color: var(--mid-green);
}

.inline-badge {
    display: inline-flex;
    margin-top: 10px;
    border: 1px solid rgba(17, 42, 54, 0.14);
    background: rgba(17, 42, 54, 0.05);
    color: var(--text-mid);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
}

.timing-card h4 {
    font-size: 30px;
}

.schedule-board {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(17, 42, 54, 0.14);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 22px;
}

.schedule-board h3 {
    font-family: var(--font-display);
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.schedule-list {
    display: grid;
    gap: 10px;
}

.schedule-row {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(17, 42, 54, 0.08);
    border-left: 4px solid rgba(17, 42, 54, 0.24);
    border-radius: 10px;
    padding: 12px 14px;
}

.schedule-assembly {
    border-left-color: #175f44;
}

.schedule-academic {
    border-left-color: #1f4f83;
}

.schedule-break {
    border-left-color: #8c6a1a;
}

.schedule-islamic {
    border-left-color: #3d2b72;
}

.schedule-prayer {
    border-left-color: #1e6a6b;
}

.schedule-row.schedule-activity {
    border-left-color: #0e4a38;
}

.schedule-dismissal {
    border-left-color: #5d6f74;
}

.schedule-time {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-mid);
}

.schedule-row .schedule-activity {
    font-size: 14px;
    color: var(--text-dark);
}

.schedule-note {
    margin-top: 12px;
    font-size: 13px;
    color: #5d6f74;
}

.prayer-card-lite {
    text-align: center;
}

.prayer-card-lite.is-next {
    border-color: rgba(200, 160, 74, 0.45);
    box-shadow: 0 12px 32px rgba(17, 42, 54, 0.18);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 240, 226, 0.92));
}

.prayer-card-lite.is-next h4 {
    color: #124833;
}

.success-stats .stat-card h4 {
    font-size: 48px;
    margin-bottom: 0;
}

.story-card .story-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.story-outcome {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #13442f;
}

.story-meta {
    margin-top: 8px;
    font-size: 12px;
    color: #5d6f74;
}

.gallery-card {
    overflow: hidden;
}

.gallery-visual {
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(23, 66, 86, 0.1), rgba(200, 160, 74, 0.16));
    border: 1px solid rgba(17, 42, 54, 0.12);
    min-height: 120px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    transition: transform 0.2s ease;
    overflow: hidden; /* Added to keep img corners inside */
}

.gallery-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-card:hover .gallery-visual {
    transform: scale(1.04);
}

.photo-gallery-app {
    display: grid;
    gap: 22px;
}

.photo-gallery-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.photo-shot {
    background: var(--white);
    border: 1px solid rgba(17, 42, 54, 0.12);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(17, 42, 54, 0.1);
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 320px 240px;
}

.photo-shot-btn {
    display: block;
    width: 100%;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: zoom-in;
}

.photo-shot-btn img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    display: block;
    background: #eef1f4;
    transition: filter 0.2s ease;
}

.photo-shot-overlay {
    display: none;
}

.photo-shot:hover .photo-shot-btn img,
.photo-shot-btn:focus-visible img {
    filter: brightness(1.03);
}

.photo-shot figcaption {
    font-size: 13px;
    color: #3f5258;
    padding: 10px 12px 12px;
    text-align: center;
}

.photo-lightbox[hidden] {
    display: none !important;
}

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(4, 12, 19, 0.82);
    display: grid;
    place-items: center;
    padding: 24px;
}

.photo-lightbox-panel {
    position: relative;
    width: min(1200px, 100%);
    max-height: 90vh;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.photo-lightbox-image {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    background: rgba(5, 15, 24, 0.55);
}

.photo-lightbox-caption {
    color: #f3f6f7;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.photo-lightbox-caption[hidden] {
    display: none;
}

.photo-lightbox-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(8, 20, 30, 0.74);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.photo-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(8, 20, 30, 0.72);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.photo-lightbox-nav.prev {
    left: 12px;
}

.photo-lightbox-nav.next {
    right: 12px;
}

@media (max-width: 768px) {
    .photo-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .photo-lightbox {
        padding: 12px;
    }

    .photo-lightbox-close {
        top: 6px;
        right: 6px;
        width: 38px;
        height: 38px;
    }

    .photo-lightbox-nav {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 520px) {
    .photo-gallery-grid {
        grid-template-columns: 1fr;
    }
}

.notice-stack {
    display: grid;
    gap: 12px;
}

.notice-card {
    border-left: 4px solid rgba(17, 42, 54, 0.24);
}

.notice-urgent {
    border-left-color: #b42318;
}

.notice-exam {
    border-left-color: #8a6d15;
}

.notice-event {
    border-left-color: #1f4f83;
}

.notice-info {
    border-left-color: #1e6a6b;
}

.notice-holiday {
    border-left-color: #0e4a38;
}

.notice-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.contact-layout {
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
    align-items: start;
}

.contact-layout .contact-info-card {
    padding: 36px 36px 30px;
}

.contact-info-card h3,
.local-contact-form+.admission-success h4,
.more-card>h3 {
    font-family: var(--font-display);
    font-size: 40px;
    margin-bottom: 8px;
}

.contact-detail-list {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

@media (min-width: 960px) {
    .contact-detail-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 18px;
    }

    .contact-detail-list p:first-child {
        grid-column: 1 / -1;
    }
}

.contact-detail-list p {
    font-size: 14px;
    color: #3f5258;
}

.contact-detail-list a {
    color: #1b4d39;
    font-weight: 700;
    white-space: nowrap;
}

.local-contact-form {
    display: grid;
    gap: 14px;
}

.local-contact-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.local-contact-form label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.local-contact-form input,
.local-contact-form textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-dark);
    border: 1px solid rgba(17, 42, 54, 0.18);
    border-radius: 10px;
    padding: 11px 12px;
    background: #fff;
}

.local-contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.local-contact-form input:focus,
.local-contact-form textarea:focus {
    outline: none;
    border-color: #235f46;
    box-shadow: 0 0 0 3px rgba(35, 95, 70, 0.12);
}

.local-contact-form .is-invalid {
    border-color: #b42318;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
    align-items: start;
}

.about-image-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-wrapper {
    height: 260px;
    background: linear-gradient(135deg, #1a3a2a, #2d5a40);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.about-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-location {
    background: var(--dark-green);
    color: white;
    padding: 24px;
}

.loc-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 6px;
    font-weight: 700;
}

.about-location h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.about-location p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 4px;
}

.loc-landmark {
    color: var(--gold) !important;
    font-size: 13px;
    margin-top: 8px !important;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.info-card h4 {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-mid);
    margin-bottom: 10px;
}

.info-card p {
    font-size: 14px;
    color: #5d6f74;
    line-height: 1.65;
}

.info-card-accent {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.info-card-accent .card-icon {
    font-size: 24px;
    margin-top: 2px;
}

.info-card-accent h4 {
    font-size: 15px;
    color: var(--gold);
    margin-bottom: 6px;
}

/* Stats row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--light-green);
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.stat-sub {
    font-size: 12px;
    color: #888;
}

/* ==========================================
   PRAYER TIMES
   ========================================== */
.live-clock {
    text-align: center;
    margin-bottom: 24px;
}

.clock-time {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 60px);
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 2px;
}

.clock-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    margin-top: 6px;
}

.prayer-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.prayer-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 28px 16px;
    text-align: center;
    transition: all 0.3s;
}

.prayer-card.current {
    background: rgba(201, 145, 43, 0.15);
    border-color: var(--gold);
}

.prayer-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.prayer-arabic {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    direction: rtl;
    margin-bottom: 4px;
    font-family: var(--font-arabic);
}

.prayer-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.prayer-name.active {
    color: var(--gold);
}

.prayer-time {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.prayer-time.active {
    color: var(--gold-light);
}

.prayer-type {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 8px;
}

.prayer-current-badge {
    background: var(--gold);
    color: var(--dark-green);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* Jumu'ah banner */
.jumah-banner {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 28px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* Tighter layout for prayer times section */
#prayer-times {
    padding-top: 64px;
    padding-bottom: 68px;
}

#prayer-times .section-header {
    margin-bottom: 28px;
}

#prayer-times .live-clock {
    margin-bottom: 18px;
}

#prayer-times .prayer-cards {
    margin-bottom: 18px;
}

.jumah-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 6px;
}

.jumah-left h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--white);
    margin-bottom: 4px;
}

.jumah-left p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.jumah-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.jumah-time-box {
    text-align: center;
}

.jt-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 4px;
}

.jt-value {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--gold);
    font-weight: 700;
}

.jumah-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

.prayer-note {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    text-align: center;
}

/* ==========================================
   FACILITIES
   ========================================== */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.facility-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.facility-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.fac-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(28, 58, 74, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}

.fac-blue {
    background: rgba(59, 130, 246, 0.12);
}

.fac-purple {
    background: rgba(139, 92, 246, 0.12);
}

.fac-yellow {
    background: rgba(245, 158, 11, 0.12);
}

.fac-teal {
    background: rgba(20, 184, 166, 0.12);
}

.fac-green {
    background: rgba(34, 197, 94, 0.12);
}

.facility-card h4 {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.facility-card p {
    font-size: 13px;
    color: #5d6f74;
    line-height: 1.65;
}

/* ==========================================
   EDUCATION
   ========================================== */
.edu-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.edu-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.edu-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 3.5vw, 30px);
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 12px;
}

.edu-gold {
    color: var(--gold);
}

.edu-arabic {
    font-size: 16px;
    color: var(--gold);
    direction: rtl;
    font-family: var(--font-arabic);
    margin-bottom: 16px;
}

.edu-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 24px;
}

.edu-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edu-link {
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.edu-link:hover {
    opacity: 0.8;
}

.edu-phones {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.edu-phone {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.edu-phone:hover {
    color: var(--gold);
}

.edu-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.edu-program-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: background 0.2s;
}

.edu-program-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.prog-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.edu-program-card h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 6px;
}

.edu-program-card p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* ==========================================
   EVENTS
   ========================================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.event-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.event-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.event-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: rgba(11, 27, 36, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.event-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
}

.tag-gold {
    background: rgba(201, 145, 43, 0.15);
    color: var(--gold);
}

.tag-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.tag-green {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.tag-purple {
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
}

.tag-pink {
    background: rgba(236, 72, 153, 0.1);
    color: #db2777;
}

.tag-orange {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.event-arabic {
    font-size: 11px;
    color: rgba(90, 122, 98, 0.6);
    direction: rtl;
    font-family: var(--font-arabic);
    margin-bottom: 6px;
}

.event-card h4 {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.event-card>p {
    font-size: 13px;
    color: #5d6f74;
    line-height: 1.65;
    margin-bottom: 16px;
}

.event-meta {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-meta p {
    font-size: 12px;
    color: #888;
}

/* ==========================================
   AZAAN COMPETITION
   ========================================== */
.azaan-section {
    background: linear-gradient(160deg, #f7f1e6 0%, #f1e8d8 50%, #fbf7f0 100%);
    position: relative;
    overflow: hidden;
}

.azaan-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(200, 160, 74, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 90% 10%, rgba(15, 27, 34, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.azaan-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 32px;
    align-items: start;
}

.azaan-story {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.azaan-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(200, 160, 74, 0.18);
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.azaan-story h3 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.azaan-story p {
    font-size: 14px;
    color: #5d6f74;
    line-height: 1.7;
}

.azaan-meta {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #6c7b80;
    font-weight: 600;
}

.azaan-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 110px;
    gap: 12px;
}

.azaan-photo {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(10, 17, 22, 0.15);
    grid-column: span 3;
    grid-row: span 2;
}

.azaan-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.azaan-photo:hover img {
    transform: scale(1.05);
}

.azaan-photo.azaan-large {
    grid-column: span 6;
    grid-row: span 2;
}

.azaan-photo.azaan-wide {
    grid-column: span 6;
    grid-row: span 1;
}

/* ==========================================
   GALLERY
   ========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 16px;
    margin-bottom: 32px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(11, 27, 36, 0) 0%, rgba(11, 27, 36, 0.85) 100%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-large {
    grid-row: span 2;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 48px;
    border-radius: var(--radius);
}

.gallery-placeholder p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.gp1 {
    background: linear-gradient(135deg, rgba(15, 40, 25, 0.9), rgba(30, 70, 45, 0.8));
}

.gp2 {
    background: linear-gradient(135deg, rgba(20, 50, 35, 0.9), rgba(40, 80, 55, 0.8));
}

.gp3 {
    background: linear-gradient(135deg, rgba(10, 30, 18, 0.9), rgba(25, 60, 38, 0.8));
}

.gp4 {
    background: linear-gradient(135deg, rgba(18, 45, 30, 0.9), rgba(35, 75, 50, 0.8));
}

.gp5 {
    background: linear-gradient(135deg, rgba(12, 35, 22, 0.9), rgba(28, 65, 42, 0.8));
}

.gallery-links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-gallery {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}

.btn-gallery:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================
   LOCATION
   ========================================== */
.location-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    align-items: start;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.loc-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
}

.loc-info-card.dark {
    background: var(--dark-green);
    color: white;
}

.loc-info-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: #888;
    font-weight: 700;
    margin-bottom: 10px;
}

.loc-info-label.light {
    color: var(--gold);
}

.loc-info-card h4 {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.loc-info-card h4.white {
    color: white;
}

.loc-info-card p {
    font-size: 13px;
    color: #5d6f74;
}

.loc-info-card.dark p {
    color: rgba(255, 255, 255, 0.7);
}

.landmark-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.landmark-list li {
    font-size: 13px;
    color: var(--gold);
    padding-left: 16px;
    position: relative;
}

.landmark-list li::before {
    content: '\25B8';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 10px;
}

.light-p {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 13px;
}

.btn-maps {
    background: var(--gold);
    color: var(--dark-green);
    padding: 16px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    display: block;
    transition: background 0.2s, transform 0.2s;
}

.btn-maps:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

/* ==========================================
   CONTACT
   ========================================== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.contact-card.dark-card {
    background: var(--dark-green);
}

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.pink-bg {
    background: rgba(236, 72, 153, 0.1);
}

.gray-bg {
    background: rgba(100, 116, 139, 0.1);
}

.pin-bg {
    background: rgba(16, 185, 129, 0.15);
}

.contact-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-label.light {
    color: var(--gold);
}

.contact-number {
    display: block;
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 8px;
    transition: opacity 0.2s;
}

.contact-number:hover {
    opacity: 0.8;
}

.contact-number.light {
    color: var(--white);
}

.contact-sub {
    font-size: 13px;
    color: #888;
}

.contact-sub.light {
    color: rgba(255, 255, 255, 0.6);
}

.justdial-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--white);
    border: 1.5px solid rgba(201, 145, 43, 0.3);
    border-radius: 50px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    transition: border-color 0.2s, transform 0.2s;
    max-width: 420px;
    margin: 0 auto;
}

.justdial-banner:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--dark-green);
    position: relative;
    overflow: hidden;
}

.footer-mosque-silhouette {
    display: none;
    width: 100%;
    height: 200px;
    overflow: hidden;
    opacity: 0.6;
}

.footer-mosque-silhouette svg {
    width: 100%;
    height: 100%;
}

/* Islamic star pattern */
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 25px, rgba(255, 255, 255, 0.015) 25px, rgba(255, 255, 255, 0.015) 26px),
        repeating-linear-gradient(-45deg, transparent, transparent 25px, rgba(255, 255, 255, 0.015) 25px, rgba(255, 255, 255, 0.015) 26px);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;
    padding: 48px 24px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(8, 24, 15, 0.92);
    border: 1px solid rgba(201, 145, 43, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.32),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    overflow: hidden;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}

.footer-brand-name {
    font-family: var(--font-brand);
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.02em;
}

.footer-brand-arabic {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.footer-bio {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-kalima {
    display: none;
}

.footer-translation {
    display: none;
}

.footer-col-title {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-contacts p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

.footer-contacts a:hover {
    color: var(--gold);
}

.footer-address {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
}

.footer-bottom {
    display: none;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-blessing {
    display: none;
}

.footer-ext-links {
    display: none;
}

.footer-ext-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.footer-ext-links a:hover {
    color: var(--gold);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

@keyframes admissionsTickerScroll {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {

    .about-grid,
    .edu-card {
        grid-template-columns: 1fr;
    }

    .focus-grid {
        grid-template-columns: 1fr;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .success-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .stream-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-panels {
        grid-template-columns: 1fr 1fr;
    }

    .course-outcome {
        grid-column: span 2;
    }

    .more-grid-4,
    .more-grid-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .more-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-list.two-col {
        column-count: 1;
    }

    .nav-links {
        gap: 14px;
        padding: 6px 12px;
    }

    .nav-links a {
        font-size: 11px;
        letter-spacing: 0.1em;
    }

    .nav-more-btn {
        font-size: 11px;
        letter-spacing: 0.1em;
    }

    .azaan-grid {
        grid-template-columns: 1fr;
    }

    .prayer-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .navbar {
        background: transparent;
    }

    .nav-links {
        background: rgba(5, 6, 7, 0.6);
    }

    .nav-logo {
        background: rgba(5, 6, 7, 0.7);
    }
}

@media (max-width: 768px) {
    .mosque-illustration {
        background-image: image-set(url('assets/hero/masjid-hero-mobile.webp') type('image/webp'),
                url('assets/hero/masjid-hero-mobile.jpg') type('image/jpeg'));
        background-position: center 48%;
        filter: brightness(0.78) saturate(1.08) contrast(1.06);
    }

    .nav-logo {
        width: 42px;
        height: 42px;
        padding: 5px;
    }

    .brand-name {
        font-size: 14px;
    }

    /* nav-links and hamburger styles moved to MOBILE NAVIGATION SIDEBAR MENU block at end of file */



    .facilities-grid,
    .events-grid,
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .course-program {
        padding: 20px;
    }

    .course-head {
        gap: 12px;
    }

    .course-title-row h3 {
        font-size: 30px;
    }

    .course-panels {
        grid-template-columns: 1fr;
    }

    .course-outcome {
        grid-column: auto;
    }

    .admission-tab {
        width: 100%;
    }

    .admission-shell-head {
        padding: 18px;
    }

    .admission-shell-head h3 {
        font-size: 32px;
    }

    .admission-form-grid {
        padding: 18px;
    }

    .admission-grid {
        grid-template-columns: 1fr;
    }

    .admission-brochure-panel {
        grid-template-columns: 1fr;
    }

    .admission-brochure-copy h3 {
        font-size: 34px;
    }

    .admission-brochure-grid {
        grid-template-columns: 1fr;
    }

    .more-grid-2,
    .more-grid-3,
    .more-grid-4,
    .more-grid-5 {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .filter-bar::-webkit-scrollbar {
        height: 6px;
    }

    .filter-bar::-webkit-scrollbar-thumb {
        background: rgba(17, 42, 54, 0.22);
        border-radius: 999px;
    }

    .schedule-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .schedule-time {
        font-size: 12px;
    }

    .more-card h4 {
        font-size: 24px;
    }

    .success-stats .stat-card h4 {
        font-size: 42px;
    }

    .edu-right {
        grid-template-columns: 1fr;
    }

    .prayer-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .gallery-large {
        grid-row: span 1;
    }

    .azaan-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }

    .azaan-photo,
    .azaan-photo.azaan-large,
    .azaan-photo.azaan-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .jumah-banner {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-prayer-bar {
        padding: 16px;
    }

    .bismillah-frame {
        width: 100%;
        max-width: 560px;
        padding: 14px 16px;
    }

    .bismillah {
        font-size: clamp(22px, 6.8vw, 34px);
        line-height: 1.58;
        white-space: normal;
        word-spacing: 0.04em;
    }

    .hero-desc {
        padding: 12px 14px;
        margin-bottom: 28px;
    }

    .section-light,
    .section-dark,
    .section-cream {
        padding: 56px 0;
    }

    .section-header {
        margin-bottom: 28px;
    }

    .success-highlights,
    .stream-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .prayer-cards {
        grid-template-columns: 1fr 1fr;
    }

    .hero-btns {
        flex-direction: column;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding-top: 14px;
    }

    .admissions-ticker {
        margin-bottom: 12px;
        width: min(100%, 96vw);
    }

    .admissions-ticker-group {
        gap: 10px;
        padding: 9px 14px;
        font-size: 10px;
        letter-spacing: 0.08em;
    }

    .admissions-ticker-pill {
        padding: 5px 11px;
        font-size: 10px;
    }

    .hero-title {
        font-size: clamp(24px, 7.4vw, 40px);
        line-height: 1.08;
        letter-spacing: 0.01em;
    }

    .course-title-row h3 {
        font-size: 26px;
    }

    .admission-shell-head h3 {
        font-size: 28px;
    }

    .more-intro-card h3,
    .contact-info-card h3,
    .more-card>h3 {
        font-size: 34px;
    }

    .gallery-visual {
        min-height: 100px;
        font-size: 34px;
    }
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
#toastContainer {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-notification {
    background: linear-gradient(135deg, #0e3d2c, #1a5c3e);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
    max-width: 340px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.toast-notification.toast-show {
    opacity: 1;
    transform: translateY(0);
}

.toast-notification.toast-hide {
    opacity: 0;
    transform: translateY(-10px);
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   ADMIN PANEL STYLES
   ============================================= */

:root {
    --admin-bg: #0b1a20;
    --admin-card: rgba(15, 35, 45, 0.8);
    --admin-border: rgba(197, 168, 124, 0.2);
    --status-pending: #f39c12;
    --status-approved: #27ae60;
    --status-rejected: #e74c3c;
}

.admin-body {
    background: var(--admin-bg);
    color: var(--white);
    min-height: 100vh;
}

/* Login Overlay */
.admin-login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 20, 26, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-card {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    padding: 3rem;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.login-card h2 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.login-card input {
    width: 100%;
    padding: 1rem;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--admin-border);
    color: white;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 4px;
}

/* Dashboard Layout */
.admin-header {
    padding: 6rem 0 2rem;
    background: linear-gradient(to bottom, rgba(15, 35, 45, 1), transparent);
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-box {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-count {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0.5rem 0;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* Data Table */
.admin-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.admin-search {
    flex: 1;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--admin-border);
    border-radius: 0.5rem;
    padding: 0.8rem 1rem;
    color: white;
    outline: none;
    transition: all 0.3s;
}

.admin-search:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

/* Fix for invisible select options */
select.admin-search option {
    background: #0f232d;
    color: white;
    padding: 10px;
}

.admin-table-container {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 1rem;
    overflow-x: auto;
    margin-bottom: 5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.admin-table th,
.admin-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table th {
    background: rgba(197, 168, 124, 0.1);
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.badge-status {
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(243, 156, 18, 0.15);
    color: var(--status-pending);
    border: 1px solid var(--status-pending);
}

.status-approved {
    background: rgba(39, 174, 96, 0.15);
    color: var(--status-approved);
    border: 1px solid var(--status-approved);
}

.status-rejected {
    background: rgba(231, 76, 60, 0.15);
    color: var(--status-rejected);
    border: 1px solid var(--status-rejected);
}

/* Buttons */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 0.4rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--gold);
    color: var(--navy);
}

.btn-delete:hover {
    background: #e74c3c;
    color: white;
}

#exportCsvBtn {
    background: linear-gradient(135deg, var(--gold), #8a6a1f);
    color: var(--navy);
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px rgba(200, 160, 74, 0.3);
}

#exportCsvBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 160, 74, 0.5);
    filter: brightness(1.1);
}

/* Details Modal */
.admin-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.admin-modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 1.5rem;
    overflow-y: auto;
    position: relative;
    padding: 2.5rem;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gold);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.detail-item label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
    opacity: 0.8;
}

.detail-item p {
    font-size: 1.1rem;
    margin: 0;
}

.detail-full {
    grid-column: 1 / -1;
}

.modal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   MOBILE NAVIGATION - SIDEBAR MENU
   ========================================== */
@media (max-width: 768px) {
    .navbar,
    .navbar.scrolled {
        background: linear-gradient(180deg, rgba(5, 11, 16, 0.92), rgba(5, 11, 16, 0.74));
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(10px) saturate(1.05);
        -webkit-backdrop-filter: blur(10px) saturate(1.05);
    }

    /* Show hamburger button */
    .hamburger {
        display: flex !important;
        z-index: 1010;
    }

    /* Nav container layout fix */
    .nav-container {
        padding: 0 16px;
        height: 68px;
    }

    /* Keep top page headings clear of fixed mobile navbar */
    .page-top {
        padding-top: 156px;
    }

    .page-top .section-header {
        margin-top: 6px;
    }

    .nav-brand {
        min-width: 0;
        max-width: calc(100% - 62px);
    }

    .nav-brand-text {
        min-width: 0;
    }

    .brand-name {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 190px;
    }

    .brand-sub {
        font-size: 10px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 190px;
    }

    /* ---- Sidebar panel: always flex but hidden off-screen ---- */
    .nav-links {
        /* Override ALL desktop pill styles */
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        bottom: 0 !important;
        width: 75vw !important;
        max-width: 300px !important;
        height: 100vh !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 72px 0 32px !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        overflow-y: auto !important;
        z-index: 1015 !important;
        list-style: none !important;

        /* Solid dark panel background */
        background: #0b1520 !important;
        border: none !important;
        border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: -16px 0 48px rgba(0, 0, 0, 0.7) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;

        /* Hidden off-screen to the right */
        transform: translate3d(104%, 0, 0) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        will-change: transform, opacity;
        backface-visibility: hidden;
        transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.24s ease-out,
            visibility 0s linear 0.38s !important;
    }

    /* Sidebar open: slide in and make visible */
    .nav-links.open {
        transform: translate3d(0, 0, 0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.24s ease-out,
            visibility 0s !important;
    }

    .nav-close {
        position: fixed;
        top: 18px;
        right: 16px;
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 0;
        background: transparent;
        color: rgba(255, 255, 255, 0.9);
        cursor: pointer;
        z-index: 1022;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px) rotate(-90deg);
        transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.24s ease,
            color 0.2s ease;
    }

    .nav-links.open .nav-close {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) rotate(0deg);
    }

    .nav-close span {
        position: absolute;
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
    }

    .nav-close span:first-child {
        transform: rotate(45deg);
    }

    .nav-close span:last-child {
        transform: rotate(-45deg);
    }

    .nav-close:hover {
        color: var(--nav-gold);
    }

    .nav-close:focus-visible {
        outline: 2px solid var(--nav-gold);
        outline-offset: 1px;
    }

    /* Each nav link item */
    .nav-links > li {
        width: 100%;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 14px 16px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.88);
        text-shadow: none;
        height: auto;
        justify-content: flex-start;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .nav-links a:hover,
    .nav-links a.is-active {
        background: rgba(200, 160, 74, 0.12);
        color: var(--nav-gold);
    }

    .nav-links a::before,
    .nav-links a::after {
        content: none !important;
        display: none !important;
    }

    /* More dropdown section */
    .nav-more {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        height: auto;
    }

    .nav-more-btn {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 14px 16px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.88);
        text-shadow: none;
        height: auto;
        justify-content: space-between;
        cursor: pointer;
    }

    .nav-more-btn::before,
    .nav-more-btn::after {
        content: none !important;
        display: none !important;
    }

    .nav-more-btn:hover {
        background: rgba(200, 160, 74, 0.12);
        color: var(--nav-gold);
    }

    /* Dropdown inside sidebar */
    .nav-dropdown {
        position: static;
        transform: none;
        min-width: unset;
        width: 100%;
        padding: 4px 0 4px 12px;
        margin-top: 0;
        border-radius: 0;
        background: transparent;
        border: none;
        border-left: 2px solid rgba(200, 160, 74, 0.3);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, max-height 0.35s ease;
    }

    /* Show dropdown only when explicitly toggled open */
    .nav-more.open .nav-dropdown {
        opacity: 1;
        max-height: 600px;
        pointer-events: auto;
        transform: none;
    }

    .nav-dropdown a {
        padding: 10px 16px;
        font-size: 12px;
        text-transform: none;
        letter-spacing: 0.02em;
        color: rgba(255, 255, 255, 0.78);
        border-radius: 8px;
    }

    .nav-dropdown a:hover,
    .nav-dropdown a:focus-visible {
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.98);
    }

    /* Light mode overrides for mobile sidebar - keep dark */
    .navbar.nav-light .nav-links {
        background: rgba(8, 14, 20, 0.97);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
    }

    .navbar.nav-light .nav-links a,
    .navbar.nav-light .nav-more-btn {
        color: rgba(255, 255, 255, 0.88);
        text-shadow: none;
    }

    .navbar.nav-light .nav-links a:hover,
    .navbar.nav-light .nav-links a.is-active,
    .navbar.nav-light .nav-more-btn:hover {
        background: rgba(200, 160, 74, 0.12);
        color: var(--nav-gold);
    }

    .navbar.nav-light .nav-dropdown {
        background: transparent;
        border-color: rgba(200, 160, 74, 0.3);
        box-shadow: none;
    }

    .navbar.nav-light .nav-dropdown a {
        color: rgba(255, 255, 255, 0.78);
    }

    .navbar.nav-light .nav-dropdown a:hover {
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.98);
    }

    .navbar.nav-light .brand-name {
        color: var(--white);
        text-shadow: 0 0 12px rgba(0, 0, 0, 0.55);
    }

    .navbar.nav-light .brand-sub {
        color: var(--nav-gold);
    }

    .navbar.nav-light .nav-logo {
        background: rgba(7, 8, 10, 0.72);
        border-color: var(--glass-border);
        box-shadow:
            0 8px 18px rgba(0, 0, 0, 0.38),
            inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    }

    /* Hamburger light mode */
    .navbar.nav-light .hamburger span {
        background: var(--white);
    }
}

@media (max-width: 420px) {
    .nav-container {
        height: 64px;
    }

    .page-top {
        padding-top: 148px;
    }

    .brand-sub {
        display: none;
    }

    .brand-name {
        font-size: 14px;
        max-width: 210px;
    }
}

/* Sidebar overlay backdrop */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.56);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: opacity;
    transition: opacity 0.24s ease-out, visibility 0s linear 0.24s;
}

.nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.24s ease-out, visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
    .admissions-ticker-track {
        animation: none;
        transform: none;
    }

    .admissions-ticker::before,
    .admissions-ticker::after {
        display: none;
    }
}

/* ==========================================
   EXPLICITLY HIDDEN PAGES (MODERATION)
   ========================================== */
a[href*='/teachers/'],
a[href*='/school-timings/'],
a[href*='/namaz-timings/'],
a[href*='/events/'],
a[href*='/games/'],
a[href*='/student-success/'],
a[href*='/notice-board/'] {
    display: none !important;
}


/* Intermediate Form Specific Styles */
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-dark); font-weight: 500; cursor: pointer; }
.checkbox-item input[type='checkbox'] { width: 17px; height: 17px; cursor: pointer; }
.group-options-box { border: 1px dashed rgba(var(--gold-rgb), 0.3); }
.radio-item input[type='radio'] { width: 17px; height: 17px; cursor: pointer; }
