/* ── Seção Vídeos (Figma 198:137) ── */

#videos-section {
    background-color: var(--blue-200);
    padding: 50px 0 60px;
}

/* Header */
.videos-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 567px;
    margin: 0 auto 41px;
}

.videos-titulo {
    font-family: 'Rawline', helvetica, arial, sans-serif;
    font-weight: 600;
    font-size: 26px;
    line-height: 1.379;
    color: #fff;
    text-align: center;
    margin: 0;
}

.videos-subtitulo {
    font-family: 'Rawline', helvetica, arial, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.384;
    color: #fff;
    text-align: center;
    margin: 0;
}

/* Row wrapper — necessário para posicionamento absoluto das setas */
#videos-section .row {
    position: relative;
}

/* Swiper */
#videos-section .swiper-videos {
    width: 91.5%;
    height: auto;
    margin: 0 auto;
}

/* Setas */
#videos-section .swiper-button-next::after,
#videos-section .swiper-button-prev::after {
    font-size: 20px !important;
}

#videos-section .swiper-button-next,
#videos-section .swiper-button-prev {
    position: absolute;
    color: #fff !important;
    top: var(--swiper-navigation-top-offset, 44%);
    width: calc(var(--swiper-navigation-size) / 44 * 21);
    z-index: 10;
}

/* Paginação */
#videos-section .swiper-videos {
    padding-bottom: 40px;
}

#videos-section .swiper-pagination-bullet {
    background: var(--gray-100);
}

#videos-section .swiper-pagination-bullet-active {
    background-color: rgb(0 94 162) !important;
}

/* Card individual */
.video-card {
    width: 100%;
    height: 530px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    display: block;
    isolation: isolate;
    background-color: #0B2D4E;
    box-shadow: 0 18px 36px rgba(5, 27, 48, 0.22);
    text-decoration: none;
}

.video-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--video-card-bg);
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.video-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 28, 53, 0.18) 0%, rgba(7, 28, 53, 0.52) 34%, rgba(7, 28, 53, 0.92) 100%);
    border-radius: 18px;
    z-index: -1;
}

/* Tag badge */
.video-card-tag {
    position: absolute;
    top: 29px;
    left: 24px;
    width: 176px;
    height: 47px;
    border-radius: 63px;
    background-color: #4D8DBD;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rawline', helvetica, arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    z-index: 1;
    box-shadow: 0 10px 24px rgba(6, 34, 61, 0.20);
}

/* Conteúdo textual */
.video-card-content {
    position: absolute;
    top: 96px;
    left: 24px;
    right: 24px;
    z-index: 1;
}

.video-card-serie {
    font-family: 'Rawline', helvetica, arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 14px;
}

.video-card-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.85);
    margin: 0 0 16px;
}

.video-card-title {
    font-family: 'Rawline', helvetica, arial, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    color: #fff;
    margin: 0;
}

/* Palestrantes */
.video-card-palestrantes {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-card-palestrante {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.video-card-palestrante-nome {
    font-family: 'Rawline', helvetica, arial, sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.4;
    color: #fff;
}

.video-card-palestrante-cargo {
    font-family: 'Rawline', helvetica, arial, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.80);
}

/* Botão Ver mais */
.video-card-btn {
    position: absolute;
    bottom: 53px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 128px;
    height: 47px;
    border-radius: 63px;
    background-color: #0B4778;
    color: #fff !important;
    font-family: 'Rawline', helvetica, arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.38;
    padding: 0 16px;
    border: none;
    pointer-events: auto;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(6, 35, 60, 0.22);
    z-index: 1;
}

.video-card:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.75);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .video-card,
    .video-card::after,
    .video-card-tag,
    .video-card-title,
    .video-card-btn {
        transition: none;
    }

    .video-card:hover,
    .video-card:focus-visible {
        transform: translateY(0);
    }

    .video-card:hover::after,
    .video-card:focus-visible::after {
        transform: scale(1);
    }

    .video-card:hover .video-card-tag,
    .video-card:focus-visible .video-card-tag,
    .video-card:hover .video-card-title,
    .video-card:focus-visible .video-card-title {
        transform: none;
    }

    .video-card:hover .video-card-btn,
    .video-card:focus-visible .video-card-btn {
        transform: translateX(-50%);
    }
}

/* ── Responsivo ── */
@media (max-width: 576px) {
    #videos-section {
        padding: 40px 0 50px;
    }

    .videos-header {
        padding: 0 16px;
    }

    #videos-section .swiper-videos {
        width: 92.5%;
    }

    .swiper-button-next-videos,
    .swiper-button-prev-videos {
        display: none;
    }
}
