/* ================= Officers page ================= */
body {
    background-color: #F5F5F5;
}

/* ---- Hero (shared .smallpages pattern) ---- */
.smallpages {
    background-color: var(--lilac);
    padding: clamp(2.5rem, 6vw, 4rem) 1rem;
    text-align: center;
    border-radius: 0;
    margin: 0;
}

.smallpages > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    flex-wrap: wrap;
    text-align: left;
    max-width: 1120px;
    margin: 0 auto;
}

.smallpages .text-container {
    flex: 1 1 320px;
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: left;
}

.text-container h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    position: relative;
    line-height: 1.2;
    text-align: left;
}

.text-container h1::after {
    content: '';
    display: block;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background-color: var(--tan);
    margin: 0.75rem 0 0;
}

.text-container .explanation {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin-top: 0;
    text-align: left;
}

/* Hero image sits to the RIGHT of the text on desktop, below on mobile */
.smallpages img {
    order: 2;
    flex: 0 1 440px;
    width: 440px;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

/* ---- Expandable year sections ---- */
.officers-expandable {
    padding: clamp(2rem, 5vw, 3rem) 1rem;
    text-align: center;
    background-color: #FFFFFF;
}

.year-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 1100px;
    margin: 1rem auto;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #ECE6F5;
}

.year-section h2 {
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    color: #4A4A4A;
    margin: 0;
}

.expand-btn {
    background-color: var(--purple);
    color: white;
    border: none;
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.expand-btn:hover {
    background-color: #4A007E;
    transform: translateY(-2px);
}

/* ---- Officers content ---- */
.officers-content {
    max-width: 1100px;
    margin: 1.5rem auto 0;
}

.officers-content.hidden {
    display: none;
}

.officer-section {
    margin-bottom: 3rem;
    width: 100%;
}

.officer-section h3 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    text-align: center;
    margin-bottom: 1.75rem;
    color: var(--purple-deep);
    position: relative;
    display: inline-block;
}

.officer-section h3::after {
    content: '';
    display: block;
    width: 44px;
    height: 4px;
    border-radius: 2px;
    background-color: var(--tan);
    margin: 0.6rem auto 0;
}

/* ---- Officers grid ---- */
.officers-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: center;
    margin-bottom: 1.5rem;
}

.officer {
    text-align: center;
    max-width: 240px;
    background-color: #FFFFFF;
    border: 1px solid #EFE9F6;
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.officer:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.officer img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--lilac);
}

.officer p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    text-align: center;
}

.officer a {
    color: var(--purple);
    font-weight: 600;
}

.officer a:hover {
    color: var(--purple-hover);
}

/* ---- Department group photos ---- */
.department {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0 0;
}

.department img {
    width: 100%;
    max-width: 640px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .department img {
        max-width: 100%;
    }

    .year-section {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
