.hidden {
    display: none;
}

/* Common reset for header children */
header > * {
    margin: 0;
}

/* Desktop / large screens */
.nav_items, .menu-btn {
    display: flex; /* By default visible on desktop */
}

/* Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {

    .nav_items {
        display: none; /* Hide nav initially */
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 60px; /* adjust based on header height */
        left: 0;
        right: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 999;
        padding: 15px 0;
    }

    .nav_items.active {
        display: flex; /* Show nav when active */
    }

    .menu-btn {
        display: block; /* Show menu button */
        cursor: pointer;
        padding: 10px 15px;
        background-color: #007bff;
        color: white;
        border-radius: 5px;
        font-weight: 600;
        user-select: none;
    }

    /* Other existing mobile styles */

    img {
        width: 100%;
    }

    .hero-container {
        flex-direction: column;
        height: auto;
    }

    .heading, .newsletter .content h2 {
        font-size: 2rem;
    }

    .hero-image,  .btn, .outline-btn,  .hero-text h1.heading, .school-section h2.heading, .hero-text p,
    .about-image, .about-info, .about-info h2.heading, .school-section .text-content p, .classes-section h2.heading {
        width: 100%;
    }

    .btn-group {
        flex-direction: column;
    }

    .about-section, .school-section {
        flex-direction: column;
    }

    .why-us-box {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }

    .icon-text {
        height: auto;
    }

    h3 {
        line-height: 1.5;
    }

    .icon {
        flex-shrink: 0;
    }

    .class-cards, .footer  {
        grid-template-columns: repeat(1, 1fr);
    }

    .classes-section, .newsletter .content {
        padding: 15px;
    }
}

/* Tablet Devices (min-width: 481px and max-width: 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .nav_items {
        display: none; /* Hide nav initially */
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 999;
        padding: 15px 0;
    }

    .nav_items.active {
        display: flex; /* Show nav when active */
    }

    .menu-btn {
        display: block;
        cursor: pointer;
        padding: 10px 15px;
        background-color: #007bff;
        color: white;
        border-radius: 5px;
        font-weight: 600;
        user-select: none;
    }

    header > * {
        margin: 0;
    }

    .hero-container {
        flex-direction: column;
        height: auto;
    }

    .about-section {
        flex-direction: column;
        align-items: start;
    }

    .hero-image,  .hero-text h1.heading, .school-section h2.heading, .hero-text p,
    .about-image, .about-info, .about-info h2.heading, .school-section .text-content p, .classes-section h2.heading {
        width: 100%;
    }

    .hero-image img {
        width: 65%;
    }

    .school-section {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .classes-section {
        padding: 24px;
    }

    .class-cards, .footer {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Laptop or Desktop (min-width: 769px and max-width: 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px){
    .hero-image {
        flex-shrink: 0;
    }

    .hero-text h1.heading, .school-section h2.heading, .hero-text p,
    .about-image, .about-info, .about-info h2.heading, .school-section .text-content p, .classes-section h2.heading {
        width: 100%;
    }

    .school-section {
        flex-direction: row;
        align-items: center;
    }
    .school-section .text-content {
        width: 60%;
    }

    .class-cards, .footer {
        grid-template-columns: repeat(3, 1fr);
    }
}
