.committee-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5rem;
}

.committee-section__title {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--c-text-primary);
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--c-border);
    width: 100%;
}

.committee-chairmen-wrap {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.committee-chairmen-wrap .committee-chairman-card {
    flex: 0 0 auto;
    width: clamp(220px, 30%, 340px);
}

.committee-page {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.committee-title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--c-text-primary);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}

/* ── Chairman ── */
.committee-chairman-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
}

.committee-chairman-card {
    position: relative;
    width: clamp(260px, 45%, 420px);
    background: rgba(74, 243, 255, 0.04);
    border: 1px solid var(--c-accent-border);
    border-radius: 14px;
    padding: 2rem 2.5rem;
    text-align: center;
    box-shadow: 0 0 32px rgba(74, 243, 255, 0.06);
}

.committee-chairman-card__badge {
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #080f1e;
    background: var(--c-accent);
    padding: 3px 12px;
    border-radius: 99px;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 16px !important;
}

.committee-chairman-card__name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--c-text-primary);
    margin: 0 0 6px;
    text-align: center;
}

.committee-chairman-card__role {
    font-size: 0.85rem;
    color: var(--c-text-secondary);
    margin: 0;
    letter-spacing: 0.02em;
    text-align: center;
}

/* ── Connector ── */
.committee-connector {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--c-accent-border), transparent);
}

/* ── Grid ── */
.committee-grid {
    all: unset;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
}

/* ── Member Card (photo left, text right) ── */
.committee-card {
    background: var(--c-bg-2);
    border: 1px solid var(--c-border-strong);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
    position: relative;
    overflow: hidden;
}

.committee-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--c-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.committee-card:hover {
    border-color: var(--c-accent-border);
    background: rgba(74, 243, 255, 0.03);
}

.committee-card:hover::before {
    transform: scaleX(1);
}

/* ── Text wrapper (right side) ── */
.committee-card__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.committee-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--c-text-primary);
    margin: 0;
    text-align: left;
}

.committee-card__role {
    font-size: 0.75rem;
    color: var(--c-text-muted);
    margin: 0;
    letter-spacing: 0.01em;
    text-align: left;
}

/* ── Avatar circle ── */
.committee-avatar {
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background-color: var(--c-primary, #1a5276);
    flex-shrink: 0;
    border: 2px solid var(--c-accent-border);
}

/* Larger circle for chairpersons */
.committee-avatar--chair {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem auto;
}

/* Smaller circle for regular members */
.committee-avatar--member {
    width: 70px;
    height: 70px;
    margin: 0;
    flex-shrink: 0;
}

.committee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback initials when no photo */
.committee-avatar__initials {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
}

.committee-avatar--member .committee-avatar__initials {
    font-size: 1.2rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .committee-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .committee-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .committee-chairman-card {
        width: 100%;
        padding: 1rem;
    }

    .committee-card {
        flex-direction: row !important;
        align-items: center;
        gap: 0.6rem;
        padding: 0.75rem 1rem;
    }

    .committee-avatar--member {
        width: 52px;
        height: 52px;
    }

    .committee-card__name {
        font-size: 0.85rem;
    }

    .committee-card__role {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .committee-grid {
        grid-template-columns: 1fr;
    }

    /* image TOP, name and designation BOTTOM */
    .committee-card {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem;
        padding: 1rem;
        text-align: center;
    }

    .committee-avatar--member {
        width: 70px;
        height: 70px;
        margin: 0 auto 0.25rem auto;
    }

    .committee-avatar--member .committee-avatar__initials {
        font-size: 1rem;
    }

    .committee-card__info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        width: 100%;
    }

    .committee-card__name {
        font-size: 0.9rem;
        text-align: center;
    }

    .committee-card__role {
        font-size: 0.72rem;
        text-align: center;
    }

    /* Chairman card full width on mobile */
    .committee-chairman-card {
        width: 100%;
        padding: 1rem;
    }

    .committee-avatar--chair {
        width: 80px;
        height: 80px;
    }

    .committee-chairman-card__name {
        font-size: 1.1rem;
    }

    .committee-chairman-card__role {
        font-size: 0.8rem;
    }

    .committee-chairmen-wrap .committee-chairman-card {
        width: 100%;
    }

    .committee-page {
        padding: 2rem 1rem 4rem;
    }

    .committee-section {
        margin-bottom: 3rem;
    }
}