/* Officials Page Styles */

.officials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Section */
.officials-header {
    background: linear-gradient(135deg, #002e8a 0%, #0040a0 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 46, 138, 0.2);
}

.officials-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
}

/* Section Styles */
.officials-section {
    margin-bottom: 4rem;
}

.officials-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #002e8a;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}

/* Cainta Officials Section */
.cainta-officials {
    background: white;
    padding: 2rem;
    border-radius: 12px;
}

.cainta-officials .officials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Official Card */
.official-card {
    background: white;
    border: 3px solid #002e8a;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 46, 138, 0.1);
}

.official-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 46, 138, 0.2);
    border-color: #0040a0;
}

.official-card .photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f4f6ff;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.official-card .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.official-card .name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #002e8a;
    margin: 1rem 0 0.5rem;
}

.official-card .position {
    color: #555;
    font-size: 1rem;
    font-weight: 500;
}

/* Councilors Section */
.councilors-section {
    background: linear-gradient(135deg, #002e8a 0%, #0040a0 100%);
    color: white;
    padding: 3rem 2rem;
    margin-bottom: 4rem;
    border-radius: 12px;
}

.councilors-section .officials-section-title {
    color: white;
    margin-bottom: 2.5rem;
}

.councilors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Councilor Card */
.councilor-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.councilor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.councilor-card .photo {
    width: 100%;
    height: 160px;
    background: #ddd;
    border-radius: 6px;
    margin-bottom: 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.councilor-card .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.councilor-card .name {
    font-weight: 700;
    color: #002e8a;
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
}

/* Barangay Chairpersons Section */
.barangay-chairs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Barangay Chair Card */
.barangay-chair-card {
    background: white;
    border: 3px solid #002e8a;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 46, 138, 0.1);
}

.barangay-chair-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 46, 138, 0.2);
    border-color: #0040a0;
}

.barangay-chair-card .photo {
    width: 100%;
    height: 160px;
    background: #ddd;
    border-radius: 6px;
    margin-bottom: 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.barangay-chair-card .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.barangay-chair-card .name {
    font-weight: 700;
    color: #002e8a;
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
}

.barangay-chair-card .barangay {
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Footer Spacing */
.officials-footer {
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .officials-container {
        padding: 1rem;
    }

    .officials-header {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .officials-header h1 {
        font-size: 1.8rem;
    }

    .cainta-officials .officials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .councilors-grid,
    .barangay-chairs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .officials-section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .councilors-grid,
    .barangay-chairs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .official-card,
    .councilor-card,
    .barangay-chair-card {
        padding: 1rem;
    }

    .officials-section-title {
        font-size: 1.3rem;
    }
}
