/* ===========================
   LISTING VIEW (SHORTCODE)
   =========================== */

/* Wrapper for listing */
.aserc-commissioners-wrapper {
    margin: 2rem 0;
}

/* Executive Commissioners listing layout */
.commissioners-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.commissioner-card {
    display: flex;
    gap: 2rem;
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.commissioner-photo {
    flex: 0 0 180px;
    max-width: 180px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.commissioner-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.commissioner-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #ffcd29;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2.5rem;
    color: #000;
    text-decoration: none;
}

.commissioner-body {
    flex: 1;
}

.commissioner-name {
    margin: 0 0 0.25rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #000000;
}

.commissioner-name a {
    color: inherit;
    text-decoration: none;
}

.commissioner-name a:hover {
    text-decoration: underline;
}

.commissioner-position {
    margin: 0 0 0.75rem;
    font-weight: 500;
    color: #666666;
}

.commissioner-bio {
    line-height: 1.7;
    font-size: 0.98rem;
}

/* Responsive listing */
@media (max-width: 768px) {
    .commissioner-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .commissioner-photo {
        max-width: 140px;
        margin-bottom: 1rem;
    }
}

/* Buttons (shared) */
.btn-small {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid #ffcd29;
    background: #ffcd29;
    color: #000;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-small.btn-outline {
    background: transparent;
    color: #333;
}

/* ===========================
   SINGLE PROFILE CARD VIEW
   =========================== */

.commissioner-profile-card {
    max-width: 960px;
    margin: 0 auto 2.5rem;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 3px solid #ffcd29;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.20);
    position: relative;
}

/* Top accent bar */
.commissioner-profile-accent {
    height: 8px;
    background: linear-gradient(90deg, #ffcd29, #000000, #ffcd29);
}

/* Header */
.commissioner-profile-header {
    display: flex;
    gap: 1.75rem;
    padding: 2rem 2.3rem 1.75rem;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 40%, #fff4cc 100%);
    border-bottom: 2px solid #ffcd29;
}

/* Avatar */
.commissioner-profile-avatar {
    flex: 0 0 130px;
    height: 130px;
    border-radius: 50%;
    background: #000000;
    border: 5px solid #ffcd29;
    color: #ffcd29;
    font-size: 3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.4);
}

/* Header texts */
.commissioner-profile-tag {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.9rem;
    background: #000000;
    color: #ffcd29;
    border-radius: 999px;
    text-transform: uppercase;
}

.commissioner-profile-name {
    font-size: 1.9rem;
    font-weight: 900;
    margin: 0.5rem 0 0;
    color: #000000;
}

.commissioner-profile-title {
    margin: 0.2rem 0 0.6rem;
    font-size: 1rem;
    font-weight: 600;
    color: #4c3a00;
}

/* Wrapper that holds the badge and centers it */
.commissioner-profile-highlight {
    display: flex;
    justify-content: center;
    margin: 1.25rem 1.5rem 0.75rem;
}

/* The actual badge */
.commissioner-profile-highlight span {
    background: #ffcd29;
    color: #000000;
    padding: 0.45rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
    text-align: center;
    white-space: normal;       /* wraps nicely on mobile */
}

/* Slight tweak on mobile so it doesn’t look cramped */
@media (max-width: 768px) {
    .commissioner-profile-highlight {
        margin: 1rem 1rem 0.75rem;
    }
}


/* Body */
.commissioner-profile-body {
    padding: 2.25rem 2.3rem 2rem;
    background: #ffffff;
}

/* Meta grid */
.commissioner-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff8dc;
    border: 1px solid #ffcd29;
    padding: 1.2rem;
    border-radius: 14px;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.commissioner-meta-item-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
}

.commissioner-meta-item-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4c3a00;
}

/* Sections */
.commissioner-section {
    margin-bottom: 1.8rem;
}

.commissioner-section-title {
    font-size: 1rem;
    font-weight: 900;
    color: #000000;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.commissioner-section-title span {
    border-left: 6px solid #ffcd29;
    padding-left: 0.75rem;
}

.commissioner-section p {
    font-size: 1rem;
    line-height: 1.85;
    color: #333333;
}

/* Footer actions */
.commissioner-profile-footer-actions {
    margin-top: 1.5rem;
}

/* Chips (if needed later) */
.commissioner-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.commissioner-chip {
    background: #fff4c2;
    border: 1px solid #ffcd29;
    color: #000000;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Responsive single */
@media (max-width: 768px) {
    .commissioner-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.7rem 1.4rem 1.4rem;
    }

    .commissioner-profile-body {
        padding: 1.6rem 1.4rem 1.6rem;
    }

    .commissioner-meta-grid {
        grid-template-columns: 1fr;
    }
}

/* Avatar container */
.commissioner-profile-avatar {
    flex: 0 0 130px;
    height: 130px;
    border-radius: 50%;
    background: #000000;
    border: 5px solid #ffcd29;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* important so the image stays circular */
}

/* When using an image */
.commissioner-profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* When falling back to initials */
.commissioner-profile-avatar-initials {
    color: #ffcd29;
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.4);
}
