.hero-slider {
    width: 100%;
    height: 500px;
    background-color: #eee;
}

.hero-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

/* Overlay Escuro para legibilidade */
.hero-slider .swiper-slide.has-title-mask::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2; /* Acima da <img> (z-index:1), abaixo do conteúdo */
}

.slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 600px;
}

.slide-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn-banner {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-primary-light, #337AB7);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-banner:hover {
    background-color: var(--color-primary, #004A80);
}

/* Ajustando as cores das setas do Swiper */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
}

.swiper-pagination-bullet-active {
    background: #fff;
}

/* --- OVERLAPPING BOTÕES HERO --- */
.hero-overlays {
    position: absolute;
    bottom: -40px;
    /* Overlaps content below as well */
    left: 0;
    width: 100%;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through empty spaces */
}

.hero-overlays .container {
    position: relative;
}

.hero-floating-box {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    display: inline-flex;
    gap: 15px;
    pointer-events: auto;
    /* Re-enable clicks inside the box */
}

.hero-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    transition: 0.3s all ease;
}

.hero-btn i {
    font-size: 24px;
}

.hero-btn-blue {
    background: var(--color-primary-light, #337AB7);
    color: #fff;
    border: 2px solid var(--color-primary-light, #337AB7);
}

.hero-btn-blue:hover {
    background: var(--color-primary-dark, #1A3D5D);
    border-color: var(--color-primary-dark, #1A3D5D);
}

.hero-btn-outline {
    background: transparent;
    color: var(--color-primary-dark, #1A3D5D);
    border: 2px solid var(--color-primary-dark, #1A3D5D);
}

.hero-btn-outline:hover {
    background: var(--color-primary-dark, #1A3D5D);
    color: #fff;
}

.hero-btn span small {
    font-size: 11px;
    font-weight: 400;
}

/* --- HERO RESPONSIVO --- */
@media (max-width: 768px) {
    .slide-content h2 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 15px;
    }

    .hero-floating-box {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding: 15px;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-overlays {
        bottom: 20px;
    }
}

/* --- COMMON SECTIONS --- */
.section-padding {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--color-bg-light, #F8F9FA);
}

.bg-primary-dark {
    background-color: var(--color-primary-dark, #1A3D5D);
    color: #fff;
}

.bg-primary-dark .section-title {
    color: #fff !important;
}

.bg-primary-dark .section-link {
    color: #f1f5f9;
}

.bg-primary-dark .section-link:hover {
    color: #fff;
}

.bg-primary-dark .section-line {
    background-color: var(--color-primary-light, #337AB7);
}

.bg-primary-dark p.section-subtitle {
    color: #e2e8f0 !important;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-primary-dark, #1A3D5D);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    white-space: nowrap;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.section-line {
    flex: 1;
    height: 1px;
    background-color: #d1d9e6;
    /* Line separator color */
    margin: 0 20px;
}

.section-link {
    font-size: 14px;
    font-weight: 700;
    font-style: italic;
    color: #777;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.section-link:hover {
    color: var(--color-primary-dark, #1A3D5D);
}

.section-link i {
    font-size: 12px;
    margin-left: 5px;
}

/* --- ACESSO RÁPIDO --- */
.acesso-rapido {
    position: relative;
    z-index: 5;
    padding-top: 40px;
}

.acesso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.acesso-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 20px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.acesso-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-bottom-color: var(--color-primary-light, #337AB7);
}

.acesso-icon {
    width: 65px;
    height: 65px;
    background: rgba(51, 122, 183, 0.1);
    color: var(--color-primary-light, #337AB7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.acesso-card:hover .acesso-icon {
    background: var(--color-primary-light, #337AB7);
    color: #fff;
    transform: scale(1.15);
}

.acesso-card h3 {
    color: var(--color-primary-dark, #1A3D5D);
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

@media(max-width: 900px) {
    .acesso-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 576px) {
    .acesso-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- MESA DIRETORA --- */
.vereadores-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.vereador-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.vereador-card:hover {
    transform: translateY(-5px);
}

.highlight-card {
    border-bottom: 6px solid var(--color-primary-dark, #1A3D5D);
}

.vereador-foto {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: top center;
    background-color: #eaeaea;
}

.vereador-info {
    padding: 20px;
    text-align: center;
    background: var(--color-primary-dark, #1A3D5D);
    color: #fff;
}

.vereador-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 700;
}

.vereador-info .partido {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #ccc;
    margin-bottom: 5px;
}

.vereador-info .cargo {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

@media (max-width: 992px) {
    .vereadores-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .vereadores-grid-4 {
        grid-template-columns: 1fr;
    }

    .hero-btn {
        flex-direction: column;
        text-align: center;
    }
}

/* --- SWIPER VEREADORES --- */
.relative-container {
    position: relative;
    padding: 0 40px;
    /* Space for swiper arrows */
}

.vereador-card-small {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Lighter shadow */
}

.vereador-foto-small {
    height: 180px;
    /* Smaller photo */
}

.vereador-info-small {
    padding: 15px;
    background: #ffffff;
    color: var(--color-text, #333);
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.vereador-info-small h3 {
    font-size: 15px;
    color: var(--color-primary-dark, #1A3D5D);
}

.vereador-info-small .partido {
    color: #777;
    font-weight: 600;
}

.vereadores-next,
.vereadores-prev {
    color: var(--color-primary-dark, #1A3D5D) !important;
}

/* --- ÚLTIMAS NOTÍCIAS --- */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.noticia-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.noticia-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.noticia-img {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s;
}

.noticia-img-link {
    display: block;
    overflow: hidden;
}

.noticia-card:hover .noticia-img {
    transform: scale(1.05);
}

.noticia-content {
    padding: 25px;
}

.noticia-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
}

.noticia-content h3 a {
    color: var(--color-text, #333);
    text-decoration: none;
    transition: color 0.3s;
}

.noticia-card:hover h3 a {
    color: var(--color-primary-light, #337AB7);
}

.noticia-meta {
    font-size: 13px;
    color: #888;
}

.noticia-meta i {
    margin-right: 5px;
}

/* --- ESTILO DOS BOTÕES (VER MAIS) --- */
.btn-noticia {
    display: inline-block;
    padding: 10px 22px;
    background-color: transparent;
    color: var(--color-primary-dark, #1A3D5D);
    border: 2px solid var(--color-primary-dark, #1A3D5D);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-noticia:hover {
    background-color: var(--color-primary-light, #337AB7);
    border-color: var(--color-primary-light, #337AB7);
    color: #fff;
    transform: translateX(5px);
}

@media (max-width: 992px) {
    .noticias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .noticias-grid {
        grid-template-columns: 1fr;
    }
}

/* --- SESSÕES ONLINE E VÍDEOS --- */
.videos-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-placeholder {
    transition: opacity 0.3s;
    cursor: pointer;
}

.video-placeholder:hover {
    opacity: 0.9;
}

/* --- PREVISÃO DO TEMPO --- */
.weather-widget-container {
    max-width: 800px;
    margin: 0 auto;
}

.weather-box {
    display: flex;
    justify-content: space-around;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 20px;
}

.weather-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Montserrat', sans-serif;
}

.weather-item strong {
    color: var(--color-primary-dark, #1A3D5D);
    font-size: 16px;
}

.weather-item span {
    color: #666;
    font-size: 14px;
}

@media (max-width: 576px) {
    .weather-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* =========================================
   GALERIA DE FOTOS (CARDS)
   ========================================= */
.fotos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.galeria-foto-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.galeria-foto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.gfc-images {
    display: flex;
    height: 280px;
}

.gfc-main-img {
    flex: 2.2;
    background-size: cover;
    background-position: center;
    border-right: 2px solid #fff;
}

.gfc-side-imgs {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gfc-side-img {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
}

.gfc-side-img:first-child {
    border-bottom: 2px solid #fff;
}

.gfc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.gfc-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.gfc-title {
    font-size: 20px;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.gfc-meta {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    align-items: center;
    border: 1px solid #eaeaea;
}

.gfc-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.gfc-meta i {
    font-size: 16px;
    color: #888;
}

.gfc-tag {
    display: inline-block;
    background: #6c757d;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    align-self: flex-start;
}

/* =========================================
   GALERIA DE VÍDEOS (CARDS)
   ========================================= */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.video-card-inner {
    display: block;
    position: relative;
}

.video-thumb {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(204, 0, 0, 0.9);
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    padding-left: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: red;
}

.video-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.video-card-title {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.video-card-title a {
    color: var(--color-primary-dark);
}

.video-card-meta {
    font-size: 13px;
    color: #777;
}

/* =========================================
   ACESSIBILIDADE & PERFORMANCE (Lighthouse)
   ========================================= */
.slide-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-slider .swiper-slide>.container {
    position: relative;
    z-index: 3; /* Acima do overlay (z-index:2) */
}

/* Touch Targets para Mobile (Swiper) */
.swiper-pagination-bullet {
    width: 16px !important;
    height: 16px !important;
    margin: 0 10px !important;
}

/* Melhorar contraste de cor em textos menores */
.section-link,
.noticia-meta,
.video-card-meta,
.wc-temp-min {
    color: #555 !important;
}



@media(max-width: 992px) {
    .fotos-grid {
        grid-template-columns: 1fr;
    }

    .gfc-images {
        height: 220px;
    }
}