/* iPad and larger tablets */
@media (max-width: 1024px) {
    section {
        padding: 2rem 1rem;
        height: auto;
        min-height: 100vh;
    }

    /* Hero section */
    .hero-text-container {
        margin-left: 0;
        width: 400px;
        text-align: center;
        justify-content: center;
        margin: auto;
    }

    .hero-text {
        width: auto;
        font-size: 5rem;
    }

    .tagline {
        font-size: 1.5rem;
    }

    .cta-btn {
        width: 150px;
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }

    /* About section */
    #about {
        flex-direction: column;
    }

    .about-text {
        margin: 1rem;
    }

    .about-text p {
        font-size: 1.2rem;
        text-align: center;
        word-spacing: normal;
    }

    .instructors-img {
        width: 100%;
        padding: 1rem;
    }

    .about-btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    /* Program section */
    .program-card-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .program-card {
        width: 60%;
        padding: 1rem;
        margin: 0.25rem;
    }

    .program-card h3 {
        font-size: 1.5rem;
    }

    .program-card p {
        font-size: 2rem;
    }

    /* Schedule */
    .schedule-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .vl {
        display: none;
    }

    .specialized-training-container {
        flex-direction: row;
        gap: 1rem;
    }

    .specialized-training-container h3 {
        font-size: 1.5rem;
    }

    .specialized-training-container h4 {
        font-size: 1.2rem;
    }

    .specialized-training-container p {
        font-size: 0.9rem;
    }

    #cta {
        flex-direction: column;
        align-items: space-between;
        gap: 5rem;
    }

    /* Testimonials */
    .carousel {
        max-width: 100%;
    }

    /* Other adjustments */
    button {
        font-size: 1.2rem;
        width: auto;
        padding: 0.8rem 1.5rem;
    }


}

/* Phones and small devices */
@media (max-width: 767px) {
    section {
        padding: 2rem 1rem;
        height: auto;
        min-height: 100vh;
    }

    h2 {
        font-size: 2.5rem;
    }

    /* Hero section */
    .hero-text-container {
        margin: auto;
        text-align: center;
    }

    .hero-background {
        width: 100%;
        background-size: cover;
    }

    .hero-text {
        width: auto;

        font-size: 4rem;
    }

    .overlay {
        width: 100%;
        height: 100%;
    }

    .tagline {
        font-size: 1.5rem;
    }

    .contact-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .cta-btn {
        width: 150px;
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }

    /* About section */
    #about {
        flex-direction: column;
    }

    .about-text {
        margin: 1rem;
    }

    .about-text p {
        font-size: 1.2rem;
        text-align: center;
        word-spacing: normal;
    }

    .instructors-img {
        width: 100%;
        padding: 1rem;
    }

    .about-btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    /* Program section */
    .program-card-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .program-card {
        width: 100%;
        padding: 1rem;
        margin: 0.25rem;
    }

    .program-card h3 {
        font-size: 1.5rem;
    }

    .program-card p {
        font-size: 1rem;
    }

    /* Schedule */
    .schedule-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .vl {
        display: none;
    }

    .specialized-training-container {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 2rem;
    }

    .specialized-training-container h3 {
        font-size: 1.25rem;
    }

    .specialized-training-container h4 {
        font-size: .75rem;
    }

    .specialized-training-container p {
        font-size: 0.9rem;

    }

    /* Testimonials */
    .carousel-container {
        width: 100%;
    }

    .carousel {
        width: 100%;
    }

    /* Other adjustments */
    button {
        font-size: 1.2rem;
        width: auto;
        padding: 0.8rem 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
    }
}