/* BANNER */

.banner_top {
    width: 100%;
    height: max-content;
    padding: 30rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-direction: column;
    overflow: hidden;
    background: 
        linear-gradient(var(--bg-color), var(--bg-color)),
        url("/src/bg_tutoriais.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.text_title_banner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.banner_top p {
    color: var(--apoio-color);
    font-weight: 600;
    font-size: 2rem;
}

.banner_top h1 {
    font-size: 6rem;
    color: var(--text-color);
}

.search_tuto {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 450px;
}

.search_tuto input {
    border-radius: 3rem;
    border: solid .2rem var(--apoio-color);
    width: 100%;
    padding: 1rem 2rem;
}

.search_tuto input::placeholder {
    opacity: 70%;
}

.icon_search {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 5%;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2rem;
}

/* VIDEOS */

.container_videos {
    width: 100%;
    height: max-content;
    padding: 10rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: -30rem;
    box
}

.box_tab {
    width: 100%;
    height: max-content;
    display: flex;
    justify-content: center;
    align-items: center;
}

.list_tab {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    list-style: none;
    width: 100%;
    height: max-content;
    padding: 5rem 0 0 0;
}

.tab_btn {
    cursor: pointer;
    color: var(--text-color);
    font-weight: 600;
    padding: 1rem;
    background: transparent;
}

.tab_btn.active {
    background-color: var(--bg-body);
    padding: 2rem 5rem;
    border-radius: 1rem 1rem 0 0;
    color: var(--primary-color);
}

.content_box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: max-content;
    background-color: var(--bg-body);
    padding: 5rem 3rem;
    border-radius: 1rem 1rem 0 0;
}

.content {
    display: none;
    justify-content: center;
    align-items: center;
}

.content.active {
    display: flex;
    position: relative;
}

.alert_zero {
    color: var(--primary-color);
    font-size: 1.4rem;
    text-align: center;
    position: absolute;
    top: 5%;
    left: 5%;
}

.box_video {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
    min-width: 1000px;
    height: 100%;
    min-height: 400px;
}

.bg_video_container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    background-color: var(--bg-video);
    transition: .3s ease-in-out;
    z-index: 10;
}

.video_container.active .bg_video_container {
    opacity: 1;
}

.video_container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 32rem;
    height: 18rem;
    cursor: pointer;
    transition: transform .3s ease-in-out, opacity .3s ease-in-out, scale .3s ease-in-out;
}

.box_video:has(.video_container:hover) .video_container:not(:hover) {
    opacity: .6;
    scale: .9;
}

.box_img {
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.box_img.active {
    background-color: var(--bg-video);
}

.box_img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.video_container.active .box_img img {
    filter: blur(.2rem);
}

.btn_play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 99;
    transition: opacity .4s ease-out;
}

.video_container.active .btn_play {
    opacity: 1;
}

.btn_play svg {
    color: var(--apoio-color);
}

.box_description {
    position: absolute;
    bottom: 0;
    left: 0;
    overflow: hidden;
    padding: 1rem;
    width: 100%;
    z-index: 99;
    transform: translateY(20rem);
    transition: transform .3s ease-in-out;
}

.video_container.active .box_description {
    transform: translateY(0);
}

.box_description p {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.container_video_body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-video-full);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
}

.btn_close_video {
    position: absolute;
    top: 5rem;
    right: 5rem;
    cursor: pointer;
}

.btn_close_video svg {
    transition: .3s ease-out;
    color: var(--apoio-color);
}

.btn_close_video:hover svg {
    color: var(--bg-body);
}

.box_iframe {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 128rem;
    height: 100%;
    max-height: 72rem;
}

.box_iframe iframe {
    width: 100%;
    height: 100%;
}

@media(max-width: 1428px) {
    .box_video {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 1280px) {
    .box_video {
        max-width: 99%;
    }

    .video_container {
        width: 100%;
    }
}

@media(max-width: 1024px) {
    .box_video {
        grid-template-columns: repeat(2, 1fr);
        min-width: auto;
    }
}

@media(max-width: 780px) {
    .box_video {
        grid-template-columns: repeat(1, 1fr);
    }

    .search_tuto {
        max-width: 90%;
    }

}
