@media (max-width: 768px) {
    .top-bar-container {
        flex-direction: column;
    }

    .top-bar-social {
        display: none;
    }

    .nav-links {
        display: none;
        width: 100%;
        text-align: center;
        flex-direction: column;
        background-color: #fff;
        position: absolute;
        top: 70px;
        left: 0;
        z-index: 999;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .nav-links.nav-active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .burger {
        display: block;
    }

    #hero {
        height: 60vh;
    }

    .hero-container h1 {
        font-size: 36px;
    }

    .hero-container p {
        font-size: 18px;
    }

    .info-cards-container {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .courses-container .course-cards {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .course-cards .card {
        flex: 0 0 80%;
        margin-right: 20px;
    }

    .beyond-admissions-container {
        grid-template-columns: 1fr;
    }

    .beyond-admissions-image {
        height: 250px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-cards {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .testimonial-card {
        flex: 0 0 80%;
        margin-right: 20px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about,
    .footer-links,
    .footer-courses,
    .footer-contact {
        text-align: center;
    }

    .modal-content {
        width: 90%;
        margin: 20% auto;
    }

    #free-counseling-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .top-bar-contact {
        text-align: center;
    }
    .top-bar-contact a {
        display: block;
        margin: 5px 0;
    }
    #hero {
        height: 50vh;
    }
    .stats-container {
        grid-template-columns: 1fr;
    }
    .footer-container {
        padding: 0 20px;
    }

    .course-cards .card {
        flex: 0 0 90%;
    }

    .testimonial-card {
        flex: 0 0 90%;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

#thank-you-modal .modal-content {
    text-align: center;
}

.modal-open {
    overflow: hidden;
}
