main {
    background-color: var(--accent-color);
}
/* --- LAYOUT DA PÁGINA --- */
.vozes-page {
    padding: 80px 20px 60px;
    min-height: 100vh;
}

.container {
    max-width: 1350px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 50px;
    text-align: center;
}

.title-main {
    font-family: var(--font-title);
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-top: 0px;
    margin-bottom: 15px;
    line-height: 1.1;
}

.media-subtitle {
    font-size: 16px;
    font-weight: bold;
    color: #2b2b2b;
    line-height: 1.4;
    text-transform: uppercase;
    max-width: 520px;
    margin: 0 auto;
}

/* --- BARRA DE FILTROS (ALINHAMENTO DO BANCO) --- */
.media-filters-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.filter-group {
    flex: 1;
}

/* Define larguras máximas iguais para os dois selects ficarem organizados à direita */
.filter-group.select-group {
    max-width: 260px;
}

#filter-search, #filter-nome, #filter-ordem {
    width: 100%;
    height: 54px;
    padding: 0 20px;
    border: 2px solid #e2e2e2;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #2b2b2b;
    background-color: #fcfcfc;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

#filter-search:focus, #filter-nome:focus, #filter-ordem:focus {
    border-color: var(--secondary-color);
    background-color: #ffffff;
}

/* Seta customizada para os selects */
#filter-nome, #filter-ordem {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232b2b2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

/* =========================================
   SECTION: VOZES DO IMPACTO
========================================= */

.vozes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.vozes-section {
    background-image: url(../../../img/pages/home/bg-3.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--accent-color);
    padding: 80px 0;
    overflow: hidden;
}

.vozes-header {
    text-align: center;
    margin-bottom: 50px;
}

.vozes-header p {
    max-width: 520px;
    margin: 0 auto;
    font-weight: bold;
    line-height: 140%;
}

#vozes-slider {
    width: 100%;
    max-width: 1550px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    cursor: grab;
}

.vozes-card {
    position: relative;
    width: 300px;
    height: 400px;
    border-radius: 30px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.vozes-card:hover {
    transform: translateY(-5px);
}

.vozes-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vozes-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    padding-left: 50px;
    background: linear-gradient(transparent, rgba(51, 51, 51, 0.8), rgba(51, 51, 51, 1), rgba(51, 51, 51, 1));
    color: white;
    box-sizing: border-box;
}

.vozes-content .detalhe {
    background-image: url(../../../img/pages/home/detalhe-1.png);
    background-repeat: no-repeat;
    background-position: top left;
    position: absolute;
    top: 56px;
    left: 21px;
    width: 20px;
    height: calc(100% - 89px);
}

.vozes-content h3 {
    color: #ff0000;
    font-size: 1.4rem;
    margin-bottom: 5px;
    line-height: 1.1;
    text-transform: uppercase;
}

.vozes-content p {
    font-size: 14px;
    line-height: 1.3;
    color: #fff;
    margin: 0;
}

/* --- ESTILOS DO MODAL DE VÍDEO --- */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #1e1e1e;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ff3b3b;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.video-modal-close:hover {
    color: #ffffff;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- STATUS SEM RESULTADOS --- */
.no-results-global {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #6e6e6e;
}

/* --- FOOTER / BOTÃO VER MAIS --- */
.news-list-vertical-footer {
    text-align: center;
    margin-top: 50px;
    width: 100%;
}

/* =========================================
   RESPONSIVO / MOBILE (Até 768px)
========================================= */
@media (max-width: 768px) {
    /* --- Layout e Header --- */
    .vozes-page {
        padding: 40px 15px 50px; /* Reduz o respiro para telas menores */
    }

    .page-header {
        margin-bottom: 30px;
    }

    .title-main {
        font-size: 2.2rem; /* Reduz o tamanho do título */
        margin-bottom: 10px;
    }

    .media-subtitle {
        font-size: 14px;
        max-width: 100%;
    }

    /* --- Barra de Filtros --- */
    .media-filters-bar {
        flex-direction: column; /* Empilha os campos (Busca, Nome, Ordem) */
        gap: 15px;
        padding: 15px;
        margin-bottom: 40px;
        border-radius: 15px;
    }

    .filter-group.select-group {
        max-width: 100%; /* Libera o select para ocupar a largura toda do celular */
    }

    #filter-search, #filter-nome, #filter-ordem {
        height: 50px; /* Deixa o campo touch mais amigável */
        font-size: 16px; /* Evita que o iPhone dê "zoom" automático no input */
    }

    /* --- Grid e Cards --- */
    .vozes-grid {
        grid-template-columns: 1fr; /* Força 1 card por linha no celular */
        gap: 30px;
    }

    .vozes-card {
        width: 100%; /* Remove a trava rígida de 300px */
        max-width: 340px; /* Impede que o card fique gigante em tablets pequenos */
        margin: 0 auto; /* Centraliza o card na tela */
        height: 400px;
    }

    .vozes-content {
        padding: 20px 20px 20px 45px; /* Ajusta o padding interno pro card não ficar apertado */
    }

    .vozes-content .detalhe {
        left: 15px;
        top: 45px;
        height: calc(100% - 65px);
    }

    /* --- Modal de Vídeo --- */
    .video-modal-content {
        width: 95%;
        padding: 15px;
    }

    .video-modal-close {
        top: -35px;
        right: 0px; /* Ajusta o botão de fechar para não sair da tela no topo */
        font-size: 35px;
    }
}

/* =========================================
   AJUSTE DE RESOLUÇÕES INTERMEDIÁRIAS (Tablets até 1024px)
========================================= */
@media (max-width: 1024px) and (min-width: 769px) {
    .media-filters-bar {
        flex-wrap: wrap; /* Permite que os filtros quebrem linha se faltar espaço */
    }
    
    .filter-group.search-group {
        min-width: 100%; /* A busca ocupa a linha toda */
    }
    
    .filter-group.select-group {
        max-width: 50%; /* Os selects dividem a segunda linha */
        flex: 1;
    }
}