/* ==========================================

   O MELHOR DA EDUCAÇÃO - GRUPO AREDE

   CSS FINAL ORGANIZADO

========================================== */

/* ==========================================

   1. CONTAINER PRINCIPAL

========================================== */

.educacao-videos {

    grid-column: 1 / -1;

    width: 100%;

    min-width: 0;

    padding: 35px 40px 50px;

    margin: 0 auto;

    background: #e5e7d9;

    box-sizing: border-box;

}

.educacao-videos *,

.educacao-videos *::before,

.educacao-videos *::after {

    box-sizing: border-box;

}

/* ==========================================

   2. TÍTULO DA EDITORIA

========================================== */

.educacao-videos-header {

    max-width: 1290px;

    margin: 0 auto 32px;

    border-bottom: 2px solid #aaa99f;

}

.educacao-videos-header h2 {

    display: inline-block;

    font-family: "GiorgioSans-Regular", sans-serif;

    font-size: 64px;

    font-weight: normal;

    line-height: 1.15;

    color: #444052;

    margin: 0 0 -2px;

    padding-bottom: 10px;

    border-bottom: 1px solid #444052;

    text-transform: uppercase;

}

/* ==========================================

   3. GRID PRINCIPAL

========================================== */

.educacao-videos-grid {

    display: grid;

    grid-template-columns:

        minmax(0, 3fr)

        minmax(0, 1.65fr);

    gap: 24px;

    max-width: 1290px;

    min-width: 0;

    margin: 0 auto;

    align-items: start;

}

/* ==========================================

   4. TRÊS CHAMADAS FIXAS

========================================== */

.educacao-videos-fixos {

    display: grid;

    grid-template-columns:

        repeat(3, minmax(0, 1fr));

    gap: 30px;

    align-items: stretch;

    width: 100%;

    min-width: 0;

}

/* CARD */

.educacao-video-card {

    display: flex;

    flex-direction: column;

    min-width: 0;

    height: 100%;

}

/* LINK DO ARTIGO */

.educacao-video-click {

    display: flex;

    flex-direction: column;

    flex: 1;

    width: 100%;

    min-width: 0;

    height: 100%;

    color: inherit;

    text-decoration: none;

    cursor: pointer;

}

.educacao-video-click:hover {

    text-decoration: none;

}

/* ==========================================

   5. IMAGENS DAS CHAMADAS FIXAS

========================================== */

.educacao-video-thumb {

    position: relative;

    flex-shrink: 0;

    width: 100%;

    aspect-ratio: 1.23;

    margin: 0;

    overflow: hidden;

    border-radius: 9px;

    background: #d4d5cc;

}

.educacao-video-thumb img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform .3s ease;

}

.educacao-video-click:hover .educacao-video-thumb img {

    transform: scale(1.04);

}

/* ==========================================

   6. TÍTULOS E CATEGORIAS

========================================== */

/* CONTAINER DE INFORMAÇÕES */

.educacao-video-info {

    display: flex;

    flex-direction: column;

    flex: 1;

    width: 100%;

    min-width: 0;

    padding-top: 12px;

}

/* TÍTULO COM ALTURA VARIÁVEL */

.educacao-video-info h3 {

    font-family: "GuardianSans-Semibold", sans-serif;

    font-size: 19px;

    font-weight: 600;

    line-height: 1.2;

    color: #202020;

    margin: 0 0 12px;

    overflow-wrap: break-word;

}

.educacao-video-click:hover .educacao-video-info h3 {

    text-decoration: underline;

}

/* ==========================================

   7. CATEGORIA AUTOMÁTICA

========================================== */

/*

   Nome e cor vêm do Front CMS.

   A categoria permanece na parte inferior

   do card, independentemente da altura

   do título.

*/

.educacao-videos

.educacao-video-categoria.spancategoryinfo {

    display: block;

    width: 100%;

    margin-top: auto;

    padding-top: 6px;

    font-family: "GuardianSans-Regular", sans-serif;

    font-size: 13px;

    font-weight: 400;

    line-height: 1.4;

    text-align: left;

    text-transform: uppercase;

    overflow-wrap: break-word;

}

/*

   A cor não é definida aqui.

   Será utilizada a cor dinâmica

   cadastrada no CMS.

*/

/* ==========================================

   8. CARROSSEL SPLIDE

========================================== */

.educacao-video-slider {

    position: relative;

    isolation: isolate;

    width: 100%;

    min-width: 0;

    overflow: hidden;

    background: #000;

    border-radius: 9px 9px 0 0;

}

/* TRACK */

.educacao-video-slider .splide__track {

    width: 100%;

    overflow: hidden;

}

/* LISTA */

.educacao-video-slider .splide__list {

    align-items: stretch;

}

/* SLIDES */

.educacao-video-slider .splide__slide {

    min-width: 0;

}

/* CARD */

.educacao-slide-card {

    position: relative;

    isolation: isolate;

    width: 100%;

    height: 325px;

    overflow: hidden;

    background: #222;

}

/* ==========================================

   9. IMAGEM DO CARROSSEL

========================================== */

.educacao-slide-click {

    position: relative;

    display: block;

    width: 100%;

    height: 100%;

    margin: 0;

    padding: 0;

    border: none;

    overflow: hidden;

    background: transparent;

    text-decoration: none;

    cursor: pointer;

}

.educacao-slide-img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

}

/* ==========================================

   10. BOTÃO PLAY

========================================== */

.educacao-video-slider .educacao-video-play {

    position: absolute;

    top: 43%;

    left: 50%;

    transform: translate(-50%, -50%);

    display: flex;

    align-items: center;

    justify-content: center;

    width: 65px;

    height: 65px;

    background: rgba(255,255,255,.85);

    border-radius: 50%;

    z-index: 5;

    pointer-events: none;

    transition:

        background .3s ease,

        scale .3s ease;

}

/* TRIÂNGULO */

.educacao-video-slider .educacao-play-triangle {

    width: 0;

    height: 0;

    border-top: 14px solid transparent;

    border-bottom: 14px solid transparent;

    border-left: 20px solid #455765;

    margin-left: 5px;

}

/* HOVER */

.educacao-slide-click:hover .educacao-video-play {

    background: #fff;

    scale: 1.08;

}

/* ==========================================

   11. DEGRADÊ DO CARROSSEL

========================================== */

.educacao-slide-info {

    position: absolute;

    left: 0;

    right: 0;

    bottom: 0;

    padding: 20px 24px 56px;

    background: linear-gradient(

        to bottom,

        rgba(49,45,61,.15) 0%,

        rgba(49,45,61,.78) 25%,

        rgba(49,45,61,.95) 100%

    );

    color: #fff;

    z-index: 3;

    pointer-events: none;

}

/* ==========================================

   12. ETIQUETA DESTAQUE

========================================== */

.educacao-slide-tag {

    position: relative;

    z-index: 1;

    display: inline-block;

    width: fit-content;

    max-width: 100%;

    padding: 7px 22px;

    background: #a8b184;

    font-family: "GuardianSans-Bold", sans-serif;

    font-size: 16px;

    font-weight: 700;

    line-height: 1.2;

    color: #fff;

    text-transform: uppercase;

    overflow-wrap: break-word;

}

/* ==========================================

   13. TÍTULO DO CARROSSEL

========================================== */

.educacao-slide-info h3 {

    position: relative;

    z-index: 2;

    margin: 10px 0 0;

    font-family: "GuardianSans-Bold", sans-serif;

    font-size: 20px;

    font-weight: 700;

    line-height: 1.25;

    color: #fff;

    overflow-wrap: break-word;

}

/* ==========================================

   14. FAIXA PRETA INFERIOR

========================================== */

/* FAIXA ATRÁS DOS CONTROLES */

.educacao-slide-info::after {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: 0;

    height: 46px;

    background: #000;

    z-index: 0;

    pointer-events: none;

}

/* ==========================================

   15. BOTÃO VER MAIS

========================================== */

.educacao-slide-vermais {

    position: absolute;

    left: 50%;

    bottom: 10px;

    transform: translateX(-50%);

    z-index: 5;

    display: flex;

    align-items: center;

    justify-content: center;

    width: fit-content;

    min-width: 105px;

    height: 26px;

    margin: 0;

    padding: 2px 16px;

    background: transparent;

    border: 1px solid #fff;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 600;

    font-style: italic;

    line-height: 1;

    color: #fff;

    text-decoration: none;

    white-space: nowrap;

    pointer-events: auto;

    transition: background .2s ease;

}

.educacao-slide-vermais:hover {

    background: #333;

    color: #fff;

}

/* ==========================================

   16. BARRA DE PROGRESSO

========================================== */

/* CONTAINER */

.educacao-slider-progress {

    position: absolute;

    top: 22px;

    left: 30px;

    right: 30px;

    display: flex;

    align-items: center;

    gap: 12px;

    z-index: 20;

    pointer-events: none;

}

/* SEGMENTOS */

.educacao-slider-progress-item {

    position: relative;

    flex: 1 1 0;

    min-width: 0;

    height: 10px;

    overflow: hidden;

    border-radius: 20px;

    background: rgba(255,255,255,.55);

    box-shadow:

        0 1px 3px rgba(0,0,0,.12);

}

/* PREENCHIMENTO */

.educacao-slider-progress-fill {

    display: block;

    width: 100%;

    height: 100%;

    background: #fff;

    border-radius: inherit;

    transform: scaleX(0);

    transform-origin: left center;

    will-change: transform;

}

/* ==========================================

   17. SETAS DO SPLIDE

========================================== */

.educacao-video-slider .splide__arrows {

    pointer-events: none;

}

.educacao-video-slider .splide__arrow {

    position: absolute;

    top: auto;

    bottom: 9px;

    transform: none;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 28px;

    height: 28px;

    padding: 0;

    background: transparent;

    border: none;

    border-radius: 0;

    opacity: 1;

    z-index: 10;

    cursor: pointer;

    pointer-events: auto;

}

/* SVG DAS SETAS */

.educacao-video-slider .splide__arrow svg {

    width: 20px;

    height: 20px;

    fill: #fff;

}

/* POSIÇÕES */

.educacao-video-slider .splide__arrow--prev {

    left: 18px;

}

.educacao-video-slider .splide__arrow--next {

    right: 18px;

}

/* HOVER */

.educacao-video-slider .splide__arrow:hover {

    opacity: .7;

}

/* DESABILITADO */

.educacao-video-slider .splide__arrow:disabled {

    opacity: .35;

}

/* ==========================================

   18. TABLET - ATÉ 1100PX

========================================== */

@media (max-width: 1100px) {

    .educacao-videos {

        padding: 30px 20px;

    }

    .educacao-videos-grid {

        grid-template-columns: minmax(0, 1fr);

        gap: 30px;

    }

    .educacao-videos-fixos {

        gap: 20px;

    }

    .educacao-slide-card {

        height: 330px;

    }

}

/* ==========================================

   19. MOBILE - ATÉ 700PX

========================================== */

@media (max-width: 700px) {

    /* CONTAINER */

    .educacao-videos {

        padding: 25px 15px;

    }

    /* TÍTULO */

    .educacao-videos-header {

        margin-bottom: 25px;

    }

    .educacao-videos-header h2 {

        font-size: 26px;

    }

    /* GRID PRINCIPAL */

    .educacao-videos-grid {

        grid-template-columns: minmax(0, 1fr);

        gap: 30px;

    }

    /* CHAMADAS FIXAS */

    .educacao-videos-fixos {

        grid-template-columns: minmax(0, 1fr);

        gap: 25px;

    }

    .educacao-video-card {

        height: auto;

    }

    /* IMAGENS */

    .educacao-video-thumb {

        aspect-ratio: 16 / 9;

    }

    /* TÍTULOS */

    .educacao-video-info h3 {

        font-size: 18px;

    }

    /* CATEGORIA */

    .educacao-videos

    .educacao-video-categoria.spancategoryinfo {

        font-size: 11px;

    }

    /* CARROSSEL */

    .educacao-slide-card {

        height: 300px;

    }

    /* PLAY */

    .educacao-video-slider .educacao-video-play {

        width: 55px;

        height: 55px;

    }

    /* INFORMAÇÕES DO SLIDE */

    .educacao-slide-info {

        padding: 15px 15px 52px;

    }

    .educacao-slide-info h3 {

        font-size: 17px;

        line-height: 1.25;

    }

    /* ETIQUETA */

    .educacao-slide-tag {

        font-size: 13px;

        padding: 5px 12px;

    }

    /* PROGRESSO */

    .educacao-slider-progress {

        top: 15px;

        left: 16px;

        right: 16px;

        gap: 7px;

    }

    .educacao-slider-progress-item {

        height: 7px;

    }

    /* SETAS */

    .educacao-video-slider .splide__arrow--prev {

        left: 12px;

    }

    .educacao-video-slider .splide__arrow--next {

        right: 12px;

    }
}