/* ====================================================================
   LAYOUT UNIFICADO: PÍLULAS DE NAVEGAÇÃO INTEGRAL
   ==================================================================== */

.temas-carousel-section {
    padding: 10px 0 !important; /* Espaço mínimo no topo */
    width: 100%;
}

/* Remove qualquer título que tenha sobrado */
.temas-carousel-section .section-title {
    display: none !important;
}

.carousel-container {
    width: 100%;
    margin: 0 auto;
}

.temas-wrapper {
    overflow-x: auto;
    /* Alinha o início das pílulas com a margem do cabeçalho (5%) */
    padding: 10px 5% 20px 5% !important; 
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
}

.temas-wrapper::-webkit-scrollbar {
    display: none;
}

.temas-grid {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 12px; /* Espaçamento entre os botões */
}

/* Remove a estrutura de grupos do antigo carrossel */
.tema-grupo {
    display: flex !important;
    gap: 12px;
    min-width: auto !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
}

.tema-card {
    flex: 0 0 auto;
    height: 42px;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: var(--white);
    border: 1px solid rgba(145, 78, 59, 0.2);
    border-radius: 30px;
    padding: 0 18px 0 12px;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tema-card:hover {
    border-color: var(--primary-color);
    background-color: rgba(145, 78, 59, 0.03);
}

.tema-card:active {
    transform: scale(0.96);
}

.tema-icon {
    font-size: 1.2rem;
    margin: 0;
}

.tema-card h3 {
    font-size: 0.9rem;
    margin: 0;
    color: var(--primary-color);
    white-space: nowrap;
    font-weight: 600;
}

/* Esconde permanentemente os elementos do carrossel antigo */
.tema-card p, 
.nav-btn, 
.tema-card-vazio {
    display: none !important;
}