/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hero full‑screen */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Placeholder com thumbnail */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

/* Botão circular transparente de play */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid #fff;
}

/* Iframe do vídeo posicionado para cobrir todo o hero */
.hero iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    border: none;
}

/* Navbar sobreposta */
.navbar-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.navbar-hero .nav-link,
.navbar-hero .navbar-brand {
    color: #fff !important;
}

/* Episódio Title */
.sectionTitulo {
    background-color: #fff;
    padding: 200px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.sectionTitulo__heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 50px;
    line-height: 1.2;
    font-weight: 700;
    color: #2b2e3c;
    margin-bottom: 1rem;
    padding: 0 15px;
}

.sectionTitulo__heading strong {
    font-weight: 900;
}

.sectionTitulo__credit {
    font-family: 'Geometria', 'Open Sans', sans-serif;
    font-size: 22px;
    line-height: 1.6;
    color: #556b2f;
    margin: 0;
    padding: 0 15px;
}

/* Media query para dispositivos móveis */
@media (max-width: 768px) {
    .sectionTitulo {
        max-width: 100%;
        padding: 100px 0;
    }

    .sectionTitulo__heading {
        font-size: 25px;
    }

    .sectionTitulo__credit {
        font-size: 11px;
    }
}

/* Reportagem Section - Parallax */
.reportagemSection {
    position: relative;
    background-color: #fff;
    /*padding-bottom: 80px; !* Espaço para a transição *!*/
    z-index: 2;
}

.reportagemSection__hero {
    position: relative;
    height: 60vh;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.reportagemSection__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.reportagemSection__hero .container {
    position: relative;
    z-index: 2;
}

.reportagemSection::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, #fff, #f8f9fa);
    z-index: 1;
}

#galeriaEpisodios {
    position: relative;
    background-color: #f8f9fa;
    padding-top: 80px; /* Espaço para a transição */
    margin-top: -40px; /* Sobrepõe para criar sobreposição */
    z-index: 1;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

/* Shapes decorativos */
.shape {
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.shape--1 {
    top: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background-image: url('/licoes/educacao/shape1.svg');
}

.shape--2 {
    bottom: -70px;
    left: 0; /* left: 15%;*/
    width: 150px;
    height: 150px;
    background-image: url('/licoes/educacao/shape2.svg');
}

.shape--3 {
    top: -15%;
    right: 0;
    width: 150px;
    height: 150px;
    background-image: url('/licoes/educacao/shape3.svg');
    background-position: right;
    background-size: contain;
}

.shape--4 {
    bottom: -30px;
    left: -15px;
    width: 150px;
    height: 150px;
    background-image: url('/licoes/educacao/shape4.svg');
}

.shape--5 {
    bottom: -10px;
    left: 0px;
    width: 150px;
    height: 150px;
    background-image: url('/licoes/educacao/shape5.svg');
}

/* Reportagem e conteúdo principal */
.reportagem-conteudo {
    position: relative;
    z-index: 2;
}

.reportagem-texto {
    font-size: 1.1rem;
    line-height: 1.8;
}

.reportagem-texto img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
}

.reportagem-texto p {
    margin-bottom: 1.5rem;
}

.reportagem-texto p:first-of-type {
    font-size: 1.2rem;
    color: #333;
}

.transition-effect {
    height: 50px;
    margin-bottom: -40px;
}

/* Ajustes das imagens em layout sticky */
@media (min-width: 992px) {
    .sticky-lg-top {
        position: sticky;
        top: 100px;
        height: calc(100vh - 200px);
        overflow-y: auto;
        /* Esconde a barra de rolagem para um visual mais limpo */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .sticky-lg-top::-webkit-scrollbar {
        display: none;
    }

    .sticky-lg-top img {
        max-width: 100%;
        height: auto;
        margin-bottom: 1rem;
        border-radius: 8px;
        transition: transform 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .sticky-lg-top img:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 991px) {
    .reportagem-texto {
        font-size: 1rem;
        line-height: 1.6;
    }

    .order-lg-1 {
        order: 2;
    }

    .order-lg-2 {
        order: 1;
        margin-bottom: 2rem;
    }
}

/* Carousel e miniaturas */
#episodioCarousel .carousel-inner {
    height: 600px;
    overflow: hidden;
}

#episodioCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*
.thumbnail-carousel .thumbnail-item img {
    height: 150px;
    width: auto;
    object-fit: cover;
    border: 3px solid transparent;
    transition: border-color .3s, opacity .3s;
}
*/

.thumbnail-carousel .thumbnail-item:hover img {
    opacity: 0.7;
    border-color: #ffc107;
}

/* Controles do carousel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 20px;
}

/* Container para as miniaturas com navegação */
.thumbnail-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto 40px;
    overflow: hidden;
    height: 120px; /* altura fixa para comportar as miniaturas */
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* Wrapper com padding para os botões de navegação */
.thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    padding: 0 50px; /* Espaço para os botões */
}

/* Ajuste melhorado para o carousel de miniaturas */
.thumbnail-carousel {
    display: flex;
    transition: transform 0.3s ease;
    gap: 10px;
    height: 100%;
    align-items: center;
    padding: 10px 0;
}

/* Garante que as miniaturas tenham tamanho uniforme */
.thumbnail-item {
    flex: 0 0 auto;
    width: 150px;
    height: 120px;
    opacity: 0.7;
    transition: all 0.3s ease;
    transform-origin: center;
}

.thumbnail-item.active {
    opacity: 1;
    transform: scale(1.05);
    z-index: 2;
}

/* Estilização mais forte para as imagens */
.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid transparent;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.thumbnail-item:hover img {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.thumbnail-item.active img {
    border-color: #ffc107;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* ********************************************************* */
/* Botões de navegação para as miniaturas */
.thumbnail-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.thumbnail-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.thumbnail-prev {
    left: 8px;
}

.thumbnail-next {
    right: 8px;
}

/* Controles principais do carrossel */
@media (max-width: 768px) {
    /* Reduz a altura do carrossel principal em dispositivos móveis */
    #episodioCarousel .carousel-inner {
        height: 300px;  /* Altura reduzida para mobile */
    }

    /* Ajusta o tamanho dos botões de navegação do carrossel principal */
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 15px;  /* Botões um pouco menores */
    }

    /* Ajustes no container de miniaturas */
    .thumbnail-container {
        height: 80px;  /* Altura reduzida */
        margin-bottom: 20px;  /* Reduz o espaço abaixo */
    }

    /* Ajusta o tamanho das miniaturas */
    .thumbnail-item {
        width: 100px;  /* Miniaturas menores */
        height: 60px;
    }

    /* Reduz o padding do wrapper para mostrar mais miniaturas */
    .thumbnail-wrapper {
        padding: 0 35px;
    }

    /* Reduz o tamanho dos botões de navegação */
    .thumbnail-nav {
        width: 30px;
        height: 30px;
    }

    /* Ajusta a seção inteira do carrossel para remover espaços desnecessários */
    #galeriaEpisodios {
        padding-top: 40px;  /* Reduz o padding superior */
        padding-bottom: 20px;  /* Reduz o padding inferior */
    }

    /* Remove espaço em branco abaixo do carrossel */
    .container {
        padding-bottom: 0;
    }

    /* Garante que não haja espaço desnecessário acima do footer */
    #galeriaEpisodios + section {
        margin-top: 0;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {
    #episodioCarousel .carousel-inner {
        height: 220px;  /* Altura ainda menor para telas muito pequenas */
    }

    .thumbnail-item {
        width: 80px;
        height: 50px;
    }
}

/* ********************************************************* */

/* Footer */
.sectionFooter {
    color: #fff;
    font-family: 'Poppins', 'Helvetica Neue', sans-serif !important;
}

.sectionFooter i {
    color: #CCCF5E;
    font-size: 36px;
    transition: color 0.3s ease;
}

.sectionFooter i:hover {
    color: #fff;
}

.sectionFooter .links a {
    color: #CCCF5E;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.sectionFooter .links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-wrapper {
    position: relative;
    z-index: 1;
    margin-top: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.footer {
    padding: 3rem 0;
}

.footer hr,
.footer-wrapper hr {
    opacity: 0.2;
    margin: 0 !important;
}

.copyright {
    padding: .5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright a {
    margin-right: 1rem;
    text-decoration: none;
    transition: color 0.3s;
    color: #bdbdbd;
}

.copyright a:hover {
    text-decoration: underline;
    color: #CCCF5E;
}

.copyright {
    color: #bdbdbd;
}

.newstitle {
    font-size: 20px;
    padding-bottom: 10px;
    display: block;
}

/* Responsividade do footer */
@media (max-width: 768px) {
    .footer .row {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer .col-md-3 {
        margin-bottom: 2rem;
        align-items: center !important;
    }

    .sectionFooter .links {
        align-items: center;
    }

    .copyright {
        flex-direction: column;
        text-align: center;
    }

    .copyright div:first-child {
        margin-bottom: 10px;
    }
}

/* Ajustes responsivos */
@media (min-width: 768px) {
    .sectionTitulo__heading {
        font-size: 2.5rem;
    }

    .sectionTitulo__credit {
        font-size: 1.125rem;
    }
}

@media (max-width: 991px) {
    .reportagemSection__hero {
        background-attachment: scroll;
        height: 60vh;
    }
    .lead {
        font-size: 1.1rem;
    }
}

/* Tarja de informações sobreposta */
.carousel-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px 15px 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 10;
}

/* Mostra a tarja no hover ou quando ativa */
.carousel-item:hover .carousel-info-overlay,
.carousel-item.active .carousel-info-overlay {
    transform: translateY(0);
}

.carousel-info-overlay span {
    font-weight: bold;
    color: #ffd700;
}

.carousel-info-overlay p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Estilo alternativo - tarja sempre visível */
.carousel-info-overlay.always-visible {
    transform: translateY(0);
    background: rgba(0,0,0,0.7);
    padding: 10px 15px;
}

.footer-logos img {
    max-height: 60px;
    width: auto;
}

img {
    vertical-align: middle;
}

.footer-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.newstitle {
    font-size: 20px;
    padding-bottom: 10px;
    display: block;
    text-align: center;
}