/* ==========================================================================
   ACP-SG
   VÍDEOS
   ========================================================================== */


/* ==========================================================================
   HERO
   ========================================================================== */

.videos-hero {
    padding: 80px 0 65px;
    background: #f5f8fa;
}


.videos-hero__content {
    max-width: 760px;
}


.videos-hero__label {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #176b78;
}


.videos-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    font-weight: 800;
    color: #174f59;
}


.videos-hero p {
    margin: 0;
    max-width: 700px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #52666b;
}





/* ==========================================================================
   CONTEÚDO
   ========================================================================== */

.videos-content {
    padding: 70px 0 90px;
}


.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 52px 24px;
}





/* ==========================================================================
   ITEM DO VÍDEO
   ========================================================================== */

.video-item {
    min-width: 0;
}


.video-item__media {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    border-radius: 6px;
    background: #222;
}


.video-item__media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}





/* ==========================================================================
   CAMADA "ASSISTA"
   ========================================================================== */

.video-watch-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    background: rgba(15, 83, 96, 0.42);

    opacity: 1;

    transition:
        opacity 0.45s ease,
        visibility 0.45s ease,
        background 0.35s ease;
}


.video-watch-overlay:hover {
    background: rgba(15, 83, 96, 0.18);
}


.video-watch-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}





/* ==========================================================================
   BOTÃO ASSISTA
   ========================================================================== */

.video-watch-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;

    color: #ffffff;

    transform: scale(1);

    transition:
        transform 0.45s ease,
        opacity 0.45s ease;
}


.video-watch-overlay:hover .video-watch-button {
    transform: scale(1.08);
}


.video-watch-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 68px;
    height: 68px;

    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;

    background: rgba(17, 82, 94, 0.55);

    font-size: 1.65rem;
    line-height: 1;

    padding-left: 4px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.35s ease,
        background 0.35s ease;
}


.video-watch-overlay:hover .video-watch-icon {
    transform: scale(1.08);
    background: rgba(17, 82, 94, 0.75);
}


.video-watch-text {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.25);
}





/* ==========================================================================
   TÍTULO
   ========================================================================== */

.video-item__content {
    padding: 15px 2px 0;
}


.video-item__title {
    margin: 0;

    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 700;

    color: #174f59;
}





/* ==========================================================================
   EFEITO DE ENTRADA
   ========================================================================== */

.video-item {
    animation: videoFadeIn 0.65s ease both;
}


.video-item:nth-child(2) {
    animation-delay: 0.08s;
}


.video-item:nth-child(3) {
    animation-delay: 0.16s;
}


.video-item:nth-child(4) {
    animation-delay: 0.24s;
}


.video-item:nth-child(5) {
    animation-delay: 0.32s;
}


.video-item:nth-child(6) {
    animation-delay: 0.40s;
}


.video-item:nth-child(7) {
    animation-delay: 0.48s;
}


.video-item:nth-child(8) {
    animation-delay: 0.56s;
}


@keyframes videoFadeIn {

    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}





/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 900px) {

    .videos-hero {
        padding: 65px 0 50px;
    }


    .videos-content {
        padding: 55px 0 70px;
    }


    .videos-grid {
        gap: 40px 20px;
    }


    .video-watch-icon {
        width: 60px;
        height: 60px;
        font-size: 1.45rem;
    }

}





/* ==========================================================================
   CELULAR
   ========================================================================== */

@media (max-width: 700px) {

    .videos-hero {
        padding: 50px 0 42px;
    }


    .videos-hero h1 {
        font-size: 2rem;
    }


    .videos-hero p {
        font-size: 0.98rem;
        line-height: 1.6;
    }


    .videos-content {
        padding: 42px 0 60px;
    }


    .videos-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }


    .video-item__media {
        border-radius: 5px;
    }


    .video-item__content {
        padding-top: 12px;
    }


    .video-item__title {
        font-size: 1rem;
    }


    .video-watch-icon {
        width: 58px;
        height: 58px;
        font-size: 1.4rem;
    }


    .video-watch-text {
        font-size: 0.82rem;
    }

}





/* ==========================================================================
   ACESSIBILIDADE
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .video-item {
        animation: none;
    }


    .video-watch-overlay,
    .video-watch-button,
    .video-watch-icon {
        transition: none;
    }

}

/* ============================================================
   VÍDEOS DO YOUTUBE
   ============================================================ */

.video-item__media iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: inherit;
    background: #000;
}

/* ============================================================
   VÍDEOS DO YOUTUBE
   ============================================================ */

.video-item[data-video-type="youtube"] .video-item__media {
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
}


.video-item[data-video-type="youtube"] .video-item__media iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
}