/* ============================================
   LUXE EMERALD v2 — Premium Islamic Institution Theme
   Design: Ultra-premium, luxurious, light theme
   Framework: Bootstrap 5.3.3
   ============================================ */

/* ============================================
   1. CSS VARIABLES — Design Token System
   ============================================ */
:root {
    /* ── Primary: Islamic Green ── */
    --primary: #0A6E42;
    --primary-dark: #085A36;
    --primary-darker: #064828;
    --primary-deep: #032E18;
    --primary-light: #E6F4EC;
    --primary-50: #F2FAF5;
    --primary-100: #D6F0DF;
    --primary-200: #B0E1C2;
    --primary-300: #7BCD9E;

    /* ── Accent: Champagne Gold ── */
    --accent: #C5982C;
    --accent-light: #F5ECD3;
    --accent-lighter: #FAF5E8;
    --accent-dark: #A37E22;
    --accent-glow: rgba(197, 152, 44, 0.35);

    /* ── Text ── */
    --text-dark: #1A2520;
    --text-body: #3A4742;
    --text-muted: #6E7D76;
    --text-light: #99A8A0;

    /* ── Backgrounds ── */
    --bg-body: #F7F6F2;
    --bg-warm: #F5F3EE;
    --bg-cream: #FAF9F5;
    --bg-linen: #FEFEFD;
    --bg-soft: #EDEBE6;
    --bg-white: #FFFFFF;

    /* ── Borders ── */
    --border: #D8DDD9;
    --border-light: #E8ECE9;
    --border-warm: #E5E1D8;

    /* ── Shadows (warm-toned) ── */
    --shadow-xs: 0 1px 3px rgba(26,37,32,0.04);
    --shadow-sm: 0 2px 8px rgba(26,37,32,0.06);
    --shadow-md: 0 4px 20px rgba(26,37,32,0.08);
    --shadow-lg: 0 8px 40px rgba(26,37,32,0.10);
    --shadow-xl: 0 20px 60px rgba(26,37,32,0.12);
    --shadow-gold: 0 4px 24px rgba(197,152,44,0.25);
    --shadow-green: 0 4px 24px rgba(10,110,66,0.20);

    /* ── Radius ── */
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* ── Typography ── */
    --font-bn: 'Noto Serif Bengali', 'Hind Siliguri', sans-serif;
    --font-en: 'Inter', sans-serif;
    --font-ar: 'Amiri', serif;
    --font-display: 'Playfair Display', 'Noto Serif Bengali', serif;

    /* ── Transitions ── */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: all 0.35s var(--ease-out);
    --transition-fast: all 0.2s var(--ease-out);
    --transition-slow: all 0.6s var(--ease-out);

    /* ── Glassmorphism ── */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: blur(16px);

    /* ── Islamic Geometric Pattern (Subtle SVG) ── */
    --pattern-diamond: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M40 0l40 40-40 40L0 40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --pattern-star: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230A6E42' fill-opacity='0.015'%3E%3Cpath d='M30 0l7.5 22.5H60l-18.75 13.5L48.75 60 30 46.5 11.25 60l7.5-24L0 22.5h22.5z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --pattern-hex: url("data:image/svg+xml,%3Csvg width='52' height='90' viewBox='0 0 52 90' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230A6E42' fill-opacity='0.02'%3E%3Cpath d='M26 0l26 15v30L26 60 0 45V15z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}


/* ============================================
   2. GLOBAL RESET & BASE
   ============================================ */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-bn);
    color: var(--text-body);
    background: var(--bg-body);
    line-height: 1.85;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--primary);
    color: #fff;
}

/* Smooth focus outlines for accessibility */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Site main wrapper */
.site-main {
    position: relative;
    z-index: 1;
}


/* ============================================
   3. UTILITY CLASSES
   ============================================ */
.section-padding {
    padding: 90px 0;
    position: relative;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-align: center;
    font-family: var(--font-bn);
    letter-spacing: -0.01em;
}

.section-title-icon {
    color: var(--accent);
    font-size: 0.85em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.08rem;
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.section-divider {
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    margin: 14px auto 22px;
    border-radius: 3px;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 9px;
    height: 9px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--bg-body);
}

.section-divider-left {
    margin-left: 0;
}

.bg-light-section {
    background: var(--bg-warm);
}

.bg-cream-section {
    background: var(--bg-cream);
}

.bg-linen-section {
    background: var(--bg-linen);
}

.bg-warm-section {
    background: var(--bg-warm);
}

/* ── Section Tag (small label above section titles) ── */
.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-family: var(--font-en);
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.section-tag.revealed::before {
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

/* ── Event List Items (compact event rows) ── */
.event-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--text-body);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.event-list-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-200);
    color: var(--primary);
}

.event-list-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    min-width: 56px;
    flex-shrink: 0;
    box-shadow: var(--shadow-green);
}

.event-list-date .event-day {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-en);
}

.event-list-date .event-month {
    font-size: 0.68rem;
    font-weight: 600;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-list-info {
    flex: 1;
    min-width: 0;
}

.event-list-info h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.4;
    transition: color 0.35s ease;
}

.event-list-item:hover .event-list-info h6 {
    color: var(--primary);
}

.event-list-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.event-list-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.event-list-meta i {
    font-size: 0.7rem;
    color: var(--primary);
}

.event-list-arrow {
    color: var(--text-light);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.35s ease;
}

.event-list-item:hover .event-list-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

.events-list {
    display: flex;
    flex-direction: column;
}

.section-ornament {
    text-align: center;
    margin: 0 auto 30px;
    color: var(--accent);
    font-size: 1.3rem;
    opacity: 0.6;
}

/* ── Fade-in Animation ── */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }
.fade-in.delay-5 { transition-delay: 0.5s; }

/* Subtle section pattern overlays */
.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.pattern-overlay.diamond {
    background-image: var(--pattern-diamond);
}

.pattern-overlay.star {
    background-image: var(--pattern-star);
}

.pattern-overlay.hex {
    background-image: var(--pattern-hex);
}

/* Gradient top/bottom edges for sections */
.section-top-edge {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    z-index: 2;
}


/* ============================================
   4. TOP INFO BAR
   ============================================ */
.top-bar {
    background: linear-gradient(90deg, var(--primary-deep) 0%, var(--primary-darker) 100%);
    color: rgba(255,255,255,0.88);
    padding: 8px 0;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1060;
}

.top-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.top-bar i {
    margin-right: 5px;
    font-size: 0.78rem;
}

.top-bar a {
    color: rgba(255,255,255,0.88);
}

.top-bar a:hover {
    color: var(--accent-light);
}

.top-bar-left span {
    display: inline-flex;
    align-items: center;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-admin-login {
    background: rgba(255,255,255,0.1);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.76rem;
    border: 1px solid rgba(255,255,255,0.15);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
}

.btn-admin-login:hover {
    background: var(--accent);
    color: var(--primary-darker);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}


/* ============================================
   5. SITE HEADER / NAVBAR
   ============================================ */
#mainNavbar {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 1px 0 var(--border-light);
    padding: 0;
    transition: var(--transition-slow);
    z-index: 1050;
    border-bottom: 1px solid var(--glass-border);
}

#mainNavbar.scrolled {
    padding: 0;
    box-shadow: 0 4px 30px rgba(26,37,32,0.08);
    background: rgba(255,255,255,0.95);
}

#mainNavbar.navbar-transparent {
    background: transparent;
    box-shadow: none;
    border-bottom: none;
}

#mainNavbar.navbar-transparent.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 4px 30px rgba(26,37,32,0.08);
    border-bottom: 1px solid var(--glass-border);
}

#mainNavbar.navbar-transparent .nav-link {
    color: rgba(255,255,255,0.92) !important;
}

#mainNavbar.navbar-transparent .nav-link:hover,
#mainNavbar.navbar-transparent .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.15);
}

#mainNavbar.navbar-transparent .navbar-brand {
    color: #fff !important;
}

#mainNavbar.navbar-transparent .brand-address {
    color: rgba(255,255,255,0.7);
}

#mainNavbar.navbar-transparent .navbar-toggler {
    color: #fff;
}

/* Premium Brand Row */
.premium-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 10px;
    border-bottom: 1px solid var(--border-light);
    gap: 20px;
}

.premium-brand-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-kicker {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    font-weight: 600;
    font-family: var(--font-en);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.brand-kicker i {
    font-size: 0.6rem;
}

.brand-main-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    font-family: var(--font-bn);
    transition: var(--transition);
}

.brand-main-name:hover {
    color: var(--primary);
}

.brand-main-name-en {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: right;
}

.brand-address-line {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.brand-address-line i {
    font-size: 0.68rem;
    color: var(--primary);
}

.premium-brand-bn {
    flex: 1;
}

.premium-brand-en {
    flex: 1;
    align-items: flex-end;
    text-align: right;
}

.premium-logo-center {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-center-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 16px;
    transition: var(--transition);
    filter: drop-shadow(0 4px 12px rgba(10,110,66,0.15));
}

.premium-center-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 20px rgba(10,110,66,0.25));
}

.premium-center-logo.logo-fallback {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-green);
}

/* Mobile Toggler */
.premium-mobile-toggler {
    background: none;
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 6px 10px;
    color: var(--primary);
    font-size: 1.4rem;
    transition: var(--transition);
    display: none;
}

.premium-mobile-toggler:hover {
    background: var(--primary);
    color: #fff;
}

/* Premium Menu */
.premium-menu-wrap {
    padding: 4px 0 8px;
}

.premium-navbar {
    gap: 2px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 550;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.9rem;
    white-space: nowrap;
    position: relative;
    letter-spacing: 0.01em;
}

.nav-link i {
    margin-right: 4px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary) !important;
    background: var(--primary-50);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light);
    font-weight: 600;
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar-toggler {
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}


/* ============================================
   6. HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
}

.hero-static,
.hero-slide {
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-darker) 25%, var(--primary-dark) 50%, var(--primary) 80%, var(--primary-300) 100%);
    color: #fff;
    padding: 100px 0 90px;
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    min-height: 560px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(3,46,24,0.93) 0%,
        rgba(6,72,40,0.88) 25%,
        rgba(8,90,54,0.82) 50%,
        rgba(10,110,66,0.75) 80%,
        rgba(123,205,158,0.3) 100%);
    z-index: 1;
}

.hero-static::before,
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(197,152,44,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%),
        var(--pattern-diamond);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-islamic-greeting {
    font-family: var(--font-ar);
    font-size: 1.5rem;
    color: var(--accent-light);
    margin-bottom: 1.2rem;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
    display: inline-block;
}

.hero-islamic-greeting::before,
.hero-islamic-greeting::after {
    content: '✦';
    font-size: 0.5rem;
    vertical-align: middle;
    margin: 0 8px;
    opacity: 0.6;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.25;
    text-shadow: 0 3px 8px rgba(0,0,0,0.25);
    font-family: var(--font-bn);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.12rem;
    opacity: 0.92;
    margin-bottom: 2.2rem;
    max-width: 560px;
    line-height: 1.85;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 650;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-bn);
    letter-spacing: 0.02em;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 20px rgba(197,152,44,0.35);
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, #d4a843, var(--accent));
    border-color: #d4a843;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(197,152,44,0.45);
}

.btn-hero-outline {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
    transform: translateY(-3px);
}

.hero-image-wrap {
    text-align: center;
    position: relative;
    z-index: 3;
}

.hero-image {
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    max-height: 400px;
    object-fit: cover;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-body);
    clip-path: polygon(0 65%, 100% 0, 100% 100%, 0% 100%);
    z-index: 4;
}

/* Carousel controls */
.hero-section .carousel-indicators {
    bottom: 80px;
    z-index: 5;
}

.hero-section .carousel-indicators button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    background: transparent;
    opacity: 1;
    transition: var(--transition);
}

.hero-section .carousel-indicators button.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(197,152,44,0.5);
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    z-index: 5;
    width: 54px;
    height: 54px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    margin: 0 15px;
    opacity: 0;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.15);
}

.hero-section:hover .carousel-control-prev,
.hero-section:hover .carousel-control-next {
    opacity: 1;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.08);
}


/* ============================================
   7. NEWS TICKER
   ============================================ */
.premium-ticker-section {
    background: var(--bg-cream);
    padding: 14px 0;
    border-bottom: 1px solid var(--border-warm);
    position: relative;
    z-index: 10;
}

.premium-ticker-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticker-lane {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticker-label {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.ticker-label i {
    font-size: 0.68rem;
}

.event-lane .ticker-label {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.ticker-track-wrap {
    overflow: hidden;
    flex: 1;
    position: relative;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.ticker-track {
    display: flex;
    gap: 30px;
    animation: tickerScroll 40s linear infinite;
    white-space: nowrap;
}

.ticker-track-reverse {
    animation: tickerScrollReverse 45s linear infinite;
}

.ticker-item {
    color: var(--text-body);
    font-size: 0.84rem;
    font-weight: 500;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.ticker-item:hover {
    color: var(--primary);
}

.ticker-item::before {
    content: '◆';
    font-size: 0.4rem;
    margin-right: 10px;
    color: var(--accent);
    vertical-align: middle;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes tickerScrollReverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}


/* ============================================
   8. COUNTER / STATS SECTION
   ============================================ */
.counter-section {
    background: var(--bg-linen);
    padding: 50px 0;
    margin-top: -30px;
    position: relative;
    z-index: 5;
}

.counter-card {
    text-align: center;
    padding: 30px 18px;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.counter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.counter-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.counter-card:hover::before {
    opacity: 1;
}

.counter-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    transition: var(--transition);
}

.counter-card:hover .counter-icon {
    transform: scale(1.1);
}

.counter-icon.green   { background: var(--primary-light); color: var(--primary); }
.counter-icon.gold    { background: var(--accent-light); color: var(--accent); }
.counter-icon.blue    { background: #E0ECFF; color: #3366CC; }
.counter-icon.emerald { background: #D4F5E5; color: #059669; }

.counter-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 6px;
    font-family: var(--font-en);
    letter-spacing: -0.02em;
}

.counter-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}


/* ============================================
   9. DEPARTMENT CARDS
   ============================================ */
.dept-home-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 18px;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-body);
    position: relative;
    overflow: hidden;
}

.dept-home-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
}

.dept-home-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
    color: var(--primary);
}

.dept-home-card:hover::before {
    transform: scaleX(1);
}

.dept-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 12px;
    transition: var(--transition);
}

.dept-home-card:hover .dept-card-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: var(--shadow-green);
}

.dept-home-card h6 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    transition: var(--transition);
}

.dept-home-card:hover h6 {
    color: var(--primary);
}

.dept-meta-badge {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: var(--bg-warm);
    padding: 2px 10px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}


/* ============================================
   10. NOTICE CARDS
   ============================================ */
.notice-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.notice-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.notice-card-image {
    height: 210px;
    overflow: hidden;
    position: relative;
}

.notice-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.notice-card:hover .notice-card-image img {
    transform: scale(1.06);
}

.notice-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.notice-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.notice-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-50);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 600;
}

.notice-type-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notice-type-badge.urgent    { background: #FEE2E2; color: #DC2626; }
.notice-type-badge.exam      { background: #E0ECFF; color: #3366CC; }
.notice-type-badge.holiday   { background: var(--accent-light); color: var(--accent-dark); }
.notice-type-badge.admission { background: var(--primary-light); color: var(--primary); }

.notice-card-title {
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.55;
}

.notice-card-title a {
    color: var(--text-dark);
}

.notice-card-title a:hover {
    color: var(--primary);
}

.notice-card-excerpt {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
    flex: 1;
}

.notice-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    transition: var(--transition);
}

.notice-read-more:hover {
    color: var(--primary-dark);
    gap: 10px;
}


/* ============================================
   11. EVENT CARDS
   ============================================ */
.event-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.event-card-image {
    height: 185px;
    overflow: hidden;
    position: relative;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.event-card:hover .event-card-image img {
    transform: scale(1.06);
}

.event-card-image-placeholder {
    background: linear-gradient(135deg, var(--primary-50), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.2;
}

.event-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.event-status-badge.upcoming { background: rgba(220,252,231,0.9); color: #166534; }
.event-status-badge.past     { background: rgba(254,226,226,0.9); color: #991B1B; }

.event-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    margin-bottom: 14px;
    width: fit-content;
    box-shadow: var(--shadow-green);
}

.event-day {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-en);
}

.event-month {
    font-size: 0.76rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.5;
}

.event-card-title a {
    color: var(--text-dark);
}

.event-card-title a:hover {
    color: var(--primary);
}

.event-card-excerpt {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    flex: 1;
}

.event-card-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.event-card-info i {
    color: var(--primary);
    margin-right: 5px;
}

.event-card-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.event-card-time i {
    color: var(--primary);
    margin-right: 5px;
}

.event-card-venue {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.event-card-venue i {
    color: var(--accent);
    margin-right: 5px;
}

.event-upcoming {
    border-left: 3px solid var(--primary);
}

.event-past {
    border-left: 3px solid var(--text-light);
    opacity: 0.85;
}


/* ============================================
   12. PRINCIPAL SECTION
   ============================================ */
.principal-photo-wrap {
    text-align: center;
    padding: 20px;
}

.principal-photo {
    width: 230px;
    height: 230px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-light);
    box-shadow: 0 0 0 8px rgba(10,110,66,0.08), var(--shadow-lg);
    transition: var(--transition);
}

.principal-photo:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 8px rgba(10,110,66,0.15), var(--shadow-xl);
    transform: scale(1.03);
}

.principal-photo-placeholder {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-50));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.25;
    margin: 0 auto;
}

.principal-message {
    position: relative;
    padding: 25px 35px;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.principal-quote-icon {
    font-size: 4.5rem;
    color: var(--primary-100);
    position: absolute;
    top: -5px;
    left: 10px;
    line-height: 1;
}

.principal-text {
    font-size: 1.06rem;
    line-height: 1.95;
    color: var(--text-body);
}

.principal-name {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 2px solid var(--primary-light);
}

.principal-name strong {
    display: block;
    font-size: 1.12rem;
    color: var(--primary-dark);
}

.principal-name span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.principal-sidebar-card {
    background: var(--bg-warm);
    border-radius: var(--radius);
    padding: 22px;
}

.principal-sidebar-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-light);
}

.principal-sidebar-text {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-body);
}

.principal-sidebar-name {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--primary-dark);
}


/* ============================================
   13. ABOUT SECTION
   ============================================ */
.about-brief-text {
    font-size: 1.06rem;
    line-height: 1.95;
    color: var(--text-body);
}

.about-features-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-feature-item {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.about-feature-item:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.about-feature-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.about-feature-item:hover .about-feature-icon {
    background: var(--primary);
    color: #fff;
}

.about-feature-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.about-feature-item p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* About page specific */
.about-content-wrap {
    margin-bottom: 30px;
}

.content-heading {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.about-text {
    font-size: 1.06rem;
    line-height: 1.95;
    color: var(--text-body);
}

.about-highlight {
    background: var(--primary-50);
    border-left: 4px solid var(--primary);
    padding: 22px 28px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 28px 0;
    line-height: 1.85;
}


/* ============================================
   14. QUICK LINK CARDS
   ============================================ */
.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px 22px;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-body);
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-50), transparent);
    opacity: 0;
    transition: var(--transition);
}

.quick-link-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
    color: var(--primary);
}

.quick-link-card:hover::before {
    opacity: 1;
}

.quick-link-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 16px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.quick-link-card:hover .quick-link-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.12);
    box-shadow: var(--shadow-green);
}

.quick-link-card h5 {
    margin-bottom: 5px;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.quick-link-card:hover h5 {
    color: var(--primary);
}

.quick-link-card p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}


/* ============================================
   15. FEATURE CARDS
   ============================================ */
.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.7rem;
    background: var(--primary-light);
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}


/* ============================================
   16. ADMISSION CTA
   ============================================ */
.admission-cta-section {
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-dark) 40%, var(--primary) 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.admission-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(197,152,44,0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%),
        var(--pattern-diamond);
    z-index: 0;
}

.admission-cta-section > .container {
    position: relative;
    z-index: 1;
}

.admission-cta-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: var(--font-bn);
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.admission-cta-title i {
    color: var(--accent-light);
}

.admission-cta-text {
    font-size: 1.15rem;
    opacity: 0.92;
    margin-bottom: 2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.admission-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 650;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font-bn);
}

.admission-cta-btn.btn-gold {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 24px rgba(197,152,44,0.4);
}

.admission-cta-btn.btn-gold:hover {
    background: linear-gradient(135deg, #d4a843, var(--accent));
    border-color: #d4a843;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(197,152,44,0.5);
}

.admission-cta-btn.btn-outline-white {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.45);
    backdrop-filter: blur(8px);
}

.admission-cta-btn.btn-outline-white:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.75);
    color: #fff;
    transform: translateY(-3px);
}


/* ============================================
   17. PAGE BANNER
   ============================================ */
.page-banner {
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-dark) 30%, var(--primary) 70%, var(--primary-300) 100%);
    color: #fff;
    padding: 55px 0 45px;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 90%, rgba(197,152,44,0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(255,255,255,0.04) 0%, transparent 50%),
        var(--pattern-diamond);
    z-index: 1;
}

.page-banner > .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-family: var(--font-bn);
    letter-spacing: -0.01em;
}

.page-banner h1 i {
    color: var(--accent-light);
    font-size: 0.85em;
}

.page-banner p {
    font-size: 1.05rem;
    opacity: 0.88;
    margin-bottom: 0;
}

.page-banner .breadcrumb {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 8px 18px;
    display: inline-flex;
    margin-bottom: 0;
    border: 1px solid rgba(255,255,255,0.12);
}

.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
}

.page-banner .breadcrumb-item a:hover {
    color: #fff;
}

.page-banner .breadcrumb-item.active {
    color: var(--accent-light);
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

/* Shaped bottom edge */
.page-banner::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 30px;
    background: var(--bg-body);
    clip-path: polygon(0 60%, 100% 0, 100% 100%, 0% 100%);
    z-index: 3;
}


/* ============================================
   18. SIDEBAR STYLES
   ============================================ */
.sidebar-info {
    background: var(--bg-cream);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border-warm);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
}

.sidebar-title i {
    color: var(--accent);
}

.info-card {
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-sm);
}

.info-card-label {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-card-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
}

.sidebar-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-link-list li {
    border-bottom: 1px solid var(--border-light);
}

.sidebar-link-list li:last-child {
    border-bottom: none;
}

.sidebar-link-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 4px;
    color: var(--text-body);
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-link-list a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.sidebar-link-list a i {
    color: var(--primary);
    font-size: 0.7rem;
}


/* ============================================
   19. TEACHER CARDS
   ============================================ */
.teacher-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.45s var(--ease-out);
    height: 100%;
    text-align: center;
    padding: 28px 22px;
    position: relative;
}

.teacher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.45s var(--ease-out);
    border-radius: 4px 4px 0 0;
}

.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.teacher-card:hover::before {
    transform: scaleX(1);
}

.teacher-card .teacher-photo-wrap {
    margin-bottom: 16px;
}

.teacher-card .teacher-photo-wrap img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-light);
    transition: all 0.45s var(--ease-out);
    box-shadow: var(--shadow-sm);
}

.teacher-card:hover .teacher-photo-wrap img {
    border-color: var(--primary);
    transform: scale(1.06);
    box-shadow: 0 0 0 6px rgba(10,110,66,0.1), var(--shadow-md);
}

.teacher-card .teacher-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-50));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.25;
    margin: 0 auto;
    transition: all 0.45s var(--ease-out);
}

.teacher-card:hover .teacher-photo-placeholder {
    opacity: 0.4;
    transform: scale(1.06);
}

.teacher-card .teacher-info {
    padding: 0;
}

.teacher-card .teacher-name {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    transition: color 0.35s var(--ease-out);
}

.teacher-card:hover .teacher-name {
    color: var(--primary);
}

.teacher-card .teacher-designation {
    font-size: 0.88rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2px;
}

.teacher-col {
    transition: opacity 0.35s ease;
}

.teacher-col.hidden {
    display: none;
}


/* ============================================
   20. GALLERY GRID
   ============================================ */
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-warm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-thumb-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg-warm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-thumb-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.gallery-thumb-item:hover img {
    transform: scale(1.06);
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-thumb-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    z-index: 2;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-placeholder i {
    font-size: 2rem;
    color: var(--text-light);
    opacity: 0.3;
}

.gallery-video-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    background: #000;
}

.gallery-video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

/* Gallery category filter pills */
.gallery-filter-pill {
    border-radius: 50px;
    padding: 6px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.gallery-filter-pill.active {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}


/* ============================================
   21. CONTACT FORM
   ============================================ */
.contact-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
}

.contact-card h4 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
}

.contact-section {
    padding: 3rem 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-50));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.info-item:hover .info-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08);
}

.info-text h6 {
    margin: 0 0 0.2rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.info-text p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.info-text a {
    color: var(--primary);
    text-decoration: none;
}

.info-text a:hover {
    text-decoration: underline;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.btn-contact {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-contact:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-deep));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

/* Form floating overrides for premium look */
.contact-card .form-floating > .form-control {
    border-radius: var(--radius-sm);
    border-color: var(--border);
    transition: var(--transition);
}

.contact-card .form-floating > .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(10,110,66,0.15);
}

.contact-card .form-floating > label {
    color: var(--text-muted);
}


/* ============================================
   22. RESULT SECTION
   ============================================ */
.result-section {
    padding: 3rem 0;
}

.search-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 2rem;
    transition: var(--transition);
}

.search-card:hover {
    box-shadow: var(--shadow-md);
}

.search-card h4 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
}

.btn-search {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.65rem 2rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-search:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-deep));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.result-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
}

.result-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.result-header img {
    width: 70px;
    height: 85px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255,255,255,0.3);
}

.result-student-name {
    font-size: 1.3rem;
    font-weight: 700;
}

.result-meta {
    font-size: 0.88rem;
    opacity: 0.9;
}

.result-body {
    padding: 1.5rem;
}

.marks-table {
    width: 100%;
    border-collapse: collapse;
}

.marks-table th,
.marks-table td {
    border: 1px solid var(--border);
    padding: 8px 10px;
    text-align: center;
    font-size: 0.88rem;
}

.marks-table th {
    background: var(--bg-warm);
    font-weight: 700;
    color: var(--primary-dark);
}

.marks-table td.text-start {
    text-align: left !important;
    padding-left: 12px;
}

.marks-table tbody tr:hover {
    background: var(--primary-50);
}

.gpa-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: var(--radius-sm);
}

.gpa-box.pass {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: 2px solid #22c55e;
}

.gpa-box.fail {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 2px solid #ef4444;
}

.gpa-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.gpa-box.pass .gpa-value {
    color: #166534;
}

.gpa-box.fail .gpa-value {
    color: #991b1b;
}

.gpa-label {
    font-size: 0.82rem;
    font-weight: 600;
}

.exam-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.exam-btn {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-body);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.exam-btn:hover,
.exam-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    text-decoration: none;
}

.not-found-box {
    text-align: center;
    padding: 3rem;
}

.not-found-box i {
    font-size: 4rem;
    color: var(--text-light);
    opacity: 0.4;
}

/* Print styles */
@media print {
    .site-nav,
    .top-bar,
    .site-header,
    .site-footer,
    .page-banner,
    .search-card,
    .no-print {
        display: none !important;
    }
    body {
        background: #fff;
    }
    .result-card {
        box-shadow: none;
        border: 1px solid #000;
    }
    .result-header {
        background: #fff !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}


/* ============================================
   23. FOOTER
   ============================================ */
.site-footer {
    background: linear-gradient(180deg, var(--primary-deep) 0%, #021A0F 100%);
    color: rgba(255,255,255,0.82);
    padding-top: 60px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary), var(--accent));
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 12px;
}

.footer-brand i {
    font-size: 2rem;
    color: var(--accent);
}

.footer-brand span {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-bn);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.65);
    margin-bottom: 8px;
}

.footer-desc i {
    color: var(--accent);
    margin-right: 4px;
}

.footer-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(197,152,44,0.3);
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.footer-links a i {
    font-size: 0.65rem;
    color: var(--accent);
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-links a:hover i {
    color: var(--accent-light);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.footer-contact li i {
    color: var(--accent);
    margin-top: 3px;
    font-size: 0.92rem;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
}

.footer-contact a:hover {
    color: var(--accent-light);
}

.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: var(--transition);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
}

.social-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.social-btn.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    box-shadow: 0 4px 16px rgba(24,119,242,0.35);
}

.social-btn.youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
    box-shadow: 0 4px 16px rgba(255,0,0,0.35);
}

.social-btn.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}

.footer-map {
    padding-top: 40px;
}

.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.footer-bottom {
    margin-top: 40px;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.84rem;
    color: rgba(255,255,255,0.5);
}

.footer-custom-text {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.5);
}


/* ============================================
   24. FLOATING ELEMENTS
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(37,211,102,0.55);
    color: #fff;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6), 0 0 0 8px rgba(37,211,102,0.15); }
}

.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 94px;
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: var(--shadow-green);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(10,110,66,0.35);
}


/* ============================================
   25. BUTTONS
   ============================================ */
.btn-gold {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border: 2px solid var(--accent);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 650;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-bn);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #d4a843, var(--accent));
    border-color: #d4a843;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-outline-gold {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 650;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-bn);
}

.btn-outline-gold:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-emerald {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: 2px solid var(--primary);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 650;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-bn);
}

.btn-emerald:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-deep));
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.btn-outline-emerald {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 650;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-bn);
}

.btn-outline-emerald:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

/* Premium Bootstrap button overrides */
.btn-success {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    font-weight: 600;
    transition: var(--transition);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-deep)) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.btn-outline-success {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-success:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}


/* ============================================
   26. PAGINATION
   ============================================ */
.pagination {
    gap: 6px;
}

.pagination .page-link {
    border: 1px solid var(--border);
    color: var(--text-body);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 0.88rem;
    transition: var(--transition);
    background: var(--bg-white);
}

.pagination .page-link:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
    color: var(--primary);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-green);
}

.pagination .page-item.disabled .page-link {
    background: var(--bg-warm);
    border-color: var(--border-light);
    color: var(--text-light);
    opacity: 0.7;
}

.pagination .page-link[aria-label] {
    font-size: 0.8rem;
}


/* ============================================
   27. ANIMATIONS
   ============================================ */
/* Fade in up (primary entrance) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide up */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Counter pulse */
@keyframes counterPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

/* Shimmer loading */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Gold glow pulse */
@keyframes goldGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(197,152,44,0); }
    50% { box-shadow: 0 0 20px 4px rgba(197,152,44,0.15); }
}

/* Gentle float */
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Scale in */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animate counter numbers */
.counter-number.counting {
    animation: counterPulse 0.6s var(--ease-out);
}

/* Section entrance animation trigger */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   28. RESPONSIVE — TABLET & MOBILE
   ============================================ */

/* ── Tablet (max-width: 991.98px) ── */
@media (max-width: 991.98px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-static,
    .hero-slide {
        min-height: 420px;
        padding: 70px 0 80px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-islamic-greeting {
        font-size: 1.2rem;
    }

    .hero-shape {
        height: 40px;
    }

    .counter-section {
        margin-top: -20px;
        padding: 35px 0;
    }

    .counter-number {
        font-size: 2.2rem;
    }

    .admission-cta-title {
        font-size: 1.8rem;
    }

    .admission-cta-section {
        padding: 60px 0;
    }

    .page-banner {
        padding: 40px 0 35px;
    }

    .page-banner h1 {
        font-size: 1.8rem;
    }

    .premium-brand-row {
        padding: 10px 0 8px;
        gap: 12px;
    }

    .brand-main-name {
        font-size: 1rem;
    }

    .premium-center-logo {
        width: 56px;
        height: 56px;
    }

    .principal-photo {
        width: 180px;
        height: 180px;
    }

    .principal-message {
        padding: 20px 24px;
    }

    /* Mobile nav toggler visibility */
    .premium-mobile-toggler {
        display: flex;
    }

    .premium-menu-wrap .navbar-collapse {
        padding: 10px 0;
    }

    .premium-navbar {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        padding: 10px 16px !important;
        border-radius: 8px;
        font-size: 0.92rem;
    }

    .nav-link::after {
        display: none;
    }

    .footer-map {
        padding-top: 30px;
    }
}

/* ── Mobile (max-width: 575.98px) ── */
@media (max-width: 575.98px) {
    .section-padding {
        padding: 45px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }

    .section-divider {
        width: 50px;
    }

    .hero-static,
    .hero-slide {
        min-height: 340px;
        padding: 50px 0 60px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-islamic-greeting {
        font-size: 1rem;
    }

    .hero-subtitle {
        font-size: 0.98rem;
        margin-bottom: 1.5rem;
    }

    .btn-hero {
        padding: 12px 24px;
        font-size: 0.88rem;
    }

    .counter-section {
        margin-top: -15px;
        padding: 25px 0;
    }

    .counter-card {
        padding: 20px 12px;
    }

    .counter-number {
        font-size: 2rem;
    }

    .counter-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .admission-cta-section {
        padding: 45px 0;
    }

    .admission-cta-title {
        font-size: 1.5rem;
    }

    .admission-cta-text {
        font-size: 1rem;
    }

    .admission-cta-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .page-banner {
        padding: 30px 0 25px;
    }

    .page-banner h1 {
        font-size: 1.45rem;
    }

    .page-banner::after {
        height: 20px;
    }

    .premium-brand-row {
        flex-wrap: wrap;
    }

    .premium-brand-en {
        display: none;
    }

    .premium-center-logo {
        width: 48px;
        height: 48px;
    }

    .principal-photo {
        width: 150px;
        height: 150px;
    }

    .principal-message {
        padding: 16px 18px;
    }

    .principal-quote-icon {
        font-size: 3rem;
    }

    .teacher-card {
        padding: 20px 16px;
    }

    .teacher-card .teacher-photo-wrap img {
        width: 90px;
        height: 90px;
    }

    .teacher-card .teacher-photo-placeholder {
        width: 90px;
        height: 90px;
        font-size: 2.2rem;
    }

    .top-bar {
        font-size: 0.72rem;
        padding: 6px 0;
    }

    .btn-admin-login {
        font-size: 0.68rem;
        padding: 3px 10px;
    }

    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        bottom: 18px;
        right: 18px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 18px;
        right: 74px;
    }

    .contact-card {
        padding: 1.25rem;
    }

    .search-card {
        padding: 1.25rem;
    }

    .result-header {
        flex-direction: column;
        text-align: center;
    }

    .gpa-box {
        flex-direction: column;
        text-align: center;
    }

    .marks-table {
        font-size: 0.78rem;
    }

    .marks-table th,
    .marks-table td {
        padding: 6px 6px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}


/* ============================================
   29. LIGHTBOX MODAL
   ============================================ */
#galleryLightbox .modal-content {
    background: rgba(0,0,0,0.92);
    border: none;
    backdrop-filter: blur(12px);
}

#galleryLightbox .modal-header {
    border: none;
    padding: 0 15px;
}

#galleryLightbox .modal-body {
    padding: 0;
}

#galleryLightbox .btn-close-white {
    filter: brightness(1.2);
    opacity: 0.8;
    transition: var(--transition);
}

#galleryLightbox .btn-close-white:hover {
    opacity: 1;
    transform: scale(1.1);
}

#lightboxImage {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
}

#lightboxTitle {
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
}


/* ============================================
   30. BISMILLAH / AYAT INLINE DECORATIONS
   ============================================ */
.ayat-inline {
    background: linear-gradient(135deg, var(--primary-50), var(--bg-cream));
    border: 1px solid var(--primary-100);
    border-radius: var(--radius);
    padding: 18px 24px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.ayat-inline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background-image: var(--pattern-star);
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
}

.ayat-inline .ayat-text {
    font-family: var(--font-ar);
    font-size: 1.15rem;
    color: var(--primary-dark);
    line-height: 2;
    text-align: center;
    direction: rtl;
    margin-bottom: 8px;
}

.ayat-inline .ayat-translation {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.7;
    font-style: italic;
}

.ayat-inline .ayat-reference {
    font-size: 0.78rem;
    color: var(--accent-dark);
    text-align: center;
    font-weight: 600;
    margin-top: 6px;
}

.hadith-inline {
    background: linear-gradient(135deg, var(--accent-lighter), var(--bg-cream));
    border: 1px solid var(--accent-light);
    border-radius: var(--radius);
    padding: 18px 24px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.hadith-inline::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background-image: var(--pattern-star);
    background-size: 25px 25px;
    opacity: 0.4;
    pointer-events: none;
}

.hadith-inline .hadith-text {
    font-size: 0.98rem;
    color: var(--text-dark);
    line-height: 1.9;
    text-align: center;
    font-weight: 500;
    margin-bottom: 8px;
}

.hadith-inline .hadith-reference {
    font-size: 0.78rem;
    color: var(--accent-dark);
    text-align: center;
    font-weight: 600;
    margin-top: 6px;
}

/* Bismillah decorative element */
.bismillah-decoration {
    text-align: center;
    padding: 15px 0;
    font-family: var(--font-ar);
    font-size: 1.6rem;
    color: var(--primary-200);
    opacity: 0.5;
    user-select: none;
}

.bismillah-decoration::before,
.bismillah-decoration::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-200));
    vertical-align: middle;
    margin: 0 12px;
}

.bismillah-decoration::after {
    background: linear-gradient(90deg, var(--primary-200), transparent);
}

/* Ayat divider — inline separator between sections */
.ayat-divider {
    text-align: center;
    padding: 30px 0;
    position: relative;
}

.ayat-divider .divider-text {
    font-family: var(--font-ar);
    font-size: 1.3rem;
    color: var(--primary);
    opacity: 0.35;
    display: inline-block;
    position: relative;
    padding: 0 24px;
    background: var(--bg-body);
    z-index: 1;
}

.ayat-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-200), transparent);
    z-index: 0;
}

/* ── Empty state ── */
.empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    opacity: 0.3;
}

.empty-state h4 {
    color: var(--text-dark);
    margin-top: 1rem;
}

.empty-state p {
    color: var(--text-muted);
}
