/* ==========================================================================
   JAME'ATUL FIZZA'AL'ILMIA - GLOBAL CSS DESIGN SYSTEM
   Theme: Spiritual Emerald, Luxurious Gold, Clean Mobile-First Layout
   ========================================================================== */

/* 1. Google Fonts are loaded via <link> in header.php (non-blocking).
   The @import method is intentionally removed to prevent render-blocking flash. */

/* Ensure text is visible instantly using system fallback during font load */
@font-face {
    font-family: 'Playfair Display';
    font-display: swap;
    src: local('Playfair Display');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-display: swap;
    src: local('Plus Jakarta Sans');
}

/* 2. Custom CSS Variables */
:root {
    /* Color Palette */
    --emerald-deep: #052e16;       /* Deep Spiritual Emerald for headers/importance */
    --emerald-primary: #064e3b;    /* Rich Emerald for brand theme */
    --emerald-medium: #0f766e;     /* Medium Teal-Emerald for secondary links/hovers */
    --emerald-light: #f0fdf4;      /* Soft tint for card backgrounds */
    
    --gold-primary: #d97706;       /* Warm premium Gold accent */
    --gold-dark: #b45309;          /* Rich Bronze/Gold shadow */
    --gold-light: #fef3c7;         /* Delicate Gold background highlights */

    --dark-neutral: #0f172a;       /* Slate 900 for solid readability */
    --text-neutral: #334155;       /* Slate 700 for elegant secondary text */
    --light-bg: #f8fafc;           /* Ultra-clean Slate 50 background */
    --white: #ffffff;
    
    /* Font System */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    
    /* Layout & Spacing */
    --container-max-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Shadows & Glassmorphism */
    --shadow-soft: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 10px -1px rgba(15, 23, 42, 0.03);
    --shadow-premium: 0 20px 40px -15px rgba(6, 78, 59, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    /* Animation speed */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3. Modern CSS Reset & Core Defaults */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--dark-neutral);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input, button, textarea, select {
    font: inherit;
}

/* 4. Common Layout Components */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    max-width: var(--container-max-width);
}

/* Elegant Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--emerald-deep);
    font-weight: 700;
    line-height: 1.25;
}

/* Premium Section Titles */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.75rem;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    border-radius: 2px;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--emerald-primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(6, 78, 59, 0.2);
}

.btn-primary:hover {
    background-color: var(--emerald-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 78, 59, 0.3);
}

.btn-accent {
    background-color: var(--gold-primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.2);
}

.btn-accent:hover {
    background-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--emerald-primary);
    color: var(--emerald-primary);
}

.btn-outline:hover {
    background-color: var(--emerald-primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Glass Card class */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

/* Responsive Grid Helper */
.grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* 5. Keyframes & Micro-Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 6. Utility padding/margin */
.py-section { padding-top: 5rem; padding-bottom: 5rem; }
@media (max-width: 768px) { .py-section { padding-top: 3.5rem; padding-bottom: 3.5rem; } }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.w-full { width: 100%; }

/* ==========================================================================
   HEADER & NAVIGATION STYLES (MOBILE-FIRST)
   ========================================================================== */

/* Top Bar Announcement */
.top-bar {
    background-color: var(--emerald-deep);
    color: var(--gold-light);
    font-size: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(217, 119, 6, 0.2);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.text-gold { color: var(--gold-primary); }

.top-bar-contact a {
    color: var(--white);
    opacity: 0.9;
    font-weight: 500;
}
.top-bar-contact a:hover {
    color: var(--gold-primary);
}

/* Sticky Main Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    padding: 0.75rem 0;
    transition: var(--transition-fast);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand Styling */
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    padding: 2px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--emerald-primary);
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--gold-primary);
    font-weight: 700;
}

/* Desktop Navigation (Hidden on Mobile by default) */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-neutral);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-primary);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--emerald-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* Mobile Hamburger Button */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--emerald-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Hamburger animations when menu is active */
.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Drawer & Overlay styling */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.mobile-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -320px;
    width: 300px;
    background: var(--white);
    box-shadow: -10px 0 30px rgba(15, 23, 42, 0.1);
    z-index: 99999;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.drawer-close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--emerald-primary);
    cursor: pointer;
}

.drawer-body {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.drawer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drawer-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-neutral);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.02);
}

.drawer-link i {
    color: var(--gold-primary);
    width: 24px;
}

.drawer-link:hover {
    color: var(--emerald-primary);
    padding-left: 8px;
}

.drawer-footer {
    margin-top: auto;
}

/* Breakpoints for Desktop Viewports */
@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .brand-title {
        font-size: 1.45rem;
    }
}

/* ==========================================================================
   FOOTER STYLES (MOBILE-FIRST)
   ========================================================================== */

.main-footer {
    background-color: var(--emerald-deep);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    padding-top: 4rem;
    margin-top: auto;
    border-top: 4px solid var(--gold-primary);
}

.footer-grid {
    grid-template-columns: 1fr;
    row-gap: 2.5rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1.25fr 1fr;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
}

.footer-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    border: 1px solid var(--gold-primary);
    background: var(--white);
    padding: 1px;
}

.footer-brand-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--gold-light);
}

.footer-description {
    line-height: 1.6;
}

/* Social icons layout */
.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.footer-socials a:hover {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
    transform: translateY(-3px);
}

/* Column titles */
.footer-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--gold-primary);
    border-radius: 1px;
}

/* Links column */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold-primary);
    transform: translateX(5px);
}

/* Contact Column */
.footer-contact-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-info li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.footer-contact-info li i {
    color: var(--gold-primary);
    margin-top: 0.25rem;
    font-size: 1rem;
}

.footer-contact-info li a:hover {
    color: var(--gold-primary);
}

/* Two phone numbers stacked vertically */
.footer-phones {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-phones a {
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition-fast);
}

.footer-phones a:hover {
    color: var(--gold-primary);
}

/* Prevent long email from overflowing on small screens */
.footer-contact-info li a {
    word-break: break-all;
    color: rgba(255, 255, 255, 0.75);
}

/* Bottom Bar Copyrights */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        text-align: left;
    }
}

.admin-portal-link {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    transition: var(--transition-fast);
}

.admin-portal-link:hover {
    color: var(--white);
}

/* ==========================================================================
   HOMEPAGE SPECIFIC SECTIONS STYLES
   ========================================================================== */

/* 1. Hero Section */
.hero-section {
    position: relative;
    padding: 6rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(5, 46, 22, 0.85), rgba(5, 46, 22, 0.95)), url('../images/JameBuilding.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-section {
        text-align: left;
        padding: 4rem 0;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, var(--emerald-deep) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(217, 119, 6, 0.15);
    color: var(--gold-light);
    border: 1px solid rgba(217, 119, 6, 0.3);
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
        padding-right: 20px; /* Prevent serif clipping on hardware-accelerated layers */
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-actions {
        justify-content: flex-start;
    }
}

.btn-outline-white {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--emerald-primary);
    transform: translateY(-2px);
}

/* Subject Chips Highlights */
.subject-chips {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.subject-chip {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    white-space: nowrap;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.subject-chip:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

@media (min-width: 1024px) {
    .subject-chips {
        justify-content: flex-start;
    }
}

/* 2. Pillars / Cards Section */
.values-section {
    background-color: var(--white);
}

.value-card {
    text-align: center;
    padding: 3rem 2rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(6, 78, 59, 0.1);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: var(--emerald-light);
    color: var(--emerald-primary);
    border-radius: 50%;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.value-card:hover .card-icon {
    background-color: var(--gold-primary);
    color: var(--white);
}

.card-heading {
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

/* 3. About Teaser */
.about-teaser-section {
    background-color: var(--light-bg);
}

.teaser-wrapper {
    align-items: center;
    gap: 4rem;
}

.teaser-heading {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

/* Grid layout for stats counter */
.stats-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.03);
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.stat-item:nth-child(even) {
    border-left: 1px solid rgba(15, 23, 42, 0.05);
}

.stat-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-neutral);
    letter-spacing: 0.05em;
}

/* 4. Testimonials Slider styling */
.testimonial-section {
    background-color: var(--white);
}

.testimonial-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 0;
}

.testimonial-slides {
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateX(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.testimonial-card {
    text-align: center;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(6, 78, 59, 0.05);
}

.testimonial-card .rating {
    color: var(--gold-primary);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.feedback-text {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--dark-neutral);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.feedback-author {
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    padding-top: 1.25rem;
    display: inline-block;
}

.author-name {
    font-size: 1.1rem;
    color: var(--emerald-primary);
}

.author-relation {
    font-size: 0.8rem;
    color: var(--text-neutral);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Slider buttons styling */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.slider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--emerald-primary);
    background-color: transparent;
    color: var(--emerald-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-btn:hover {
    background-color: var(--emerald-primary);
    color: var(--white);
    transform: scale(1.05);
}

/* 5. Call To Action section styling */
.cta-banner-section {
    background: linear-gradient(135deg, var(--emerald-primary), var(--emerald-deep));
    color: var(--white);
}

.cta-banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    color: var(--white);
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2.75rem;
    }
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* ================================================
   MOBILE BOTTOM NAVIGATION BAR
   Visible ONLY on mobile (max-width: 1023px)
   ================================================ */

/* Default: hidden everywhere */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 1023px) {
    /* Give body breathing room so content isn't hidden behind the bar */
    body {
        padding-bottom: 70px;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        height: 65px;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.10);
        align-items: stretch;
        justify-content: space-around;
        padding: 0 4px;
    }

    .mob-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        gap: 3px;
        color: #9ca3af;
        text-decoration: none;
        font-size: 0.65rem;
        font-weight: 600;
        letter-spacing: 0.03em;
        transition: color 0.2s ease, transform 0.18s ease;
        position: relative;
        padding-top: 4px;
    }

    .mob-nav-item i {
        font-size: 1.2rem;
        transition: transform 0.2s ease;
    }

    .mob-nav-item span {
        font-size: 0.62rem;
    }

    /* Active / hover state */
    .mob-nav-item.active,
    .mob-nav-item:hover {
        color: var(--emerald-primary, #2e7d52);
    }

    .mob-nav-item.active i,
    .mob-nav-item:hover i {
        transform: translateY(-2px) scale(1.15);
    }

    /* Active indicator dot */
    .mob-nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 6px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--emerald-primary, #2e7d52);
    }

    /* Admissions CTA – floating bubble accent */
    .mob-nav-item--cta {
        color: #9ca3af;
    }

    .mob-nav-cta-bubble {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--emerald-primary, #2e7d52), var(--emerald-deep, #1b5e38));
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -20px; /* floats above the bar */
        box-shadow: 0 4px 16px rgba(46, 125, 82, 0.40);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mob-nav-cta-bubble i {
        color: #fff;
        font-size: 1.1rem;
    }

    .mob-nav-item--cta:hover .mob-nav-cta-bubble,
    .mob-nav-item--cta.active .mob-nav-cta-bubble {
        transform: translateY(-4px) scale(1.08);
        box-shadow: 0 8px 24px rgba(46, 125, 82, 0.50);
    }

    .mob-nav-item--cta.active,
    .mob-nav-item--cta:hover {
        color: var(--emerald-primary, #2e7d52);
    }

    /* Hide the dot indicator for the CTA bubble item */
    .mob-nav-item--cta.active::after {
        display: none;
    }
}

/* ==========================================================================
   Preloader Styles
   ========================================================================== */
#site-preloader { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: var(--light-bg, #f8fafc); 
    z-index: 999999; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    transition: opacity 0.5s ease, visibility 0.5s ease; 
}
#site-preloader.fade-out { 
    opacity: 0; 
    visibility: hidden; 
}
.preloader-content { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 1.5rem; 
}
.preloader-logo { 
    width: 120px; 
    height: auto; 
    animation: pulseLogo 2s infinite ease-in-out; 
}
.preloader-spinner { 
    width: 40px; 
    height: 40px; 
    border: 4px solid rgba(6, 78, 59, 0.1); 
    border-top: 4px solid var(--emerald-primary, #059669); 
    border-radius: 50%; 
    animation: spinLoader 1s linear infinite; 
}
@keyframes spinLoader { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}
@keyframes pulseLogo { 
    0% { transform: scale(1); opacity: 0.8; } 
    50% { transform: scale(1.05); opacity: 1; } 
    100% { transform: scale(1); opacity: 0.8; } 
}
