/* =====================================
   LARGE LAPTOPS
===================================== */

@media (max-width: 1200px) {

    .hero h1 {
        font-size: 3.5rem;
    }

    .container {
        width: 92%;
    }

}

/* =====================================
   TABLETS
===================================== */

@media (max-width: 992px) {

    section {
        padding: 80px 0;
    }

    /* HERO */

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-left {
        order: 2;
    }

    .hero-right {
        order: 1;
    }

    .hero-right img {
        max-width: 450px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    /* ABOUT */

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content {
        text-align: center;
    }

    /* PROGRAMS */

    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* STATS */

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* NAVBAR */

    .nav-menu {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 90px);

        background: white;

        flex-direction: column;
        align-items: flex-start;

        padding: 40px 30px;
        gap: 25px;

        box-shadow:
        -10px 0 30px rgba(0,0,0,.08);

        transition: .4s ease;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-menu {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--dark);
    }

    .nav-buttons .btn {
        display: none;
    }

}

/* =====================================
   MOBILE DEVICES
===================================== */

@media (max-width: 768px) {

    section {
        padding: 70px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero {
        padding-top: 130px;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-right img {
        max-width: 350px;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card h2 {
        font-size: 2.5rem;
    }

    .about-content p {
        font-size: 15px;
    }

    .program-card {
        padding: 30px;
    }

    .navbar {
        min-height: 80px;
    }

    .logo img {
        height: 60px;
    }

}

/* =====================================
   SMALL MOBILE DEVICES
===================================== */

@media (max-width: 576px) {

    .container {
        width: 94%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header span {
        font-size: 13px;
    }

    .tagline {
        font-size: 13px;
        padding: 8px 14px;
    }

    .stat-card {
        padding: 25px;
    }

    .stat-card h2 {
        font-size: 2rem;
    }

    .program-card {
        padding: 25px;
    }

    .program-card h3 {
        font-size: 1.3rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .mobile-menu {
        font-size: 1.3rem;
    }

}

/* =====================================
   EXTRA SMALL DEVICES
===================================== */

@media (max-width: 400px) {

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-right img {
        max-width: 280px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .stat-card h2 {
        font-size: 1.8rem;
    }

}

/* =====================================
   EXTRA MOBILE FIXES FOR ALL PAGES
===================================== */

@media (max-width: 768px) {

    /* School Solutions */
    .solution-grid {
        grid-template-columns: 1fr !important;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr !important;
    }

    .blog-card img {
        height: 220px;
    }

    /* Events */
    .event-grid {
        grid-template-columns: 1fr !important;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }

    /* Contact Form */
    .contact-form {
        width: 100%;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        width: 100%;
    }

    /* Competition Banner */
    .competition-banner {
        padding: 30px 20px;
    }

    .competition-banner form {
        flex-direction: column;
        width: 100%;
    }

    .competition-banner input {
        min-width: 100% !important;
        width: 100%;
    }

    /* Article Pages */
    .article-container {
        width: 95%;
    }

    .article-container h1 {
        font-size: 30px;
        line-height: 1.3;
    }

    .article-container h2 {
        font-size: 22px;
    }

    /* Footer */
    .footer img {
        max-width: 180px;
        margin: auto;
    }

    /* Logo */
    .logo span {
        font-size: 16px;
    }

    /* Navigation Drawer */
    .nav-menu {
        width: 80%;
        max-width: 300px;
    }

    /* WhatsApp Button */
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}