/* Page-specific CSS: la_junta.html */

.board-page-header {
    padding-top: 140px;
    padding-bottom: 30px;
}

.board-page-header .pro-lead-text {
    margin-bottom: 0;
}

.board-section {
    padding: 10px 0 88px;
    background:
        linear-gradient(180deg, rgba(244, 247, 251, 0.62), rgba(255, 255, 255, 0) 260px),
        var(--surface-white);
}

.board-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 1128px;
    margin: 0 auto;
}

.board-card {
    display: flex;
    width: 360px;
    height: 418px;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface-white);
    border: 1px solid rgba(15, 30, 61, 0.1);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 30, 61, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.board-card--president {
    margin-right: 384px;
    margin-left: 384px;
    border-color: rgba(217, 119, 6, 0.38);
    box-shadow: 0 16px 36px rgba(15, 30, 61, 0.08);
}

.board-card:hover {
    transform: translateY(-5px);
    border-color: rgba(217, 119, 6, 0.48);
    box-shadow: 0 18px 42px rgba(15, 30, 61, 0.11);
}

.board-card-image {
    width: 100%;
    height: 198px;
    object-fit: cover;
    object-position: center top;
    display: block;
    background: var(--light-200);
    flex: 0 0 198px;
}

.board-card-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 30, 61, 0.36);
    font-size: 3rem;
}

.board-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem 1.15rem 1.1rem;
    border-top: 3px solid var(--gold-500);
}

.board-role-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 22px;
    margin-bottom: 0.55rem;
    padding: 0 0.58rem;
    background: var(--navy-900);
    color: var(--surface-white);
    border-radius: 3px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.board-card-name {
    margin: 0 0 0.35rem;
    color: var(--navy-900);
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.16;
}

.board-card-role {
    margin: 0 0 0.65rem;
    color: var(--gold-500);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-transform: uppercase;
}

.board-card-description {
    display: -webkit-box;
    margin: 0 0 0.9rem;
    overflow: hidden;
    color: var(--text-muted-on-light);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.board-card-action {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: auto;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--navy-900);
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color 0.2s ease, transform 0.2s ease;
}

.board-card-action:hover {
    color: var(--gold-500);
    transform: translateX(3px);
}

.board-state {
    width: 100%;
    margin: 1rem 0 0;
    color: var(--text-muted-on-light);
    font-weight: 700;
    text-align: center;
}

.board-state--error {
    color: var(--gold-600);
}

.board-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.board-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.board-modal-dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    width: min(860px, 100%);
    max-height: 86vh;
    overflow: hidden;
    background: var(--surface-white);
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    transform: translateY(12px);
    transition: transform 0.25s ease;
}

.board-modal.is-open .board-modal-dialog {
    transform: translateY(0);
}

.board-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    color: var(--surface-white);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.board-modal-image {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    object-position: center top;
    background: var(--light-200);
}

.board-modal-image.is-hidden {
    display: none;
}

.board-modal-image-fallback {
    display: flex;
    min-height: 420px;
    align-items: center;
    justify-content: center;
    background: var(--light-200);
    color: rgba(15, 30, 61, 0.34);
    font-size: 4.5rem;
}

.board-modal-image-fallback.is-hidden {
    display: none;
}

.board-modal-content {
    padding: 2.5rem;
    overflow-y: auto;
}

.board-modal-role {
    display: inline-flex;
    margin-bottom: 0.9rem;
    padding: 0.35rem 0.7rem;
    background: var(--gold-500);
    color: var(--surface-white);
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.board-modal-content h2 {
    margin: 0 0 1rem;
    color: var(--navy-900);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.board-modal-content p {
    margin: 0;
    color: var(--text-muted-on-light);
    font-size: 1rem;
    line-height: 1.75;
}

body.board-modal-active {
    overflow: hidden;
}

@media (max-width: 980px) {
    .board-grid {
        max-width: 744px;
        gap: 20px;
    }

    .board-card {
        width: 340px;
    }

    .board-card--president {
        margin-right: 0;
        margin-left: 0;
    }
}

@media (max-width: 720px) {
    .board-page-header {
        padding-top: 116px;
        padding-bottom: 24px;
    }

    .board-section {
        padding: 8px 0 64px;
    }

    .board-grid {
        max-width: 360px;
        gap: 1.15rem;
    }

    .board-card {
        width: 100%;
        height: auto;
        min-height: 402px;
    }

    .board-card-image {
        height: 210px;
        flex-basis: 210px;
    }

    .board-modal-dialog {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }

    .board-modal-image {
        height: 280px;
        min-height: 0;
    }

    .board-modal-image-fallback {
        min-height: 280px;
    }

    .board-modal-content {
        padding: 1.5rem;
    }
}
