/* Design System Tokens */
:root {
    --primary: #ea4c76;
    --primary-light: #f86189;
    --primary-dark: #d13a62;
    --secondary: #00cecb;
    --accent: #fdbc4d;
    --dark: #1a1a1a;
    --light: #fbf7f7;
    --white: #ffffff;
    --gray: #666666;
    --gray-light: #f0f0f0;
    
    --grad-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --grad-secondary: linear-gradient(135deg, var(--secondary) 0%, #0caadc 100%);
    --grad-mix: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    
    --shadow-sm: 0 4px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.15);
    
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 30px;
    --radius-full: 100px;
    
    --container: 1200px;
    --nav-height: 80px;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Fix for fixed navbar covering section titles */
section[id] {
    scroll-margin-top: 90px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: var(--grad-mix);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(234, 76, 118, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(234, 76, 118, 0.4);
}

.btn-secondary {
    background: var(--grad-secondary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 206, 203, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 206, 203, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

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

.btn-light:hover {
    transform: scale(1.05);
}

.w-100 { width: 100%; }

/* Navbar */
.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    height: 70px;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 50%;
}

.logo-text {
    display: block;
}

.school-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--white);
    white-space: nowrap;
}

.navbar.scrolled .school-name { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
}

.navbar.scrolled .nav-links a {
    color: var(--dark);
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-nav {
    background: var(--white);
    color: var(--primary) !important;
    padding: 10px 20px;
    border-radius: var(--radius-full);
}

.navbar.scrolled .btn-nav {
    background: var(--grad-primary);
    color: var(--white) !important;
}

.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar.scrolled .menu-toggle { color: var(--primary); }

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #000;
    color: var(--white);
    padding-top: var(--nav-height);
    padding-bottom: 220px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
    animation: zoomOut 10s infinite alternate;
}

@keyframes zoomOut {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 20;
    max-width: 1200px;
    text-align: left;
}

/* Glassmorphism backing for the huge left-aligned text */
.hero-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: radial-gradient(circle at left, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-content.centered {
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content.centered .badge {
    margin: 0 auto 20px;
}

.hero-content.centered .hero-btns {
    justify-content: center;
}

.badge {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(3.5rem, 10vw, 6.5rem); /* MASSIVE TEXT */
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 0.95;
    letter-spacing: -4px;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.lead {
    font-size: clamp(1.2rem, 3vw, 1.8rem); /* MASSIVE SUBHEADING */
    margin-bottom: 50px;
    max-width: 800px;
    opacity: 0.9;
    line-height: 1.5;
    border-left: 4px solid var(--accent);
    padding-left: 20px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
    transform: rotate(180deg);
}

.hero-shape svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.hero-shape .shape-fill {
    fill: var(--white);
}

/* Stats Section */
.stats {
    padding: 20px 0;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 40px;
    margin-top: -80px;
    position: relative;
    z-index: 30;
}

.stat-item {
    text-align: center;
    border-right: 1px solid var(--gray-light);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--gray);
    font-weight: 500;
}

/* About Section */
.about {
    padding: 60px 0;
}

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

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--grad-primary);
    color: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge .years {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.features-list {
    margin: 30px 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 500;
}

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

/* ICSE Advantage Section */
.icse-advantage {
    padding: 100px 0;
    background: var(--white);
}

.icse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.icse-card {
    text-align: center;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
}

.icse-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

/* Facilities Section */
.facilities {
    padding: 100px 0;
    background: var(--light);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.facility-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.facility-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.facility-card.active {
    background: var(--grad-primary);
    color: var(--white);
}

.facility-card.highlighted {
    background: var(--grad-secondary);
    color: var(--white);
    box-shadow: 0 15px 30px rgba(0, 206, 203, 0.3);
    z-index: 5;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.facility-card.active .icon-box,
.facility-card.highlighted .icon-box {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.facility-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.facility-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

.facility-card.active p,
.facility-card.active p,
.facility-card.highlighted p {
    color: rgba(255,255,255,0.8);
    margin-top: auto;
}

/* Hostel Section Styling */
.hostel-section {
    padding: 100px 0;
    background: #fdfdfd;
    overflow: hidden;
}

.hostel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hostel-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hostel-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.hostel-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.h-feature {
    display: flex;
    gap: 15px;
}

.h-feature i {
    width: 45px;
    height: 45px;
    background: rgba(234, 76, 118, 0.1);
    color: var(--secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.h-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.h-feature p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .hostel-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hostel-image img {
        height: 300px;
    }
    
    .hostel-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Programs Section */
.programs {
    padding: 100px 0;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.program-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: scale(1.02);
}

.program-img {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--white);
}

.kindergarten-bg { background: #ff9f43; }
.preschool-bg { background: #00d2d3; }
.elementary-bg { background: #5f27cd; }

.program-info {
    padding: 30px;
}

.program-info h3 {
    margin-bottom: 15px;
}

.program-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.program-tags li {
    background: var(--gray-light);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
}

/* Parent Info Section */
.parent-info {
    padding: 100px 0;
    background: var(--light);
}

.parent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.accordion {
    margin-top: 30px;
}

.accordion-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.accordion-header:hover { background: #fdfdfd; }

.accordion-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.accordion-header i {
    font-size: 0.8rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.accordion-body {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active .accordion-body {
    padding: 0 20px 20px;
    max-height: 200px;
}

.accordion-item.active .accordion-header i {
    transform: rotate(45deg);
}

.parent-image {
    position: relative;
    background: url('https://images.unsplash.com/photo-1543269865-cbf427effbad?auto=format&fit=crop&q=80&w=1000') no-repeat center center/cover;
    height: 500px;
    border-radius: var(--radius-lg);
}

.glass-card {
    position: absolute;
    bottom: 30px;
    left: -40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--radius-md);
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.user-info h4 { font-size: 1rem; }
.user-info p { font-size: 0.8rem; color: var(--gray); }

.testimonial {
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.stars { color: var(--accent); font-size: 0.8rem; }

/* CTA Section */
.cta {
    padding: 80px 0;
}

.cta-card {
    background: var(--grad-mix);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cta-card h2 { font-size: 2.5rem; margin-bottom: 20px; }
.cta-card p { font-size: 1.1rem; margin-bottom: 35px; max-width: 600px; margin-left: auto; margin-right: auto; opacity: 0.9; }

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.info-item h3 { font-size: 1.1rem; margin-bottom: 5px; }
.info-item p { color: var(--gray); font-size: 0.95rem; }

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

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

input, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: border 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

input { margin-bottom: 20px; }

/* Footer */
.footer {
    padding: 40px 0;
    background: var(--dark);
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p { font-size: 0.9rem; opacity: 0.7; }

.footer-links { display: flex; gap: 30px; }
.footer-links a { font-size: 0.9rem; color: var(--white); opacity: 0.7; }
.footer-links a:hover { opacity: 1; }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--grad-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 100px; /* Above back-to-top */
    right: 30px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: var(--white);
    padding: 12px 25px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    font-weight: 600;
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    color: var(--white);
}

.whatsapp-float i {
    font-size: 1.5rem;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .stat-item { border-right: none; }
    .about-grid, .parent-grid, .contact-grid { grid-template-columns: 1fr; }
    .facilities-grid, .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .glass-card { position: static; margin-top: 30px; max-width: 100%; }
    .parent-image { height: 300px; }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
        padding-bottom: 120px;
        min-height: auto;
        text-align: center;
    }

    .hero-shape {
        display: none !important;
    }

    .hero h1 {
        font-size: 12vw !important;
        letter-spacing: -1px;
        line-height: 1.1;
    }

    .stats {
        margin-top: 0;
        padding: 60px 0;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-content::before {
        left: -10%;
        right: -10%;
        background: radial-gradient(circle at center, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 80%);
    }

    .hero h1 {
        font-size: 3.5rem; /* Increased from 2.8rem */
        letter-spacing: -2px;
        line-height: 1;
        margin-bottom: 20px;
    }

    .hero p.lead {
        font-size: 1.1rem;
        border-left: none;
        padding-left: 0;
        margin-bottom: 30px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .school-name {
        font-size: 1.1rem;
        white-space: normal;
        max-width: 180px;
    }

    .logo-img {
        height: 40px;
    }

    .stats {
        margin-top: 0;
        padding: 60px 0;
        position: relative;
        z-index: 10;
        background: var(--white);
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px !important;
        /* overflow-x: hidden !important; */
    }

    .navbar {
        height: 60px !important;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--white);
        flex-direction: column;
        padding: 50px 20px;
        transition: 0.5s;
        z-index: 999;
    }
    
    .nav-links.active { left: 0; }
    
    .nav-links a { color: var(--dark); font-size: 1.2rem; }
    
    .menu-toggle { 
        display: block !important; 
        color: var(--primary) !important;
    }
    
    .hero {
        text-align: center !important;
        padding: 120px 0 220px !important;
        height: auto !important;
        min-height: 80vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .hero h1 { 
        /* font-size: 2.2rem !important;  */
        margin-bottom: 20px !important;
    }

    .hero .lead { 
        font-size: 1rem !important; 
        margin-bottom: 30px !important;
    }
    

    
    .hero-btns {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        width: 100% !important;
    }
    
    .hero-btns .btn { 
        width: 100% !important;
        max-width: 280px !important;
        display: block !important;
        margin: 0 auto !important;
    }

    .about-image {
        margin-bottom: 40px !important;
    }

    .experience-badge {
        padding: 10px 15px !important;
        right: 10px !important;
        bottom: 10px !important;
        position: absolute !important;
        max-width: 130px !important;
    }

    .experience-badge .years { font-size: 1.2rem !important; }
    .experience-badge .text { font-size: 0.65rem !important; white-space: normal !important; }

    .facilities-grid, .programs-grid, .icse-grid { grid-template-columns: 1fr !important; }
    
    .form-row { grid-template-columns: 1fr !important; gap: 0 !important; }

    .back-to-top {
        bottom: 20px !important;
        right: 20px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }

    .section-header h2 { font-size: 1.8rem !important; }
    
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 30px 15px !important;
        margin-top: -50px !important;
        width: 100% !important;
        box-shadow: var(--shadow-md) !important;
        z-index: 40 !important;
    }
    
    .stat-item h3 { font-size: 1.6rem !important; }
    .stat-item p { font-size: 0.75rem !important; }

    .cta-card {
        padding: 40px 20px !important;
    }
    
    .cta-card h2 { font-size: 1.8rem !important; }
    
    .contact-form {
        padding: 25px !important;
    }

    .whatsapp-float {
        bottom: 80px !important; /* Above back-to-top on mobile */
        right: 15px !important;
        left: auto !important;
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
    }
    
    .whatsapp-text { display: none; } /* Hide text on small mobiles, show icon only */
    .whatsapp-float { width: 50px; height: 50px; justify-content: center; padding: 0 !important; border-radius: 50%; }
}

@media (max-width: 480px) {
    .school-name { font-size: 1rem !important; }
    .logo-img { height: 40px !important; }
    .navbar.scrolled { height: 60px !important; }
}
/* Gallery Section */
.gallery {
    padding: 100px 0;
    background-color: var(--light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay h4 {
    color: var(--white);
    margin: 0;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 5px 0 0;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay h4,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}
