/* ==========================================================================
   Responsive Overhaul (Oxford School)
   ========================================================================== */

/* --- General Typography Scaling --- */
@media (max-width: 1400px) {
    .container { max-width: 1200px; }
    .hero-title { font-size: 4rem; }
}

@media (max-width: 1199.98px) {
    .hero-title { font-size: 3.5rem; }
    .section-title { font-size: 2.2rem; }
    .page-title { font-size: 2.8rem; }
}

/* --- Tablet Devices (992px and below) --- */
@media (max-width: 991.98px) {
    /* Navigation Adjustments */
    .header-wrapper {
        height: auto;
    }

    .main-nav {
        background-color: var(--white);
        padding: 8px 0 !important;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        position: sticky;
        top: 0;
    }

    .main-nav.scrolled .nav-container {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        transform: none;
        background-color: var(--white);
        border: none;
        padding: 5px 15px !important;
    }

    .navbar-collapse {
        background-color: var(--white);
        padding: 25px;
        margin-top: 10px;
        border-radius: 15px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        border: 1px solid rgba(0,0,0,0.05);
    }

    /* Hero Section */
    .hero-section {
        height: auto;
        min-height: 500px;
        padding: 100px 0 60px !important;
        text-align: center;
    }
}

/* --- Mobile Landscape (768px and below) --- */
@media (max-width: 767.98px) {
    .top-bar {
        display: none !important;
    }

    .announcement-bar marquee {
        font-size: 0.85rem;
    }

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

    /* Popup Mobile */
    .popup-content {
        max-width: 95%;
        padding: 5px;
    }

    .popup-close {
        top: 5px;
        right: 5px;
        width: 35px;
        height: 35px;
    }

    /* Sections */
    .smart-learning h2 { font-size: 1.8rem; }
    .faculty-section .row { gap: 15px; }
    .sports-excellence img { margin-top: 25px; height: 250px; object-fit: cover; }
}

/* --- Small Phones (576px and below) --- */
@media (max-width: 575.98px) {
    .logo-title {
        font-size: 1.3rem;
    }

    .logo-subtitle {
        font-size: 0.7rem;
    }

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

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

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

    /* Value Cards Mobile Fix */
    .value-card {
        padding: 30px !important;
    }

    .value-number {
        font-size: 2.5rem;
        top: 10px;
        right: 15px;
    }

    .btn-primary-custom, .btn-outline-custom {
        width: 100%;
        display: block;
        margin-bottom: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .contact-info-card {
        padding: 20px !important;
    }

    .newsletter-form form {
        flex-direction: column;
        gap: 10px !important;
    }

    .newsletter-form button {
        width: 100%;
    }
}

/* --- Additional Fixes for Smooth Scroll & Animations --- */
[data-aos] {
    pointer-events: none;
}

.aos-animate {
    pointer-events: auto;
}
