/* =====================================================================
   Leadership: homepage cards + full leadership page
   Uses the site's existing CSS variables (see css/style.css)
   ===================================================================== */

/* ---------- Photo / initials tile (shared) ---------- */
.leader-photo,
.leader-photo-lg {
    overflow: hidden;
    background: #DCE3EC;
}

.leader-photo img,
.leader-photo-lg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-initials {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #ffffff;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 1px;
}

.leader-initials::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: var(--accent-color);
}

.leader-role {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--secondary-color);
}

/* ---------- Homepage section ---------- */
.leadership {
    padding: 4rem 2rem;
    background: #EEF2F7;
    border-bottom: 1px solid var(--border-color);
}

.leaders-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* an odd last card sits centered, not stranded on the left */
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.leader-card {
    flex: 1 1 320px;
    max-width: 484px;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: #ffffff;
    padding: 1.75rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.leader-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.18);
}

.leader-card .leader-photo {
    flex: 0 0 110px;
    width: 110px;
    height: 110px;
    border-radius: 12px;
}

.leader-card h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}

.leader-card .leader-role {
    margin-bottom: 0.75rem;
}

.leader-card p {
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.65;
}

.leader-card .learn-more {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
}

.leader-card .learn-more:hover {
    color: var(--accent-color-dark);
    text-decoration: underline;
}

/* "Meet the full team" button under the homepage cards */
.leaders-more {
    text-align: center;
    margin-top: 2.25rem;
}

/* ---------- Full leadership page ---------- */
.leadership-hero {
    padding: 3.5rem 2rem 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(245, 247, 250, 0.8) 100%);
    border-bottom: 1px solid var(--border-color);
}

.leadership-hero h1 {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.leadership-hero p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
}

.leader-profiles {
    padding: 3.5rem 2rem 4rem;
    background: #ffffff;
}

.leader-profile {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--border-color);
    scroll-margin-top: 110px;
}

.leader-profile:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Group headings on the full page (Directors / Team / Advisors) */
.leader-group {
    margin-bottom: 4.5rem;
}

.leader-group:last-child {
    margin-bottom: 0;
}

.leader-group-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto 2.25rem;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--secondary-color);
}

.leader-group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.leader-photo-lg {
    width: 260px;
    height: 260px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(20, 33, 61, 0.15);
}

.leader-photo-lg .leader-initials {
    font-size: 4rem;
}

.leader-body h3 {
    color: var(--primary-color);
    font-size: 1.9rem;
    margin-bottom: 0.3rem;
}

.leader-body .leader-role {
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
}

.leader-body p {
    color: var(--text-dark);
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.leader-link {
    display: inline-block;
    margin-top: 0.25rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.leader-link:hover {
    color: var(--accent-color-dark);
    text-decoration: underline;
}

.no-leaders {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

.leader-cta {
    padding: 3rem 2rem;
    text-align: center;
    background: #EEF2F7;
    border-top: 1px solid var(--border-color);
}

.leader-cta h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.leader-cta p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.leader-btn:link,
.leader-btn:visited {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-dark));
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    border-radius: 6px;
    transition: var(--transition);
}

.leader-btn:hover {
    opacity: 0.92;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .leadership,
    .leader-profiles {
        padding: 3rem 1.5rem;
    }

    .leader-profile {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .leader-photo-lg {
        width: 200px;
        height: 200px;
    }

    .leadership-hero h1 {
        font-size: 1.9rem;
    }
}

@media (max-width: 480px) {
    .leader-card {
        flex-direction: column;
    }

    .leader-card {
        flex-basis: 100%;
        max-width: none;
    }
}
