/* =====================================================
   LEADERSHIP & COMMITTEES - PREMIUM GLOW DESIGN
   Large Imagery, Round Glow, Professional Aesthetics
   ===================================================== */

/* Section Container */
.committee-section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(103, 0, 71, 0.03) 100%);
}

.committee-section .section-header {
    text-align: center;
    margin-bottom: 80px;
}

.committee-section .section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #670047;
    /* Primary Theme Color */
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.committee-section .section-header h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 5px;
    background: #670047;
    margin: 10px auto 0;
    border-radius: 10px;
    opacity: 0.3;
}

.committee-section .section-header p {
    color: #666;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Category Title */
.committee-category {
    margin-bottom: 80px;
    position: relative;
}

.committee-category h3 {
    text-align: center;
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.committee-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #670047;
}

/* Subgroups (for registration etc) */
.committee-subgroup h4 {
    text-align: center;
    font-size: 1.4rem;
    color: #555;
    margin: 40px 0 30px;
    font-weight: 600;
}

/* GRID LAYOUT */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    justify-content: center;
}

/* MEMBER CARD - VERTICAL CENTERED DESIGN */
.member-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    /* Soft shadow by default */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hover Effect: Lift */
.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(103, 0, 71, 0.15);
    border-color: rgba(103, 0, 71, 0.1);
}

/* Top Accent Line */
.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #670047, #d48bb1);
    opacity: 0;
    transition: opacity 0.3s;
}

.member-card:hover::before {
    opacity: 1;
}

/* MEMBER PHOTO - LARGE & GLOWING EDGE */
.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    /* Clean Border with Light Glow */
    border: 4px solid #fff;
    box-shadow:
        0 0 15px rgba(103, 0, 71, 0.15),
        /* Soft outer glow */
        inset 0 0 10px rgba(103, 0, 71, 0.1);
    /* Inner depth */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #fff;
}

.member-card:hover .member-photo {
    transform: scale(1.05);
    border-color: #670047;
    /* Border changes color */
    box-shadow:
        0 0 25px rgba(103, 0, 71, 0.4),
        /* Stronger outer glow */
        0 0 0 4px rgba(103, 0, 71, 0.1);
    /* External ring */
}

.member-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
}

/* Initials Fallback */
.member-photo .initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #670047;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
}

/* MEMBER DETAILS */
.member-details h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
    line-height: 1.4;
}

.member-details .role {
    font-size: 0.95rem;
    color: #777;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

/* Highlight the role on hover */
.member-card:hover .member-details .role {
    color: #670047;
}

/* FEATURED CARD STYLE (Chairs) */
.member-card.featured {
    background: linear-gradient(145deg, #ffffff, #fcfcfc);
    border: 2px solid rgba(103, 0, 71, 0.1);
    transform: scale(1.02);
}

.member-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 25px 50px rgba(103, 0, 71, 0.2);
}

.member-card.featured .member-photo {
    width: 170px;
    /* Even Larger for featured */
    height: 170px;
    box-shadow: 0 0 30px rgba(103, 0, 71, 0.3);
}

.member-card.featured:hover .member-photo {
    box-shadow: 0 0 50px rgba(103, 0, 71, 0.6);
}

.member-card.featured .member-details h4 {
    font-size: 1.4rem;
    color: #670047;
}

/* DARK MODE SUPPORT */
[data-theme="dark"] .committee-section {
    background: #121212;
}

[data-theme="dark"] .committee-section .section-header h2 {
    color: #d48bb1;
}

[data-theme="dark"] .committee-section .section-header h2::after {
    background: #d48bb1;
}

[data-theme="dark"] .committee-section .section-header p {
    color: #aaa;
}

[data-theme="dark"] .committee-category h3 {
    color: #eee;
}

[data-theme="dark"] .committee-category h3::after {
    background: #d48bb1;
}

[data-theme="dark"] .member-card {
    background: #1e1e1e;
    border-color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .member-card:hover {
    box-shadow: 0 20px 40px rgba(212, 139, 177, 0.15);
    border-color: rgba(212, 139, 177, 0.3);
}

[data-theme="dark"] .member-photo {
    background: #2a2a2a;
    box-shadow: 0 0 20px rgba(212, 139, 177, 0.2);
}

[data-theme="dark"] .member-card:hover .member-photo {
    box-shadow: 0 0 40px rgba(212, 139, 177, 0.5);
}

[data-theme="dark"] .member-details h4 {
    color: #f0f0f0;
}

[data-theme="dark"] .member-details .role {
    color: #bbb;
}

[data-theme="dark"] .member-card:hover .member-details .role {
    color: #d48bb1;
}

[data-theme="dark"] .committee-subgroup h4 {
    color: #ccc;
}