/* ===================================
   GM Legacy School - Main Stylesheet
   Primary Color: #0d284e (Deep Navy Blue)
   Secondary Color: #e9c66f (Gold)
   Background: #fdfcee (Cream)
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #0d284e;
    --primary-dark: #06152a;
    --primary-light: #224270;
    --secondary-color: #e9c66f;
    --secondary-light: #f0d58a;
    --secondary-dark: #d4b050;
    --white: #ffffff;
    --cream: #fdfcee;
    --cream-dark: #f2f0e4;
    --black: #000000;
    --gray-light: #f5f5f5;
    --gray: #888888;
    --text-dark: #333333;
    --shadow: rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Responsive images */
.hero-image,
.logo,
.footer-logo {
    max-width: 100%;
    height: auto;
}

.logo {
    max-height: 50px;
    width: auto;
}

.footer-logo {
    max-height: 60px;
    width: auto;
}

/* Container */
.container {
    max-width: 1400px;
    width: 95%;
    margin: 0 auto;
    padding: 0 10px;
}

/* Responsive container adjustments */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
}

/* ===================================
   HEADER STYLES
   =================================== */
/* ===================================
   HEADER STYLES (NEW DESIGN)
   =================================== */
/* ===================================
   NEW PILL-SHAPED FLOATING NAVBAR
   =================================== */
.header-modern {
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    z-index: 2000;
    pointer-events: none;
    /* Let clicks pass through to hero if background is clicked */
}

.pill-nav-container {
    max-width: 1380px;
    /* Slightly wider to accommodate all items */
    margin: 0 auto;
    padding: 0 40px;
    /* More padding from screen edges */
    pointer-events: auto;
}

.pill-nav {
    background: var(--primary-color);
    border-radius: 100px;
    padding: 8px 15px;
    /* Restored some padding */
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    /* Fill container */
}

.pill-nav:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Logo Section */
.nav-logo-modern {
    background: var(--white);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Removed padding to let logo fill the circle */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    overflow: hidden;
    /* Ensure image stays inside circle */
}

.nav-logo-modern:hover {
    transform: rotate(5deg) scale(1.1);
}

.nav-logo-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image fills the circle */
    border-radius: 50%;
}

/* Nav Menu Section */
.nav-menu-modern {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-modern>li {
    position: relative;
}

.nav-menu-modern>li>a {
    color: var(--white);
    font-size: 0.68rem;
    /* Slightly smaller for better fit */
    font-weight: 700;
    padding: 10px 10px;
    border-radius: 50px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    /* Stack chevron below or just smaller gap */
    align-items: center;
    gap: 2px;
    text-transform: uppercase;
    letter-spacing: 0.1px;
    text-align: center;
    line-height: 1.2;
}

.nav-menu-modern>li>a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

/* Dropdown styling for modern nav */
.nav-menu-modern .dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--white);
    min-width: 260px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-menu-modern li:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.nav-menu-modern .dropdown-content a {
    color: var(--text-dark) !important;
    padding: 10px 25px;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: none;
    transition: var(--transition);
}

.nav-menu-modern .dropdown-content a:hover {
    background: var(--gray-light);
    color: var(--primary-color) !important;
    padding-left: 30px;
}

/* Action Section (Right) */
.nav-actions-modern {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-pill {
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.contact-pill:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.login-icon-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-icon-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Mobile Adjustments for Modern Nav */
.modern-hamburger {
    display: none;
    cursor: pointer;
    color: var(--white);
    font-size: 1.5rem;
    padding: 10px;
}

/* Light Navbar Style for subpages */
.header-modern.nav-light .pill-nav {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.header-modern.nav-light .nav-menu-modern>li>a {
    color: var(--primary-color);
}

.header-modern.nav-light .nav-menu-modern>li>a:hover {
    background: var(--gray-light);
    color: var(--primary-dark);
}

.header-modern.nav-light .contact-pill {
    background: var(--primary-color);
    color: var(--white);
}

.header-modern.nav-light .contact-pill:hover {
    background: var(--primary-dark);
}

.header-modern.nav-light .login-icon-btn {
    background: var(--gray-light);
    color: var(--primary-color);
    border-color: rgba(0, 0, 0, 0.05);
}

.header-modern.nav-light .login-icon-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.header-modern.nav-light .modern-hamburger {
    color: var(--primary-color);
}

@media (max-width: 1200px) {
    .nav-menu-modern {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 10px 0;
        border-radius: 20px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
        margin: 0 10px;
        width: auto;
        border: 1px solid rgba(255, 255, 255, 0.1);
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-menu-modern.active {
        display: flex;
    }

    .nav-menu-modern>li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu-modern>li:last-child {
        border-bottom: none;
    }

    .nav-menu-modern>li>a {
        display: flex;
        flex-direction: row;
        justify-content: center;
        /* Center main items */
        align-items: center;
        padding: 15px 25px;
        font-size: 0.9rem;
        width: 100%;
        color: var(--white);
        text-transform: capitalize;
        font-weight: 600;
        border-radius: 0;
        gap: 10px;
        /* Space between text and icon */
    }

    .nav-menu-modern>li>a i {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    .nav-menu-modern .dropdown.active>a i {
        transform: rotate(180deg);
        color: var(--secondary-color);
    }

    .nav-menu-modern .dropdown-content {
        position: static;
        width: 100%;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        background: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        padding: 0;
        border-radius: 0;
        border: none;
        margin-left: 70px;
    }

    .nav-menu-modern .dropdown.active .dropdown-content {
        display: block;
    }

    .nav-menu-modern .dropdown-content a {
        display: flex;
        justify-content: center;
        align-content: center;
        width: 100%;
        padding: 12px 10px;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.8) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: center !important;
        margin-left: 40px;
        /* Centering adjustment */
    }

    .nav-menu-modern .dropdown-content a:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--secondary-color) !important;
        padding-left: 10px;
    }

    .modern-hamburger {
        display: block;
        margin-left: auto;
    }

    .contact-pill {
        display: none;
    }

    .pill-nav {
        padding: 10px 20px;
        position: relative;
        /* Ensure it's a positioning context if needed */
    }

    .nav-logo-modern {
        width: 50px;
        height: 50px;
    }
}

/* Hamburger for Mobile remains but needs styling for new structure */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}

@media (max-width: 1100px) {
    .nav-section .container {
        justify-content: space-between;
    }

    .nav-content-wrap {
        display: none;
        /* Hide for mobile initially */
    }

    .hamburger {
        display: flex;
    }
}

/* ===================================
   NAVIGATION STYLES - Two Line Compact Design
   =================================== */
.main-nav {
    background: var(--primary-color);
    padding: 0;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    gap: 5px;
    background: var(--secondary-color);
    border-radius: 5px;
    margin: 8px 0;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Nav Rows */
.nav-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-row:last-child {
    border-bottom: none;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--white);
    font-weight: 500;
    font-size: 0.85rem;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.3px;
    text-shadow: none;
}

.nav-menu a:hover {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.05);
}

.nav-menu a.active {
    background: transparent;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}



/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.6rem;
    transition: var(--transition);
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 5px 5px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    font-size: 0.85rem;
    color: var(--white) !important;
    font-weight: 500;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    padding-left: 25px;
}

/* ===================================
   NEW MODERN HERO SECTION (Inspired by Reference)
   =================================== */
.hero-new {
    background-color: #fdfaf7;
    /* Soft light background */
    padding: 180px 0 60px;
    /* Increased top padding to shift content down and avoid navbar overlap */
    margin-top: -100px;
    /* Sitting flush below the fixed header */
    position: relative;
    overflow: hidden;
    min-height: 850px;
    /* Adjusted height for better spacing */
    display: flex;
    align-items: center;
}

.hero-new .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes float-reverse {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(15px) rotate(-5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Floating Elements (Doodles) */
.hero-doodle {
    position: absolute;
    color: var(--primary-color);
    opacity: 0.15;
    font-size: 2.5rem;
    z-index: 1;
}

.doodle-1 {
    top: 15%;
    left: 8%;
    animation: float 6s ease-in-out infinite;
}

.doodle-2 {
    top: 20%;
    right: 12%;
    animation: float-reverse 7s ease-in-out infinite;
}

.doodle-3 {
    bottom: 25%;
    left: 12%;
    animation: float-reverse 5s ease-in-out infinite;
}

.doodle-4 {
    bottom: 30%;
    right: 8%;
    animation: float 8s ease-in-out infinite;
}

.doodle-5 {
    top: 40%;
    left: 20%;
    font-size: 2rem;
    animation: float 5.5s ease-in-out infinite;
}

.doodle-6 {
    top: 55%;
    right: 18%;
    font-size: 2.2rem;
    animation: float-reverse 6.5s ease-in-out infinite;
}

.doodle-7 {
    bottom: 15%;
    left: 40%;
    font-size: 1.8rem;
    animation: float 7.5s ease-in-out infinite;
}

.doodle-8 {
    bottom: 10%;
    right: 40%;
    font-size: 2rem;
    animation: float-reverse 9s ease-in-out infinite;
}

.doodle-9 {
    top: 10%;
    left: 45%;
    font-size: 1.5rem;
    animation: float 10s ease-in-out infinite;
}

.doodle-10 {
    top: 70%;
    left: 10%;
    font-size: 1.7rem;
    animation: float-reverse 11s ease-in-out infinite;
}

.doodle-11 {
    top: 30%;
    right: 35%;
    font-size: 1.6rem;
    animation: float 12s ease-in-out infinite;
}

.doodle-12 {
    bottom: 40%;
    right: 5%;
    font-size: 1.9rem;
    animation: float-reverse 10s ease-in-out infinite;
}

/* Central Hero Content */
.hero-main-content {
    flex: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    background: var(--secondary-light);
    color: var(--primary-dark);
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    display: inline-block;
}

.hero-main-content h1 {
    font-size: 4.5rem;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions .hero-btn-new {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 45px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(101, 30, 33, 0.2);
}

.hero-btn-new i {
    background: var(--white);
    color: var(--primary-color);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Kids Showcase */
.kids-showcase-left,
.kids-showcase-right {
    position: absolute;
    width: 320px;
    height: 320px;
}

.kids-showcase-left {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.kids-showcase-right {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.kid-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.kid-circle-bg {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.bg-maroon {
    background-color: var(--primary-color);
}

.bg-gold {
    background-color: var(--secondary-color);
}

.kid-img {
    position: absolute;
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    border: 8px solid var(--white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.kid-img:hover {
    transform: translate(-50%, -55%) scale(1.05);
}

/* Stats Floating Cards */
.stat-card {
    background: var(--cream-dark);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    position: absolute;
    z-index: 10;
}

.stat-card.stat-1 {
    bottom: 25%;
    left: 20%;
    /* Moved further left */
    animation: float 5s ease-in-out infinite;
}

.stat-card.stat-2 {
    bottom: 40%;
    right: 18%;
    /* Moved further right */
    animation: float-reverse 6s ease-in-out infinite;
}

.stat-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.stat-1 .stat-icon {
    background: #e3f2fd;
    color: #1e88e5;
}

.stat-2 .stat-icon {
    background: #f1f8e9;
    color: #7cb342;
}

.stat-info h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
}

.stat-info p {
    font-size: 0.75rem;
    color: var(--gray);
    margin: 0;
}

/* Bottom Programs Bar */
.hero-footer-programs {
    background: var(--primary-dark);
    margin-top: -60px;
    border-radius: 80px 80px 0 0;
    padding: 60px 0;
    position: relative;
    z-index: 20;
}

.programs-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(4, 1fr);
    gap: 20px;
    align-items: center;
}

.programs-intro h2 {
    color: var(--white);
    font-size: 2.2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}

.programs-intro p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.program-card-mini {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.program-card-mini:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.program-card-mini .icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.program-card-mini h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.program-card-mini a {
    color: var(--secondary-light);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-main-content h1 {
        font-size: 3.5rem;
    }

    .kids-showcase-left,
    .kids-showcase-right {
        width: 250px;
        height: 250px;
    }

    .kid-img,
    .kid-circle-bg {
        width: 220px;
        height: 220px;
    }

    .stat-card.stat-1 {
        left: 10%;
    }

    .stat-card.stat-2 {
        right: 10%;
    }
}

@media (max-width: 992px) {
    .hero-new {
        padding-top: 180px;
    }

    .kids-showcase-left,
    .kids-showcase-right {
        position: relative;
        width: 50%;
        height: auto;
        padding: 20px;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
    }

    .kid-img,
    .kid-circle-bg {
        margin: 0 auto;
        position: relative;
        transform: none;
        top: auto;
        left: auto;
    }

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

    .hero-main-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-main-content h1 {
        font-size: 2.5rem;
    }

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

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

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

.hero-content {
    text-align: center;
    color: var(--white);
    animation: slideInFromBottom 1.2s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    animation: slideInFromBottom 1.2s ease-out 0.2s both;
}

.hero-content p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
    animation: slideInFromBottom 1.2s ease-out 0.4s both;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: var(--transition);
    border: 3px solid var(--secondary-color);
    animation: slideInFromBottom 1.2s ease-out 0.6s both;
}

.hero-btn:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===================================
   SECTION STYLES
   =================================== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    background: var(--cream);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.8;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px var(--shadow);
}

.about-image img {
    width: 100%;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Features Section */
.features {
    background: var(--cream);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--cream-dark);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* CTA Section */
.cta {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    padding: 15px 45px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: var(--transition);
}

.cta-btn:hover {
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===================================
   QUICK ACCESS SECTION
   =================================== */
.quick-access {
    padding: 80px 0;
    background: var(--gray-light);
    position: relative;
    z-index: 10;
    margin-top: 0;
    min-height: 500px;
    width: 100%;
    display: block !important;
    visibility: visible !important;
}

.quick-access-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    visibility: visible !important;
}

/* Force visibility on all screen sizes */
@media (max-width: 1400px) {
    .quick-access-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px;
    }
}

/* Tablet and below - stack cards vertically */
@media (max-width: 1200px) {
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px;
    }
}

/* Mobile - single column layout - STRONGEST OVERRIDE */
@media screen and (max-width: 768px) {
    .quick-access .quick-access-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        display: grid !important;
        width: 100% !important;
    }

    .quick-access .access-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
    }
}

/* Extra mobile breakpoint for smaller screens - STRONGEST OVERRIDE */
@media screen and (max-width: 480px) {
    .quick-access .quick-access-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        display: grid !important;
        width: 100% !important;
    }

    .quick-access .access-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
}

.access-card {
    background: var(--cream-dark) !important;
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(101, 30, 33, 0.3);
    transition: var(--transition);
    min-height: 350px;
    display: flex !important;
    flex-direction: column;
    position: relative;
    z-index: 1;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100%;
    transform: translateY(0) !important;
}

.access-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(101, 30, 33, 0.4);
}

.card-header {
    background: var(--primary-color);
    padding: 20px;
    text-align: center;
    color: var(--white);
}

.card-header i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
    background: var(--cream-dark);
}

/* Address Card Specific */
.address-card .card-content p {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text-dark);
}

.address-card .card-content p:first-child {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-info i {
    color: var(--secondary-color);
    width: 16px;
}

/* Students and Parents Cards */
.card-illustration {
    text-align: center;
    margin: 20px 0;
}

.student-icon,
.parent-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.corner-links {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    gap: 10px;
}

.corner-links li {
    margin-bottom: 0;
    background: var(--gray-light);
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: var(--transition);
}

.corner-links li:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.corner-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: block;
    padding: 12px 15px;
    border-radius: 8px;
}

.corner-links a:hover {
    color: var(--white);
    padding-left: 15px;
}

.visit-btn {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    margin-top: auto;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.visit-btn:hover {
    background: var(--white);
    transform: translateY(-2px);
}

/* Location Card Specific */
.interactive-map {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.interactive-map iframe {
    width: 100%;
    height: 150px;
    border: none;
    border-radius: 8px;
}

.location-info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-dark);
}

.location-info p:first-child {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--primary-color);
}

.location-features {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.location-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-dark);
}

.location-features i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Contact Details Button */
.contact-details-section {
    text-align: center;
    margin-top: 40px;
}

.contact-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(101, 30, 33, 0.3);
}

.contact-details-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(101, 30, 33, 0.4);
}

.contact-details-btn i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .quick-access {
        padding: 60px 0;
    }

    .quick-access-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .access-card {
        min-height: 300px;
    }

    .card-header {
        padding: 15px;
    }

    .card-content {
        padding: 20px 15px;
    }

    .location-features {
        flex-direction: column;
        gap: 10px;
    }

    /* Hero responsive adjustments */
    .hero-image {
        height: 60vh;
        min-height: 400px;
        object-fit: cover;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}

/* ===================================
   FOOTER STYLES
   =================================== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    display: block;
}

.footer-section a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: var(--secondary-color);
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===================================
   RESPONSIVE DESIGN - ENHANCED
   =================================== */

/* Large Desktop */
@media (max-width: 1400px) {
    .container {
        width: 95%;
    }

    .nav-row {
        gap: 25px;
    }

    .nav-link {
        font-size: 0.76rem;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .nav-row {
        gap: 20px;
    }

    .nav-link {
        font-size: 0.74rem;
        padding: 8px 0;
    }

    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

/* Tablet Landscape */
@media (max-width: 1100px) {
    .nav-section .container {
        justify-content: space-between;
    }

    .nav-content-wrap {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-content-wrap.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 999;
        border-radius: 0 0 15px 15px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-menu-wrapper {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    .nav-row {
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        align-items: center;
    }

    .nav-row:last-child {
        border-bottom: none;
    }

    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: center;
        font-size: 1rem;
        font-weight: 500;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--secondary-color);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Dropdown styles for mobile */
    .dropdown {
        width: 100%;
        position: relative;
    }

    .dropdown-toggle::after {
        content: '▼';
        font-size: 0.8rem;
        transition: var(--transition);
    }

    .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .dropdown-content {
        display: none;
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        margin: 0 auto;
        transform: none;
        box-shadow: none;
        background: var(--primary-color);
        border-radius: 0;
        width: 100%;
        opacity: 1;
        visibility: visible;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }

    .dropdown.active .dropdown-content {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .dropdown-content a {
        padding: 1px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: center;
        font-size: 1rem;
        font-weight: 500;
        transition: var(--transition);
        display: block;
        color: var(--white);
        background: var(--primary-color);
        margin: 0 auto;
        box-sizing: border-box;
    }

    .dropdown-content a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--secondary-color);
    }

    .dropdown-content a:last-child {
        border-bottom: none;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
        }

        to {
            opacity: 1;
            max-height: 500px;
        }
    }
}

/* Tablet Portrait */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-btn {
        padding: 12px 35px;
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .quick-access {
        padding: 60px 0;
    }

    /* Ensure cards stack on tablet */
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px;
    }

    .access-card {
        min-height: 320px;
    }

    .contact-details-btn {
        padding: 12px 35px;
        font-size: 1rem;
    }

    /* Hero image adjustments for tablet */
    .hero-image {
        height: 50vh;
        min-height: 350px;
        object-fit: cover;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {

    /* Top Bar Mobile - Keep 4 items in single line */
    .top-bar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 5px;
        text-align: center;
        flex-wrap: nowrap;
    }

    .top-bar-left,
    .top-bar-right {
        flex-direction: row;
        gap: 8px;
        font-size: 0.7rem;
        flex-wrap: nowrap;
    }

    .top-bar-left {
        flex: 1;
        justify-content: flex-start;
    }

    .top-bar-right {
        flex-shrink: 0;
        gap: 8px;
    }

    .top-bar-item {
        gap: 4px;
        white-space: nowrap;
    }

    .top-bar-item i {
        font-size: 0.8rem;
    }

    .login-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    /* Header Mobile */
    .header-logo-wrap .logo {
        height: 45px;
        max-width: 100%;
    }

    /* Hero Mobile */
    .hero {
        margin-top: -85px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    /* Quick Access Mobile */
    .quick-access {
        padding: 50px 0;
    }

    .quick-access-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .access-card {
        min-height: 280px;
        width: 100%;
        max-width: 100%;
    }

    .card-header {
        padding: 15px;
    }

    .card-header h3 {
        font-size: 1rem;
    }

    .card-content {
        padding: 20px 15px;
    }

    .corner-links a {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .visit-btn {
        padding: 10px 18px;
        font-size: 0.8rem;
    }

    .interactive-map iframe {
        height: 120px;
        width: 100%;
    }

    .location-features {
        flex-direction: column;
        gap: 8px;
    }

    .contact-details-btn {
        padding: 12px 30px;
        font-size: 0.95rem;
        gap: 8px;
    }

    /* Section Mobile */
    section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 1.9rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    /* Features Mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    /* CTA Mobile */
    .cta {
        padding: 60px 20px;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .cta p {
        font-size: 1rem;
    }

    .cta-btn {
        padding: 12px 35px;
        font-size: 1rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 50px 0 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        height: 50px;
        max-width: 100%;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 5px;
    }

    /* Top Bar Small Mobile - Keep 4 items in single line */
    .top-bar {
        padding: 6px 0;
    }

    .top-bar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 3px;
        flex-wrap: nowrap;
    }

    .top-bar-left,
    .top-bar-right {
        font-size: 0.65rem;
        flex-direction: row;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .top-bar-left {
        flex: 1;
        justify-content: flex-start;
        overflow: hidden;
    }

    .top-bar-right {
        flex-shrink: 0;
    }

    .top-bar-item {
        gap: 3px;
        white-space: nowrap;
    }

    .top-bar-item i {
        font-size: 0.7rem;
    }

    .login-btn {
        padding: 3px 6px;
        font-size: 0.65rem;
    }

    /* Header Small Mobile */
    .header-logo-wrap .logo {
        height: 40px;
    }

    /* Hero Small Mobile */
    .hero {
        margin-top: -80px;
    }

    .hero-overlay {
        padding-bottom: 30px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }

    .hero-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    /* Quick Access Small Mobile */
    .quick-access {
        padding: 40px 0;
    }

    .access-card {
        min-height: 260px;
    }

    .card-header {
        padding: 12px;
    }

    .card-header i {
        font-size: 1.5rem;
    }

    .card-header h3 {
        font-size: 0.9rem;
    }

    .card-content {
        padding: 15px 12px;
    }

    .corner-links a {
        font-size: 0.8rem;
        padding: 8px 10px;
    }

    .visit-btn {
        padding: 8px 15px;
        font-size: 0.75rem;
    }

    .interactive-map iframe {
        height: 100px;
    }

    .contact-details-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        flex-direction: column;
        gap: 5px;
    }

    /* Section Small Mobile */
    section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .section-title::after {
        width: 60px;
        height: 3px;
    }

    /* Feature Card Small Mobile */
    .feature-card {
        padding: 25px 15px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    /* CTA Small Mobile */
    .cta {
        padding: 50px 15px;
    }

    .cta h2 {
        font-size: 1.7rem;
    }

    .cta p {
        font-size: 0.95rem;
    }

    .cta-btn {
        padding: 10px 30px;
        font-size: 0.95rem;
    }

    /* Footer Small Mobile */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding-top: 20px;
        font-size: 0.85rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .hero-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    .access-card {
        min-height: 240px;
    }

    .contact-details-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}

/* Landscape Orientation Fix */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-overlay {
        padding-bottom: 20px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .hero-btn {
        padding: 8px 25px;
        font-size: 0.9rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .hero-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.py-20 {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Responsive utility classes */
.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.d-grid {
    display: grid !important;
}

@media (max-width: 768px) {
    .d-md-block {
        display: block !important;
    }

    .d-md-none {
        display: none !important;
    }

    .text-md-center {
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .d-sm-block {
        display: block !important;
    }

    .d-sm-none {
        display: none !important;
    }

    .text-sm-center {
        text-align: center !important;
    }
}

/* ===================================
   CBSE AFFILIATION PAGE STYLES
   =================================== */

/* Page Header */
.page-header {
    background-color: transparent !important;
    color: var(--white) !important;
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.page-header h1 {
    color: var(--white) !important;
}

.page-header-content h1 {
    color: var(--white) !important;
}

/* CBSE Affiliation Section */
.cbse-affiliation {
    padding: 80px 0;
    background: var(--gray-light);
}

.affiliation-content {
    max-width: 1000px;
    margin: 0 auto;
}

.affiliation-header {
    text-align: center;
    margin-bottom: 50px;
}

.cbse-logo {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(101, 30, 33, 0.3);
}

.affiliation-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Detail Cards */
.affiliation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.detail-card {
    background: var(--cream-dark);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.detail-card.full-width {
    grid-column: 1 / -1;
}

.detail-card.highlight {
    background: var(--primary-color);
    color: var(--white);
    border-left: 4px solid var(--secondary-color);
}

.detail-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.detail-card.highlight h3 {
    color: var(--secondary-color);
}

.detail-card h3 i {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.detail-card p {
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 0;
}

.detail-card.highlight p {
    color: rgba(255, 255, 255, 0.9);
}

/* Requirements List */
.requirements-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.requirements-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.requirements-list li:last-child {
    margin-bottom: 0;
}

.requirements-list i {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Affiliation Status */
.affiliation-status {
    text-align: center;
    background: var(--cream-dark);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--secondary-color);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
}

.status-badge i {
    font-size: 1.1rem;
}

.affiliation-status p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

/* Responsive Design for CBSE Page */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }

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

    .affiliation-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .detail-card {
        padding: 25px 20px;
    }

    .affiliation-header h2 {
        font-size: 1.8rem;
    }

    .cbse-affiliation {
        padding: 60px 0;
    }

    .affiliation-status {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .detail-card h3 {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .requirements-list li {
        flex-direction: column;
        gap: 8px;
    }

    .status-badge {
        flex-direction: column;
        gap: 5px;
        padding: 15px 20px;
    }
}

/* ===================================
   NEP STRUCTURE PAGE STYLES
   =================================== */

/* NEP Structure Section */
.nep-structure {
    padding: 80px 0;
    background: var(--gray-light);
}

.nep-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* NEP Introduction */
.nep-intro {
    text-align: center;
    margin-bottom: 60px;
    background: var(--cream-dark);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nep-logo {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(101, 30, 33, 0.3);
}

.nep-intro h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    margin-bottom: 25px;
    font-weight: 600;
}

.nep-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.nep-intro strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Structure Overview */
.structure-overview {
    margin-bottom: 60px;
}

.structure-overview h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    margin-bottom: 40px;
    font-weight: 600;
}

.structure-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background: var(--cream-dark);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.structure-item {
    text-align: center;
    padding: 25px;
    border-radius: 15px;
    min-width: 180px;
    transition: var(--transition);
}

.structure-item:hover {
    transform: translateY(-5px);
}

.structure-item.foundational {
    background: #e8f5e8;
    border: 2px solid #4caf50;
}

.structure-item.preparatory {
    background: #e3f2fd;
    border: 2px solid #2196f3;
}

.structure-item.middle {
    background: #fff3e0;
    border: 2px solid #ff9800;
}

.structure-item.secondary {
    background: #fce4ec;
    border: 2px solid #e91e63;
}

.structure-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.structure-item h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.structure-item p {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin: 0;
}

.structure-arrow {
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Stage Cards */
.stages-details {
    margin-bottom: 60px;
}

.stage-card {
    background: var(--cream-dark);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-left: 6px solid var(--secondary-color);
}

.stage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stage-card.foundational-card {
    border-left-color: #4caf50;
}

.stage-card.preparatory-card {
    border-left-color: #2196f3;
}

.stage-card.middle-card {
    border-left-color: #ff9800;
}

.stage-card.secondary-card {
    border-left-color: #e91e63;
}

.stage-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.stage-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.stage-title h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.classes {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.stage-content h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.focus-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.focus-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.focus-list i {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.stage-description {
    background: var(--gray-light);
    padding: 20px;
    border-radius: 10px;
    font-style: italic;
    color: var(--text-dark);
    margin: 0;
    border-left: 4px solid var(--secondary-color);
}

/* Key Features */
.key-features {
    margin-bottom: 60px;
    background: var(--cream-dark);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.key-features h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    margin-bottom: 40px;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-item {
    text-align: center;
    padding: 25px;
    background: var(--gray-light);
    border-radius: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    background: var(--secondary-light);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
}

/* Our Approach */
.our-approach {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.our-approach h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
    margin-bottom: 30px;
    font-weight: 600;
}

.approach-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.approach-goals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.goal-item {
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: var(--transition);
}

.goal-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.goal-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.goal-item h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.approach-conclusion {
    text-align: center;
    padding: 30px;
    background: rgba(233, 198, 111, 0.2);
    border-radius: 15px;
    border: 2px solid var(--secondary-color);
}

.approach-conclusion p {
    font-size: 1.2rem;
    margin: 0;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Responsive Design for NEP Page */
@media (max-width: 992px) {
    .structure-diagram {
        flex-direction: column;
    }

    .structure-arrow {
        transform: rotate(90deg);
        font-size: 1.5rem;
    }

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

    .stage-icon {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nep-structure {
        padding: 60px 0;
    }

    .nep-intro {
        padding: 30px 20px;
    }

    .nep-intro h2 {
        font-size: 2rem;
    }

    .structure-overview h3,
    .key-features h3,
    .our-approach h3 {
        font-size: 1.6rem;
    }

    .structure-diagram {
        padding: 30px 20px;
    }

    .structure-item {
        min-width: 150px;
        padding: 20px;
    }

    .structure-number {
        font-size: 2.5rem;
    }

    .stage-card {
        padding: 30px 20px;
    }

    .key-features,
    .our-approach {
        padding: 40px 20px;
    }

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

    .approach-goals {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stage-title h3 {
        font-size: 1.2rem;
    }

    .structure-item {
        min-width: 120px;
        padding: 15px;
    }

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

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

    .focus-list li {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===================================
   GLOBAL PAGE HEADER STYLES FOR DROPDOWN PAGES
   =================================== */

/* Make all page headers have white text and transparent background */
.page-header {
    background-color: transparent !important;
    color: var(--white) !important;
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.page-header h1 {
    color: var(--white) !important;
}

.page-header-content h1 {
    color: var(--white) !important;
}

/* ===================================
   MOBILE RESPONSIVE OVERRIDE - FINAL
   =================================== */
/* This section ensures mobile responsiveness takes priority */
@media screen and (max-width: 768px) {

    /* Fix hero image positioning on mobile */
    .hero {
        margin-top: 0 !important;
        position: relative;
    }

    .hero-image {
        height: 50vh !important;
        min-height: 350px !important;
    }

    .hero-overlay {
        padding-bottom: 30px !important;
    }

    /* Force cards to stack vertically */
    .quick-access-grid {
        grid-template-columns: 1fr !important;
        display: grid !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .access-card {
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto !important;
        grid-column: 1 !important;
    }

    /* Keep top bar items in single line on mobile */
    .top-bar .container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 5px !important;
        flex-wrap: nowrap !important;
    }

    .top-bar-left,
    .top-bar-right {
        flex-direction: row !important;
        gap: 8px !important;
        font-size: 0.7rem !important;
        flex-wrap: nowrap !important;
    }

    .top-bar-left {
        flex: 1 !important;
        justify-content: flex-start !important;
    }

    .top-bar-right {
        flex-shrink: 0 !important;
    }
}

/* Global Subpage Styling (Vision & Mission Theme) */
.page-header {
    padding-top: 150px !important;
    padding-bottom: 60px !important;
    background: #fffcf5 !important;
    color: var(--primary-color) !important;
    text-align: center;
}

.page-header h1 {
    color: var(--primary-color) !important;
    font-family: 'Playfair Display', serif;
}

.content-block p,
.content-block li,
.content-block h3,
.content-block h4 {
    color: var(--primary-color) !important;
}

/* Initiatives Section */
.initiatives-section {
    padding: 100px 0;
    background: #fdf4f4;
    position: relative;
    overflow: hidden;
}

.initiatives-header {
    text-align: center;
    margin-bottom: 60px;
}

.initiatives-header h2 {
    color: var(--primary-color);
    font-size: 2.8rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.initiatives-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.initiatives-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    /* Hide scrollbar for Chrome, Safari and Opera */
    -webkit-overflow-scrolling: touch;
}

.initiatives-grid::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.initiatives-grid {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.init-card {
    background: var(--cream-dark);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 0 0 300px; /* Fixed width for each card */
    min-width: 300px; /* Minimum width to maintain consistency */
}

.init-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.init-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.init-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.init-card:hover .init-img img {
    transform: scale(1.1);
}

.init-content {
    padding: 30px;
    text-align: center;
    flex-grow: 1;
}

.init-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.init-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.init-link {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.init-link:hover {
    gap: 12px;
    color: var(--secondary-color);
}

@media (max-width: 1200px) {
    .init-card {
        flex: 0 0 280px;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .initiatives-grid {
        gap: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .init-card {
        flex: 0 0 260px;
        min-width: 260px;
    }

    .initiatives-section {
        padding: 60px 0;
    }

    .initiatives-header h2 {
        font-size: 2.2rem;
    }
}

/* Information Corner Section */
.info-corner-section {
    padding: 80px 0;
    background: #fffafa;
}

.info-box-container {
    background: var(--cream-dark);
    padding: 60px 40px;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.03);
    text-align: center;
}

.info-box-container h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 50px;
    letter-spacing: 0.5px;
}

.info-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.info-card-item {
    background: var(--primary-color);
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: 0 10px 30px rgba(101, 30, 33, 0.2);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    border: none;
}

.info-card-item:hover {
    transform: translateY(-8px);
    background: var(--primary-dark);
    box-shadow: 0 20px 50px rgba(101, 30, 33, 0.3);
}

.info-card-item i {
    font-size: 32px;
    color: var(--white);
    transition: var(--transition);
}

.info-card-item:hover i {
    transform: scale(1.1);
}

.info-card-item span {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 500;
}

@media (max-width: 992px) {
    .info-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .info-grid-modern {
        grid-template-columns: 1fr;
    }

    .info-box-container {
        padding: 40px 20px;
    }
}

@media screen and (max-width: 480px) {

    /* Hero adjustments for small mobile */
    .hero {
        margin-top: 0 !important;
    }

    .hero-image {
        height: 45vh !important;
        min-height: 300px !important;
    }

    .hero-content h1 {
        font-size: 1.8rem !important;
    }

    .hero-content p {
        font-size: 0.9rem !important;
    }

    .hero-btn {
        padding: 10px 25px !important;
        font-size: 0.9rem !important;
    }

    /* Force cards to stack vertically */
    .quick-access-grid {
        grid-template-columns: 1fr !important;
        display: grid !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .access-card {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        grid-column: 1 !important;
    }

    /* Keep top bar items in single line on small mobile */
    .top-bar .container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 3px !important;
        flex-wrap: nowrap !important;
    }

    .top-bar-left,
    .top-bar-right {
        flex-direction: row !important;
        gap: 6px !important;
        font-size: 0.65rem !important;
        flex-wrap: nowrap !important;
    }

    .top-bar-left {
        flex: 1 !important;
        justify-content: flex-start !important;
    }

    .top-bar-right {
        flex-shrink: 0 !important;
    }
}

/* ===================================
   ENQUIRY FORM MODAL STYLES
   =================================== */
.enquiry-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.enquiry-modal-content {
    background-color: var(--white);
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.enquiry-modal-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 25px 30px;
    border-radius: 15px 15px 0 0;
    text-align: center;
    position: relative;
}

.enquiry-modal-header h2 {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    margin: 0 0 5px 0;
    color: var(--secondary-color);
}

.enquiry-modal-header p {
    font-size: 0.9rem;
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.enquiry-modal-header h3 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

.enquiry-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.enquiry-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.enquiry-form {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(233, 198, 111, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto;
    margin: 0;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.signature-note {
    background: var(--gray-light);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
    border-left: 4px solid var(--secondary-color);
    margin-top: 15px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-cancel,
.btn-submit {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cancel {
    background: #f5f5f5;
    color: var(--text-dark);
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-submit {
    background: var(--primary-color);
    color: var(--white);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(101, 30, 33, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading state */
.form-loading {
    position: relative;
    pointer-events: none;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

/* Success/Error Messages */
.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .enquiry-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .enquiry-modal-header {
        padding: 20px;
    }
    
    .enquiry-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .enquiry-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .enquiry-modal-content {
        width: 98%;
        margin: 2% auto;
    }
    
    .enquiry-modal-header {
        padding: 15px;
    }
    
    .enquiry-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .enquiry-form {
        padding: 15px;
    }
    
    .form-section h4 {
        font-size: 1.1rem;
    }
}
/* ===================================
   ADMISSION FORM MODAL STYLES
   =================================== */
.admission-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.admission-modal-content {
    background-color: var(--white);
    margin: 1% auto;
    padding: 0;
    border-radius: 15px;
    width: 95%;
    max-width: 900px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.admission-modal-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 25px 30px;
    border-radius: 15px 15px 0 0;
    text-align: center;
    position: relative;
}

.admission-modal-header h2 {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    margin: 0 0 10px 0;
    color: var(--secondary-color);
}

.admission-modal-header h3 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

.admission-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.admission-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.admission-form {
    padding: 30px;
}

.parent-subsection {
    background: var(--gray-light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
}

.parent-subsection h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.declaration-text {
    background: var(--secondary-light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.declaration-text p {
    margin: 0;
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1.6;
    font-style: italic;
}

/* Checkbox styling for declaration */
.form-group label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

.form-group label:has(input[type="checkbox"]) {
    flex-direction: row;
    align-items: center;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
}

/* Application number field styling */
#application_no {
    background: var(--gray-light);
    color: var(--text-dark);
    font-weight: 600;
    cursor: not-allowed;
}

/* Age calculation helper */
#age_as_on_june {
    background: var(--white);
}

/* Responsive adjustments for admission form */
@media (max-width: 768px) {
    .admission-modal-content {
        width: 98%;
        margin: 2% auto;
        max-height: 90vh;
    }
    
    .admission-modal-header {
        padding: 20px;
    }
    
    .admission-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .admission-form {
        padding: 20px;
    }
    
    .parent-subsection {
        padding: 15px;
    }
    
    .declaration-text {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .admission-modal-content {
        width: 99%;
        margin: 1% auto;
    }
    
    .admission-modal-header {
        padding: 15px;
    }
    
    .admission-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .admission-form {
        padding: 15px;
    }
    
    .parent-subsection {
        padding: 12px;
    }
    
    .parent-subsection h5 {
        font-size: 1rem;
    }
}
/* ===================================
   PROVISIONAL ADMISSION LETTER MODAL STYLES
   =================================== */
.provisional-admission-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.provisional-admission-modal-content {
    background-color: var(--white);
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.provisional-admission-modal-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 25px 30px;
    border-radius: 15px 15px 0 0;
    text-align: center;
    position: relative;
}

.provisional-admission-modal-header h2 {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    margin: 0 0 5px 0;
    color: var(--secondary-color);
}

.provisional-admission-modal-header p {
    font-size: 0.9rem;
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.provisional-admission-modal-header h3 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

.provisional-admission-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.provisional-admission-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.provisional-admission-form {
    padding: 30px;
}

.deadline-note {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #2196f3;
}

.deadline-note p {
    margin: 0;
    color: #0d47a1;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.deadline-note i {
    color: #2196f3;
}

.preview-note {
    background: var(--secondary-light);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.preview-note h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.preview-note p {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-weight: 500;
}

.preview-note ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-dark);
}

.preview-note li {
    margin-bottom: 5px;
    line-height: 1.4;
}

/* ===================================
   LETTER PREVIEW MODAL STYLES
   =================================== */
.letter-preview-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.letter-preview-modal-content {
    background-color: var(--white);
    margin: 1% auto;
    padding: 0;
    border-radius: 15px;
    width: 95%;
    max-width: 900px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.3s ease-out;
}

.letter-preview-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.letter-preview-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
}

.letter-preview-close {
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.letter-preview-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.letter-preview-body {
    padding: 30px;
    background: var(--white);
    min-height: 400px;
    font-family: 'Times New Roman', serif;
    line-height: 1.6;
    color: #000;
}

.letter-preview-actions {
    padding: 20px 30px;
    background: var(--gray-light);
    border-radius: 0 0 15px 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    border-top: 1px solid #ddd;
}

.btn-print,
.btn-download,
.btn-close {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-print {
    background: #4caf50;
    color: var(--white);
}

.btn-print:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.btn-download {
    background: #2196f3;
    color: var(--white);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

.btn-close {
    background: #f5f5f5;
    color: var(--text-dark);
}

.btn-close:hover {
    background: #e0e0e0;
}

/* Print styles for letter */
@media print {
    .letter-preview-modal {
        position: static !important;
        background: none !important;
        backdrop-filter: none !important;
    }
    
    .letter-preview-modal-content {
        box-shadow: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
        max-height: none !important;
    }
    
    .letter-preview-header,
    .letter-preview-actions {
        display: none !important;
    }
    
    .letter-preview-body {
        padding: 0 !important;
        font-size: 12pt !important;
        line-height: 1.5 !important;
    }
}

/* Responsive Design for Provisional Admission Modal */
@media (max-width: 768px) {
    .provisional-admission-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .provisional-admission-modal-header {
        padding: 20px;
    }
    
    .provisional-admission-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .provisional-admission-form {
        padding: 20px;
    }
    
    .letter-preview-modal-content {
        width: 98%;
        margin: 2% auto;
    }
    
    .letter-preview-body {
        padding: 20px;
        font-size: 14px;
    }
    
    .letter-preview-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-print,
    .btn-download,
    .btn-close {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .provisional-admission-modal-content {
        width: 98%;
        margin: 2% auto;
    }
    
    .provisional-admission-modal-header {
        padding: 15px;
    }
    
    .provisional-admission-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .provisional-admission-form {
        padding: 15px;
    }
    
    .letter-preview-body {
        padding: 15px;
        font-size: 13px;
    }
}
/* ===================================
   ADMISSION CONFIRMATION LETTER MODAL STYLES
   =================================== */
.admission-confirmation-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.admission-confirmation-modal-content {
    background-color: var(--white);
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.admission-confirmation-modal-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 25px 30px;
    border-radius: 15px 15px 0 0;
    text-align: center;
    position: relative;
}

.admission-confirmation-modal-header h2 {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    margin: 0 0 5px 0;
    color: var(--secondary-color);
}

.admission-confirmation-modal-header p {
    font-size: 0.9rem;
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.admission-confirmation-modal-header h3 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

.admission-confirmation-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.admission-confirmation-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.admission-confirmation-form {
    padding: 30px;
}

.joining-note {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #4caf50;
}

.joining-note p {
    margin: 0;
    color: #2e7d32;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.joining-note i {
    color: #4caf50;
}

.confirmation-preview-note {
    background: var(--secondary-light);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.confirmation-preview-note h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.confirmation-preview-note p {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-weight: 500;
}

.confirmation-preview-note ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-dark);
}

.confirmation-preview-note li {
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Checkbox styling for admission confirmation */
.admission-confirmation-form .form-group label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

.admission-confirmation-form .form-group label:has(input[type="checkbox"]) {
    flex-direction: row;
    align-items: center;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
}

/* Fees input styling */
#fees_received {
    background: var(--white);
}

#fees_received:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* Responsive Design for Admission Confirmation Modal */
@media (max-width: 768px) {
    .admission-confirmation-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .admission-confirmation-modal-header {
        padding: 20px;
    }
    
    .admission-confirmation-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .admission-confirmation-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .admission-confirmation-modal-content {
        width: 98%;
        margin: 2% auto;
    }
    
    .admission-confirmation-modal-header {
        padding: 15px;
    }
    
    .admission-confirmation-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .admission-confirmation-form {
        padding: 15px;
    }
}