/* --- Reset e Configurações Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    flex-direction: column;
    color: #333;
}

/* --- Cabeçalho do Site --- */
.site-header {
    width: 100%;
    padding: 10px 20px;
    background-color: #0d47a1;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-placeholder {
    width: 200px;
    flex-shrink: 0;
}

.logo {
    max-height: 50px;
    width: auto;
    margin-left: 25rem;
}

.site-header h1 {
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    flex-grow: 1;
    margin: 0 20px;
}

/* Container Principal */
.main-container {
    display: flex;
    width: 100%;
    flex-grow: 1;
    padding: 20px;
    gap: 20px;
}

/* Colunas das Legislaturas */
.legislature-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.legislature-column h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0d47a1;
    margin-bottom: 8px;
}

.legislature-column h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0e0e0e;
    margin-bottom: 28px;
    height: 24px;
}

/* Níveis da Pirâmide */
.tier {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    margin-bottom: 15px;
}

/* Card do Vereador */
.council-card {
    width: 145px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.static-card { 
     opacity: 0;
     transform: translateY(20px);
}

.council-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.council-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center top;
    border: none;
    transition: height 0.3s ease;
}

/* Informações do Card */
.card-info {
    padding: 12px 10px;
    text-align: center;
    background-color: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.council-card .name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.council-card .role {
    font-size: 0.8rem;
    font-weight: 300;
    color: #666;
}

/* Estilos do Carrossel */
#carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
}

/* Para 6 vereadores */
.tier.vereadores-count-6 .council-card {
    width: 120px;
}
.tier.vereadores-count-6 .council-card img {
    height: 145px;
}

/* Para 7 vereadores */
.tier.vereadores-count-7 {
    gap: 10px;
}
.tier.vereadores-count-7 .council-card {
    width: 105px;
}
.tier.vereadores-count-7 .council-card img {
    height: 125px;
}
.tier.vereadores-count-7 .council-card .name {
    font-size: 0.85rem;
}
.tier.vereadores-count-7 .council-card .role {
    font-size: 0.75rem;
}

