.district-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.district-title i {
    color: var(#3498db);
}

/* Official Cards */
.official-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%;
    display: flex;
    flex-direction: column;
}

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

.featured-official {
    border: 2px solid rgba(#2c3e50, 0.1);
}

/* Image Container */
.official-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.official-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.official-card:hover .official-image {
    transform: scale(1.05);
}

/* Content */
.official-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.official-badge {
    display: inline-block;
    background: linear-gradient(23deg, #184554, #2d7d96);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.official-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Meta Information */
.official-meta {
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.meta-item i {
    color: var(#3498db);
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.meta-item a {
    color: var(#333);
    text-decoration: none;
    transition: all 0.3s ease;
}

.meta-item a:hover {
    color: var(#3498db);
}

/* Details Section */
.official-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    padding: 0 0.5rem;
}

.official-details.active {
    max-height: 1000px;
    padding: 1rem 0.5rem;
}

.detail-group {
    margin-bottom: 1.5rem;
}

.detail-group h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.detail-group h4:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: var(#3498db);
    border-radius: 50%;
}

/* Buttons */
.btn-details {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(23deg, #184554, #2d7d96);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(23, 66, 81, 0.2);
}

.btn-details:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(23, 66, 81, 0.3);
}

.btn-details i {
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.btn-details:hover i {
    transform: translateY(-1px);

}

/* Responsive */
@media (max-width: 992px) {
    /* .section-title {
        font-size: 2rem;
    } */
    
    .official-image-container {
        height: 200px;
    }
}

@media (max-width: 768px) {
    /* .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    } */
    
    .official-name {
        font-size: 1.3rem;
    }
    
    .official-image-container {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .official-card {
        margin-bottom: 1.5rem;
    }
    
    .official-image-container {
        height: 220px;
    }
}

/* Official Detail Page */
.official-detail-page {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.btn-back {
    background-color: white;
    color: #2c3e50;
    border: 1px solid #2c3e50;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #2c3e50;
    color: white;
}

.official-profile-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    padding: 2rem;
}

.official-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.official-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.quick-info-box {
    background: #f6fbfd;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #e0f0fa;
}

.quick-info-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0f0fa;
}

.quick-info-content {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.info-item i {
    color: var(#3498db);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.official-name {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.details-section {
    margin-bottom: 2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detail-icon {
    background: #eaf6fa;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon i {
    color: var(#3498db);
    font-size: 1.1rem;
}

.detail-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.3rem;
}

.detail-content p,
.detail-content a {
    font-size: 1rem;
    color: var(#333);
    margin-bottom: 0;
}

.detail-content a {
    color: var(#3498db);
    text-decoration: none;
    transition: all 0.3s ease;
}

.detail-content a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

.committee-details {
    background: #f6fbfd;
    padding-left: 1.5rem;
    border-radius: 10px;
}

.committee-item {
    margin-bottom: 1.5rem;
}

.committee-item:last-child {
    margin-bottom: 0;
}

.committee-item h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.committee-item p {
    font-size: 1rem;
    color: var(#333);
}

/* Responsive */
@media (max-width: 992px) {
    .official-image-container {
        height: 350px;
    }
    
    .official-name {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .official-image-container {
        height: 300px;
    }
    
    .official-name {
        font-size: 1.6rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .official-detail-page {
        padding: 2rem 0;
    }
    
    .official-profile-card {
        padding: 1.5rem;
    }
    
    .official-image-container {
        height: 250px;
    }
    
    .official-name {
        font-size: 1.5rem;
    }
    
    /* .section-title {
        font-size: 1.2rem;
    } */
}
