/* Vereadores - Index */
.tabs-institucionais {
    display: inline-flex;
    gap: .5rem;
    padding: .25rem;
    border-radius: 999px;
    background: rgba(0,0,0,.03);
    box-shadow: 0 8px 18px rgba(0,0,0,.04);
}

.vereador-card-hero {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .25);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.vereador-card-hero-body {
    padding: 1.5rem 1.2rem 1.1rem;
    text-align: center;
    background: radial-gradient(circle at top, #e8f5ec 0, #f9fafb 55%, #ffffff 100%);
}

.vereador-card-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.2);
    border-color: rgba(4, 120, 87, .35);
}

.vereador-avatar {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.vereador-avatar img,
.vereador-avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
    background: #e5e7eb;
}

.vereador-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    color: #4b5563;
}

.vereador-nome-hero {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #111827;
    margin-bottom: .4rem;
}

.vereador-partido-hero {
    font-size: .85rem;
    color: #6b7280;
}

.vereador-partido-logo-hero {
    height: 22px;
    margin-top: .4rem;
    max-width: 64px;
    object-fit: contain;
    opacity: .9;
}

.vereador-btn-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .7rem 1rem;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #047857;
    background: #e8fdf4;
    border-top: 1px solid #bbf7d0;
    transition: background .18s ease, color .18s ease;
}

.vereador-btn-hero i {
    font-size: .9rem;
    transition: transform .18s ease;
}

.vereador-card-hero:hover .vereador-btn-hero {
    background: #a7f3d0;
}

.vereador-card-hero:hover .vereador-btn-hero i {
    transform: translateX(3px);
}

.tabs-institucionais .tab-item {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem 1.2rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    color: #4b5563;
    text-decoration: none;
    transition: all .22s ease;
    background: transparent;
}

.tabs-institucionais .tab-item i {
    font-size: .95rem;
}

.tabs-institucionais .tab-item:hover {
    background: #f3f4f6;
    color: var(--portal-primary-dark);
}

.tabs-institucionais .tab-item.active {
    background: var(--portal-primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

.tabs-institucionais .tab-item.active i {
    color: #e5f7ec;
}

.grid-vereadores {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.4rem;
}

@media (min-width: 992px) {
    .grid-vereadores {
        gap: 1.6rem;
    }
}

.vereador-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(15, 118, 110, .08);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.vereador-card.pequeno {
    border-radius: 16px;
}

.vereador-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4, 90, 28, .18), transparent 55%);
    opacity: .0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.vereador-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    border-color: rgba(4, 120, 87, .35);
    background: #f9fafb;
}

.vereador-card:hover::before {
    opacity: .7;
}

.vereador-card .foto-box {
    position: relative;
    padding-top: 68%;
    overflow: hidden;
    background: radial-gradient(circle at top, #e5f7ec, #d1d5db);
}

.vereador-card.pequeno .foto-box {
    padding-top: 70%;
}

.vereador-card .foto-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .35s ease, filter .35s ease;
}

.vereador-card:hover .foto-box img {
    transform: scale(1.03);
    filter: saturate(1.05);
}

.vereador-card .sem-foto {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    background: repeating-linear-gradient(
        -45deg,
        #e5e7eb,
        #e5e7eb 8px,
        #d1d5db 8px,
        #d1d5db 16px
    );
}

.vereador-card .info {
    position: relative;
    padding: 1rem 1.1rem 1rem;
    z-index: 1;
}

.vereador-card.pequeno .info {
    padding: .9rem 1rem;
}

.vereador-card .info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .25rem;
    color: #111827;
}

.vereador-card .info .partido {
    display: block;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #6b7280;
    margin-bottom: .4rem;
}

.vereador-card .logo-partido {
    height: 24px;
    max-width: 64px;
    object-fit: contain;
    opacity: .9;
}

.vereador-card .badge.bg-primary {
    background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-dark));
    border-radius: 999px;
    padding-inline: .85rem;
    font-size: .7rem;
    letter-spacing: .08em;
}

.vereador-card .link-perfil {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .4rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--portal-primary-dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.vereador-card .link-perfil i {
    font-size: .9rem;
    transition: transform .2s ease;
}

.vereador-card:hover .link-perfil i {
    transform: translateX(3px);
}

.titulo-secao {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--portal-primary-dark);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.titulo-secao::after {
    content: "";
    display: inline-block;
    width: 60px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--portal-primary), transparent);
    margin-left: .5rem;
}

/* Vereadores - Details */
.vereador-detalhe-page {
    position: relative;
}

.vereador-detalhe-page .card.shadow-sm.border-0 {
    border-radius: 1.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .12) !important;
    overflow: hidden;
}

.vereador-detalhe-page .perfil-foto {
    width: 180px;
    height: 180px;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .35);
}

@media (max-width: 767.98px) {
    .vereador-detalhe-page .perfil-foto {
        width: 140px;
        height: 140px;
    }
}

.vereador-detalhe-page .titulo-vereador {
    font-weight: 800;
    letter-spacing: .03em;
    color: #111827;
}

.vereador-detalhe-page .card-info {
    border-radius: 1rem;
    border-left: 4px solid var(--portal-primary);
}

.vereador-detalhe-page .card-info .card-title,
.vereador-detalhe-page .card-bio .card-title {
    font-weight: 700;
}

.vereador-detalhe-page table.table-sm thead {
    background: linear-gradient(90deg, var(--portal-primary), var(--portal-primary-dark));
    color: #fff;
}

.vereador-detalhe-page table.table-sm thead th {
    border: 0;
}

.vereador-detalhe-page table.table-sm tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

/* Notícias - Index */
.noticias-page {
    position: relative;
}

.noticias-pill {
    background: rgba(4, 90, 28, .06);
    color: var(--portal-primary-dark);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.noticias-title {
    color: #111827;
}

.noticias-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    margin: .75rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--portal-primary), transparent);
}

.element-subheader {
    font-size: 1rem;
    color: #6b7280;
}

.noticia-card {
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.25s ease;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(148, 163, 184, .25);
}

.hover-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    border-color: rgba(4, 120, 87, .35);
}

.noticia-img {
    overflow: hidden;
    max-height: 220px;
    background: #f3f4f6;
}

.noticia-img img {
    transition: transform 0.4s ease, filter 0.4s ease;
    object-fit: cover;
    height: 100%;
}

.hover-card:hover .noticia-img img {
    transform: scale(1.05);
    filter: saturate(1.05);
}

.card-title {
    font-size: 1.1rem;
    line-height: 1.4;
}

.noticia-resumo {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.noticia-card .btn-outline-primary {
    font-weight: 600;
    transition: all 0.25s ease;
    border-radius: 999px;
}

.noticia-card .btn-outline-primary:hover {
    background: var(--portal-primary);
    color: #fff;
    border-color: var(--portal-primary);
}

.noticia-card .btn-outline-primary i {
    transition: transform 0.2s ease;
}

.noticia-card .btn-outline-primary:hover i {
    transform: translateX(3px);
}

@media (max-width: 991.98px) {
    .noticia-img {
        max-height: 190px;
    }
}

/* Notícias - Details */
.noticia-detalhe-page .main-hero-img {
    max-height: 460px;
    object-fit: cover;
    border-radius: 1.3rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.noticia-detalhe-titulo {
    font-size: 2rem;
    letter-spacing: .02em;
    color: #111827;
}

.noticia-texto {
    font-size: 1.06rem;
    line-height: 1.85;
    color: #1f2933;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #fff;
    font-size: 18px;
    transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.06);
    opacity: 0.9;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.25);
}

.fb { background: #4267B2; }
.tw { background: #1DA1F2; }
.li { background: #0077B5; }
.wa { background: #25D366; }

.gallery-thumb {
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

.related-grid-card {
    display: flex;
    flex-direction: column;
    border-radius: 0.9rem;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.related-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
}

.related-grid-img {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
}

@media (max-width: 991.98px) {
    .noticia-detalhe-page .main-hero-img {
        max-height: 300px;
    }

    .gallery-thumb {
        height: 120px;
    }

    .related-grid-img {
        height: 100px;
    }
}

/* Home - Transmissão ao vivo */
.transmissao-ao-vivo-wrapper {
    background: linear-gradient(180deg, #f3f4ff 0, #f9fafb 50%, #ffffff 100%);
}

.transmissao-card {
    background: #ffffff;
    border-radius: 1.75rem;
}

.transmissao-header {
    background: linear-gradient(90deg, #045a1c, #0ea863);
}

.transmissao-badge {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.transmissao-badge span {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .45);
}

.transmissao-player-bg {
    background: radial-gradient(circle at top, #e5f7ec 0, #dbeafe 40%, #020617 100%);
}

.transmissao-iframe {
    border: 0;
}

.transmissao-footer {
    background: #ffffff;
}

.transmissao-body {
    background: #ffffff;
}

.transmissao-info-col {
    background: #f9fafb;
}

.transmissao-player-col {
    background: #020617;
}

.transmissao-youtube-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #1877f2;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 10px 22px rgba(24, 119, 242, 0.45);
}

.transmissao-fb-btn {
    background-color: #1877f2;
    border-color: #1877f2;
    color: #ffffff;
    font-weight: 600;
}

.transmissao-fb-btn:hover {
    background-color: #1453b8;
    border-color: #1453b8;
    color: #ffffff;
}

