* {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}


.banner-site {
    background-image: linear-gradient(to Left, rgba(0, 0, 0, 0.848), rgba(0, 0, 0, 0.634)),
        url(https://teachpedia.com.br/wp-content/uploads/2024/03/temas-para-aula-de-conversacao-em-ingles.jpg);
}

h2 {
    text-align: start;
    font-weight: 900;
    font-size: 2rem;
    display: flex;
    justify-content: flex-start;
    margin: 1rem 0 0 9rem;
}

h1 {
    color: #9A1915;
    font-size: 1.7rem;
}

p {
    font-size: 1.2rem;
}

.line {
    border: 0;
    height: 0.25rem;
    background-color: #9A1915;
    margin: 1rem 9rem;
    width: 28rem;
    justify-content: flex-start;
    border-radius: 1rem;
}

.description-text {
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: row;
    text-align: center;
    margin: 5rem 8rem;
    font-size: 20px;
    gap: 1rem;
}

.video-container {
    width: 50%;
    height: 35rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    border-radius: 1rem;
    gap: 2rem;
}

.teacher-image {
    border-radius: 2rem;
    height: 350px;
    width: 350px;
    border-radius: 65%;
    flex-shrink: 0;
}

.text-container {
    display: flex;
    font-size: 1.3rem;
    text-align: justify;
    max-width: 20rem;
    hyphens: auto;
    align-items: center;
    word-spacing: 0.1em;
    text-align-last: center;
    flex-direction: column;
    gap: 2rem;
    line-height: 1.75rem;
}

.video-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}

.video-content1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}

.text-container h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.video-container {
    display: flex;
    width: 40rem;
}

.video-aula-section {
    text-align: center;
}

.video-aula-title {
    font-size: 2.5rem;
    color: #9A1915;
    margin-bottom: 2rem;
}

.carousel-container {
    position: relative;
    width: 85%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1rem;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.carousel-item {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 20px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
    border-radius: 50%;
    z-index: 2;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border: none;
}

.video-description {
    margin-top: 10px;
    font-size: 1rem;
    color: #333;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .description-text {
        flex-direction: column;
        font-size: 18px;
        margin: 2rem;
    }

    .video-container {
        width: 80%;
        height: auto;
    }

    .teacher-image {
        height: 300px;
        width: 300px;
    }

    .text-container {
        max-width: 100%;
        font-size: 0.9rem;
    }

    .video-content,
    .video-content1 {
        flex-direction: column-reverse;
        margin-left: 0;
    }

    .text-container h1 {
        font-size: 1.5rem;
    }

    h2 {
        margin: 2.5rem;
    }

    .line {
        margin: 2.5rem;
    }

    .title-video {
        margin: 1.5rem
    }

    p {
        margin: 1.5rem;
    }
}

@media (max-width: 769px) {
    .description-text {
        font-size: 20px;
        margin: 1rem;
    }

    .line {
        width: 50%;
        align-items: center;
        justify-content: center;
    }

    .video-container {
        width: 100px;
    }

    video {
        width: 260px;
        height: 260px;
    }

    .teacher-image {
        height: 175px;
        width: 175px;
    }

    .text-container {
        font-size: 20px;
        gap: 1rem;

    }

    .text-container h1 {
        font-size: 1.2rem;
    }
}


@media (max-width: 319px) {
    .teacher-image {
        width: 100px;
        height: 100px;
    }

    .line {
        width: 50%;
        align-items: center;
    }

    video {
        width: 260px;
        height: 260px;
    }

    .video-aula-section h2 {
        text-align: center;
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1.2rem;
        text-align: center;
    }
}

@media (max-width: 468px) {
    .line {
        width: 60%;
        margin: 0 auto;
        align-items: center;
    }

    h2 {
        font-size: 1.2em;
        text-align: center;
        justify-content: center;
    }

    .divider-section {
        align-items: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {

    .video-content,
    .video-content1 {
        flex-direction: column-reverse;
        align-items: center;
    }

    .video-container {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .text-container p {
        font-size: 1.2rem;
    }

    .teacher-image {
        width: 100%;
    }

    .video-container video {
        width: 100%;
    }
}


@media (max-width: 1024px) {
    .video-aula-title {
        font-size: 2rem;
    }

    iframe {
        max-width: 600px;
        height: 340px;
    }

    .video-description {
        font-size: 0.9rem;
    }

    .carousel-button {
        font-size: 1.2rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .banner-site {
        height: 200px;
    }

    .video-aula-title {
        font-size: 1.8rem;
    }

    iframe {
        max-width: 450px;
        height: 260px;
    }

    .video-description {
        font-size: 0.85rem;
    }

    .carousel-button {
        font-size: 1rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .video-aula-title {
        font-size: 1.5rem;
    }

    iframe {
        max-width: 320px;
        height: 180px;
    }

    .video-description {
        font-size: 0.8rem;
    }

    .carousel-button {
        font-size: 0.9rem;
        padding: 0.3rem 0.5rem;
    }

    h2 {
        margin-bottom: 1rem;
    }
}