/**
 * Estilos da página Home (atalhos, hero, notícias, painel).
 * Extraídos de Areas/Site/Pages/Index.cshtml para centralizar.
 */

/* ========== ATALHOS (abaixo do menu) ========== */
.shortcut-buttons-section {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding: 20px 0 22px;
    border-bottom: 1px solid rgba(28, 68, 157, 0.08);
}

.shortcut-buttons-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.shortcut-nav-arrow {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, #1c449d 0%, #153a82 100%);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, transform .2s ease, box-shadow .2s ease;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(28, 68, 157, 0.25);
}

.shortcut-nav-arrow:hover {
    background: linear-gradient(145deg, #153a82 0%, #0f2d66 100%);
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(28, 68, 157, 0.35);
}

.shortcut-nav-arrow:focus {
    outline: 2px solid #1c449d;
    outline-offset: 2px;
}

.shortcut-buttons-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 6px;
    flex: 1;
    min-width: 0;
    align-items: flex-start;
}

.shortcut-card-wrapper {
    position: relative;
    flex-shrink: 0;
}

.shortcut-has-submenu .shortcut-card {
    cursor: pointer;
    padding-bottom: 26px;
}

/* Indicador de submenu (setinha) no card */
.shortcut-has-submenu .shortcut-card::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.65rem;
    color: rgba(28, 68, 157, 0.6);
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    transition: color .2s ease, transform .2s ease;
}

.shortcut-has-submenu:hover .shortcut-card::after {
    color: #1c449d;
    transform: translateX(-50%) translateY(1px);
}

/* Ponte invisível entre card e dropdown para não perder o hover */
.shortcut-submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 12px;
}

/* Seta do dropdown apontando para o card */
.shortcut-submenu::after {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
    filter: drop-shadow(0 -1px 1px rgba(0,0,0,.06));
}

.shortcut-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    max-width: 280px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.08), 0 10px 28px -4px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(0,0,0,.04);
    padding: 10px 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: visibility 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
    z-index: 1000;
}

/* Hover: mostrar dropdown (funciona quando não há overflow cortando) */
.shortcut-has-submenu:hover .shortcut-submenu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Quando aberto via JS (position: fixed) para não ser cortado pelo overflow */
.shortcut-submenu.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    position: fixed;
    transform: translateX(-50%);
}

.shortcut-submenu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
    border-left: 3px solid transparent;
}

.shortcut-submenu-item:hover {
    background: linear-gradient(90deg, rgba(28, 68, 157, 0.08) 0%, rgba(28, 68, 157, 0.04) 100%);
    color: #1c449d;
    border-left-color: #1c449d;
}

.shortcut-submenu-item:first-child {
    margin-top: 2px;
}

.shortcut-submenu-item:last-child {
    margin-bottom: 2px;
}

.shortcut-buttons-scroll::-webkit-scrollbar {
    display: none;
}

.shortcut-card {
    flex-shrink: 0;
    width: 148px;
    padding: 20px 14px 16px;
    background: #fff;
    border-radius: 18px;
    text-decoration: none;
    color: #1c449d;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease, color .2s ease;
    border: 1px solid rgba(28, 68, 157, 0.12);
    box-shadow: 0 2px 8px rgba(28, 68, 157, 0.06);
}

.shortcut-card:hover {
    background: linear-gradient(145deg, #eef4fc 0%, #e5edff 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(28, 68, 157, 0.12), 0 0 0 1px rgba(28, 68, 157, 0.08);
    color: #153a82;
}

.shortcut-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(145deg, #1c449d 0%, #153a82 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 14px rgba(28, 68, 157, 0.3);
    transition: transform .25s ease, box-shadow .25s ease;
}

.shortcut-card:hover .shortcut-icon-wrap {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(28, 68, 157, 0.35);
}

.shortcut-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .shortcut-card {
        width: 124px;
        padding: 16px 10px 14px;
    }

    .shortcut-has-submenu .shortcut-card {
        padding-bottom: 22px;
    }

    .shortcut-has-submenu .shortcut-card::after {
        font-size: 0.6rem;
        bottom: 8px;
    }

    .shortcut-icon-wrap {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .shortcut-label {
        font-size: 0.82rem;
    }

    .shortcut-nav-arrow {
        width: 38px;
        height: 38px;
    }
}

/* ========== HERO SLIDE ========== */
.hero-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .4s ease;
}

.hero-link:hover .hero-slide {
    transform: scale(1.01);
}

.hero-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #eaeaea;
}

.hero-media {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-slide img.hero-media {
    object-fit: contain;
    background-color: #000;
}

.hero-slide video.hero-media {
    object-fit: contain;
    background-color: #000;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.35), transparent 70%);
}

.hero-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.hero-title {
    margin: 0;
    max-width: 90%;
    font-size: clamp(1.4rem, 2.2vw, 2.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-link:hover .hero-title {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

#noticiasHero,
#noticiasHero .carousel-inner,
#noticiasHero .carousel-item {
    height: 100%;
}

#noticiasHero .carousel-control-prev,
#noticiasHero .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    opacity: 1;
    transition: background 0.25s ease, transform 0.2s ease;
}

#noticiasHero .carousel-control-prev:hover,
#noticiasHero .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.65);
    transform: translateY(-50%) scale(1.08);
}

#noticiasHero .carousel-control-prev-icon,
#noticiasHero .carousel-control-next-icon {
    filter: brightness(0) invert(1);
    width: 20px;
    height: 20px;
}

#noticiasHero .carousel-control-prev {
    left: 16px;
}

#noticiasHero .carousel-control-next {
    right: 16px;
}

#noticiasHero .carousel-control-prev:focus,
#noticiasHero .carousel-control-next:focus,
#noticiasHero .carousel-control-prev:focus-visible,
#noticiasHero .carousel-control-next:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

#noticiasHero .carousel-control-prev:active,
#noticiasHero .carousel-control-next:active {
    transform: translateY(-50%) scale(0.95);
}

#noticiasHero .carousel-control-prev:focus-visible,
#noticiasHero .carousel-control-next:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .hero-overlay {
        padding: 18px;
    }

    .hero-title {
        max-width: 100%;
        font-size: 1.25rem;
    }
}

/* ========== NOTÍCIAS DO LEGISLATIVO (grid 2x4) ========== */
.noticias-legislativo-section {
    padding: 2.5rem 0 3rem;
    background: #fff;
}

.noticias-legislativo-header {
    margin-bottom: 0.5rem;
}

.noticias-legislativo-titulo {
    margin: 0 0 0.25rem 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: #1c449d;
    letter-spacing: -0.02em;
}

.noticias-legislativo-subtitulo {
    margin: 0;
    font-size: 1rem;
    color: #5a6c7d;
}

.noticias-legislativo-actions {
    margin-bottom: 1.5rem;
}

.noticias-legislativo-ver-todas {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1c449d;
    text-decoration: none;
}

.noticias-legislativo-ver-todas:hover {
    text-decoration: underline;
    color: #153a82;
}

.noticias-legislativo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.noticias-legislativo-card {
    margin: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.noticias-legislativo-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.noticias-legislativo-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.noticias-legislativo-card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #eef2f8;
    overflow: hidden;
}

.noticias-legislativo-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.noticias-legislativo-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2.5rem;
}

.noticias-legislativo-card-body {
    padding: 1rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.noticias-legislativo-card-titulo {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1f2937;
}

.noticias-legislativo-card-link:hover .noticias-legislativo-card-titulo {
    color: #1c449d;
}

.noticias-legislativo-card-data {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.noticias-legislativo-card-leiamais {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1c449d;
    text-align: right;
}

.noticias-legislativo-card-link:hover .noticias-legislativo-card-leiamais {
    text-decoration: underline;
}

.noticias-legislativo-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #6b7280;
    padding: 2rem;
    margin: 0;
}

@media (max-width: 992px) {
    .noticias-legislativo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .noticias-legislativo-grid {
        grid-template-columns: 1fr;
    }

    .noticias-legislativo-titulo {
        font-size: 1.5rem;
    }
}

/* ========== LISTA EDITORIAL / PAINEL NOTÍCIAS (legado) ========== */
.news-row {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: #ffffff;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all .2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.news-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.news-row:hover .news-title {
    text-decoration: underline;
}

.news-thumb {
    width: 90px;
    height: 70px;
    border-radius: 14px;
    overflow: hidden;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 32px;
    color: #6c757d;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-date {
    font-size: 12px;
    color: #6c757d;
}

.news-title {
    font-size: 14px;
    font-weight: 600;
    margin: 2px 0 0;
    line-height: 1.3;
}

.news-panel {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
}

.news-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-panel-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.news-panel-header .btn {
    border-radius: 20px;
    padding: 4px 14px;
    font-size: .8rem;
}

.thumb-pdf {
    background: #fdecea;
    color: #d32f2f;
}

.thumb-pdf i {
    font-size: 26px;
}

.thumb-doc {
    background: #e3f2fd;
    color: #1565c0;
}

.thumb-doc i {
    font-size: 26px;
}

.thumb-generic {
    color: #6c757d;
}

/* ========== SEÇÃO DOCUMENTOS (Home) ========== */
.documentos-section {
    background: #f8fafc;
    padding: 48px 0 56px;
}

.documentos-header {
    margin-bottom: 16px;
}

.documentos-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1c449d;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.documentos-subtitle {
    font-size: 1rem;
    color: #5a6c7d;
    margin: 0;
    max-width: 560px;
}

.documentos-bar {
    background: #1c449d;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.documentos-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    height: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.documentos-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(28, 68, 157, 0.25);
}

/* Card clicável do quadro de concursos (link para anos/arquivos) */
a.documentos-card-link {
    color: inherit;
}
a.documentos-card-link .documentos-btn-download {
    color: #1c449d;
}
a.documentos-card-link:hover .documentos-btn-download {
    color: #0f3460;
}

.documentos-card-header {
    background: #3A5873;
    color: #fff;
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.documentos-list {
    list-style: none;
    margin: 0;
    padding: 16px;
    flex: 1 1 auto;
    min-height: 320px;
    max-height: 360px;
    overflow-y: auto;
}

.documentos-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: #f8f9fb;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.documentos-item:last-child {
    margin-bottom: 0;
}

.documentos-item:hover {
    background: #eef2f8;
    border-color: rgba(28, 68, 157, 0.15);
}

.documentos-item-year {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: transparent !important;
    padding: 8px 16px 4px;
    margin-bottom: 4px;
}

.documentos-item-year:hover {
    background: transparent !important;
    border-color: transparent !important;
}

.documentos-item-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: #fdecea;
    color: #c62828;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.documentos-item-year .documentos-item-icon {
    display: none;
}

.documentos-item-title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.35;
    min-width: 0;
}

.documentos-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.documentos-btn-download {
    background: #1c449d;
    color: #fff;
}

.documentos-btn-download:hover {
    background: #153a82;
    color: #fff;
    transform: translateY(-1px);
}

.documentos-btn-view {
    background: #e0eef9;
    color: #1c449d;
}

.documentos-btn-view:hover {
    background: #1c449d;
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .documentos-section {
        padding: 32px 0 40px;
    }

    .documentos-title {
        font-size: 1.5rem;
    }

    .documentos-item {
        flex-wrap: wrap;
    }

    .documentos-item-title {
        width: 100%;
        margin-bottom: 8px;
        padding-left: 54px;
    }

    .documentos-item-year .documentos-item-title {
        padding-left: 0;
    }
}

/* ========== HOME – Galeria de Vídeos (sidebar + grid) ========== */
.home-galeria-videos-section {
    padding: 2.5rem 0 3rem;
    background: url('/images/background-galeriavideos.png') center center / cover no-repeat,
                radial-gradient(circle at top left, #020617 0%, #020617 40%, #020617 100%);
}

.home-galeria-videos-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    min-height: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    background: #ffffff;
}

.home-galeria-videos-sidebar {
    background: #0f172a;
    color: #fff;
    padding: 1.25rem 0;
    display: flex;
    flex-direction: column;
}

.home-galeria-videos-sidebar-header {
    padding: 0 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-galeria-videos-sidebar-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.home-galeria-videos-ver-todos {
    font-size: 0.9rem;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-galeria-videos-ver-todos:hover {
    color: rgba(255, 255, 255, 0.9);
}

.home-galeria-videos-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0;
}

.home-galeria-videos-nav-item {
    display: block;
    padding: 0.55rem 1.4rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.35;
    transition: background 0.2s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.home-galeria-videos-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.home-galeria-videos-nav-item.active {
    background: rgba(255, 255, 255, 0.18);
    font-weight: 600;
}

.home-galeria-videos-nav-empty {
    padding: 0 1.25rem;
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Área principal com grid de vídeos */
.home-galeria-videos-main {
    background: #020617;
    position: relative;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-galeria-videos-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.06), transparent 55%);
    pointer-events: none;
}

.home-galeria-videos-watermark {
    display: none;
}

.home-galeria-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
}

.home-galeria-videos-card {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.home-galeria-videos-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    text-decoration: none;
    color: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-galeria-videos-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.18);
    border-color: rgba(56, 189, 248, 0.7);
    background: rgba(15, 23, 42, 1);
}

.home-galeria-videos-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
    overflow: hidden;
    flex-shrink: 0;
}

.home-galeria-videos-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-galeria-videos-embed-ratio {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
}

.home-galeria-videos-embed-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

.home-galeria-videos-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.95);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-galeria-videos-card-link:hover .home-galeria-videos-card-play {
    background: #0ea5e9;
    transform: translate(-50%, -50%) scale(1.1);
}

.home-galeria-videos-card-title {
    margin: 0.75rem 0 0.1rem;
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.35;
    color: #f9fafb;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

.home-galeria-videos-card-date {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.home-galeria-videos-card-link:hover .home-galeria-videos-card-title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-galeria-videos-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 2rem;
    margin: 0;
}

@media (max-width: 992px) {
    .home-galeria-videos-layout {
        grid-template-columns: 1fr;
    }

    .home-galeria-videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .home-galeria-videos-grid {
        grid-template-columns: 1fr;
    }

    .home-galeria-videos-watermark {
        font-size: 2rem;
    }
}

/* ========== HOME – Seção Vereadores (fundo escuro + cards em destaque) ========== */
.vereadores-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
    padding: 3rem 0 4rem !important;
}

.vereadores-header {
    margin-bottom: 2.5rem !important;
}

.vereadores-titulo {
    color: #f8fafc !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.vereadores-subtitulo {
    color: #94a3b8 !important;
}

.vereadores-section .vereador-card {
    background: rgba(30, 41, 59, 0.95) !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
}

.vereadores-section .vereador-card:hover {
    background: rgba(51, 65, 85, 0.98) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(56, 189, 248, 0.15) !important;
}

.vereadores-section .vereador-card-foto {
    border-color: rgba(148, 163, 184, 0.4) !important;
}

.vereadores-section .vereador-card:hover .vereador-card-foto {
    border-color: rgba(56, 189, 248, 0.6) !important;
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.2) !important;
}

.vereadores-section .vereador-nome {
    color: #f1f5f9 !important;
}

.vereadores-section .vereador-btn {
    background: transparent !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
}

.vereadores-section .vereador-btn:hover {
    background: #38bdf8 !important;
    color: #0f172a !important;
    border-color: #38bdf8 !important;
}

.vereadores-section .vereador-partido {
    filter: brightness(1.1);
}

/* Brasão no card Proposituras (dentro da ellipse) */
.vereadores-section .vereador-card-brasao {
    background: rgba(255, 255, 255, 0.95);
}

.vereadores-section .vereador-card-brasao-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 12%;
}
