/**
 * Leadership Block Styles
 * Based on about-leadership section from EverSmith-HTML-PAGE/about.html
 */

.leadership-block {
    position: relative;
    width: 100%;
    padding: 100px 80px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Background image with dark blue overlay */
.leadership-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.leadership-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leadership-overlay {
    position: absolute;
    inset: 0;
    background: rgba(25, 62, 110, 0.8);
}

/* Container */
.leadership-container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

/* Header section */
.leadership-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Label styling - white color variant for dark background */
.leadership-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0;
}

.leadership-label img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.leadership-label span {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff !important;
}

/* Profiles Grid */
.leadership-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.leadership-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    align-items: start;
}

/* Individual card */
.leadership-card {
    background: #f6fbfc;
    border-radius: 8px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.leadership-card--empty {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

/* Card image */
.leadership-card-image {
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.leadership-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card content */
.leadership-card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.leadership-card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Name and LinkedIn row */
.leadership-card-name-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    min-height: 24px;
}

.leadership-card-name {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.5;
    color: #0097a7;
    margin: 0;
}

/* LinkedIn icon */
.leadership-linkedin {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leadership-linkedin img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Role/position */
.leadership-card-role {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    color: #404a50;
    margin: 0;
}

/* Bio text */
.leadership-card-bio-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.leadership-card-bio-short {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #404a50;
    margin: 0;
}

.leadership-card-bio-full {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #404a50;
    margin: 0;
    display: none;
}

/* Expanded state for bio toggle */
.leadership-card.is-expanded .leadership-card-bio-short {
    display: none;
}

.leadership-card.is-expanded .leadership-card-bio-full {
    display: block;
}

.leadership-card.is-expanded .leadership-card-toggle svg {
    transform: rotate(180deg);
}

/* Read More/Less toggle button */
.leadership-card-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    color: #e57440;
    text-decoration: underline;
    text-decoration-skip-ink: none;
}

.leadership-card-toggle span {
    color: #e57440;
}

.leadership-card-toggle svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.leadership-card-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
    .leadership-block {
        padding: 80px 40px;
    }

    .leadership-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .leadership-card--empty {
        display: none;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    .leadership-block {
        padding: 60px 24px;
    }

    .leadership-container {
        gap: 48px;
    }

    .leadership-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .leadership-card {
        padding: 24px 20px;
    }

    .leadership-card-name {
        font-size: 20px;
    }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
    .leadership-block {
        padding: 48px 20px;
    }

    .leadership-card {
        padding: 24px 20px;
    }
}
