.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1f3847;
}

.previous-councilor-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.previous-councilor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.councilor-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.councilor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.previous-councilor-card:hover .councilor-image {
    transform: scale(1.05);
}

.overlay-content i {
    color: white;
    font-size: 2rem;
}

.councilor-info {
    padding: 1.5rem;
}

.councilor-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f3847;
    margin-bottom: 0.5rem;
}

.councilor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.council-term {
    background-color: #6c757d;
    color: white;
}

.council-district {
    background-color: #1f3847;
    color: white;
}

.council-role {
    background-color: #326e92;
    color: white;
}

.councilor-rank {
    color: #6c757d;
    font-size: 0.9rem;
}

.councilor-rank i {
    color: #ffc107;
    margin-right: 0.3rem;
}

.btn-reset {
    background-color: #1f3847;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.district-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f3847;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e3eaf0;
    display: flex;
    align-items: center;
}

.district-title i {
    color: #326e92;
    margin-right: 0.5rem;
}
.btn-reset:hover {
    background-color: #326e92;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .councilor-image-container {
        height: 200px;
    }
    
    .councilor-name {
        font-size: 1.2rem;
    }
}