/* Past Chairmen — vertical timeline (year → photo → message) */

.pch-v-timeline-wrap {
    max-width: 880px;
    margin: 0 auto;
}

.pch-v-timeline {
    position: relative;
    padding: 0.5rem 0 1rem;
}

.pch-v-timeline::before {
    content: '';
    position: absolute;
    left: 118px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #38b2ac 0%, #805ad5 20%, #f6ad55 45%, #4299e1 70%, #1a365d 100%);
    border-radius: 4px;
    opacity: 0.4;
}

.pch-v-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    position: relative;
}

.pch-v-item:last-child {
    margin-bottom: 0;
}

.pch-v-axis {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.pch-v-year {
    display: block;
    min-width: 96px;
    padding: 0.5rem 0.65rem;
    background: var(--pch-tone, #1a365d);
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1.3;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(26, 54, 93, 0.2);
}

.pch-v-item-founder .pch-v-year {
    background: #38b2ac;
}

.pch-v-dot {
    width: 18px;
    height: 18px;
    margin-top: 0.85rem;
    border-radius: 50%;
    background: var(--pch-tone, #1a365d);
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--pch-tone, #1a365d);
    flex-shrink: 0;
}

.pch-v-item-founder .pch-v-dot {
    background: #38b2ac;
    box-shadow: 0 0 0 2px #38b2ac;
}

.pch-v-panel {
    min-width: 0;
}

.pch-v-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(26, 54, 93, 0.08);
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    text-align: left;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.pch-v-card-link {
    text-decoration: none;
    color: inherit;
}

.pch-v-card:hover,
.pch-v-card:focus-visible {
    box-shadow: 0 8px 28px rgba(26, 54, 93, 0.14);
    border-color: var(--pch-tone, #1a365d);
    transform: translateX(4px);
    outline: none;
}

.pch-v-item-founder .pch-v-card:hover,
.pch-v-item-founder .pch-v-card:focus-visible {
    border-color: #38b2ac;
}

.pch-v-circle {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--pch-tone, #1a365d);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(26, 54, 93, 0.15);
}

.pch-v-item-founder .pch-v-circle {
    background: #38b2ac;
}

.pch-v-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    display: block;
}

.pch-v-photo-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 2rem;
}

.pch-v-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pch-v-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a365d;
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.pch-v-role {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    background: rgba(246, 173, 85, 0.18);
    color: #dd6b20;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0.65rem;
}

.pch-v-excerpt {
    margin: 0 0 0.75rem;
    padding-left: 0.85rem;
    border-left: 3px solid #f6ad55;
    font-size: 0.93rem;
    color: #4a5568;
    line-height: 1.65;
    font-style: italic;
}

.pch-v-open {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c5282;
    margin-top: auto;
    transition: color 0.2s ease, gap 0.2s ease;
}

.pch-v-card:hover .pch-v-open,
.pch-v-card-link:hover .pch-v-open {
    color: #dd6b20;
    gap: 0.6rem;
}

/* ---- Modal ---- */
body.pch-modal-open {
    overflow: hidden;
}

.pch-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pch-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.pch-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 31, 60, 0.7);
    backdrop-filter: blur(4px);
}

.pch-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 780px;
    max-height: min(90vh, 820px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.pch-modal.is-open .pch-modal-dialog {
    transform: translateY(0);
}

.pch-modal-accent {
    height: 5px;
    background: linear-gradient(90deg, #f6ad55, #4299e1, #38b2ac, #f6ad55);
    flex-shrink: 0;
}

.pch-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(26, 54, 93, 0.08);
    color: #1a365d;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.pch-modal-close:hover {
    background: #1a365d;
    color: #fff;
}

.pch-modal-header {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    padding: 1.75rem 3.25rem 1.25rem 1.75rem;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.03), rgba(66, 153, 225, 0.06));
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.pch-modal-photo-wrap {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
}

.pch-modal-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f6ad55;
    display: block;
}

.pch-modal-photo[hidden],
.pch-modal-photo-ph[hidden] {
    display: none !important;
}

.pch-modal-photo-ph {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a365d, #4299e1);
    color: #fff;
    font-size: 2rem;
    border: 3px solid #f6ad55;
}

.pch-modal-meta {
    min-width: 0;
    text-align: left;
}

.pch-modal-tenure {
    display: inline-block;
    padding: 0.28rem 0.8rem;
    background: #1a365d;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 0.45rem;
}

.pch-modal-meta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #1a365d;
    margin: 0 0 0.2rem;
    line-height: 1.25;
}

.pch-modal-credentials {
    margin: 0 0 0.15rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: #1a202c;
}

.pch-modal-role {
    margin: 0;
    font-size: 0.9rem;
    color: #718096;
}

.pch-modal-scroll {
    padding: 1.5rem 1.75rem 2rem;
    overflow-y: auto;
    flex: 1;
    text-align: left;
    line-height: 1.8;
    color: #1a202c;
}

.pch-modal-scroll .chairman-message-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 1rem;
}

.pch-modal-scroll p {
    margin: 0 0 1rem;
}

.pch-modal-scroll .chairman-statement-signoff {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.04), rgba(246, 173, 85, 0.1));
    border-left: 4px solid #f6ad55;
    border-radius: 0 10px 10px 0;
    color: #1a365d;
}

.pch-modal-scroll .chairman-milestones-title {
    font-family: 'Playfair Display', serif;
    color: #1a365d;
    font-size: 1.05rem;
    margin: 1.25rem 0 0.65rem;
}

.pch-modal-scroll .chairman-milestones {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
}

@media (max-width: 640px) {
    .pch-v-timeline::before {
        left: 19px;
    }

    .pch-v-item {
        grid-template-columns: 40px 1fr;
        gap: 0.85rem;
        padding-left: 0.25rem;
    }

    .pch-v-axis {
        padding-top: 1rem;
        align-items: flex-start;
    }

    .pch-v-year {
        min-width: 0;
        font-size: 0.68rem;
        padding: 0.35rem 0.45rem;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        max-height: 96px;
    }

    .pch-v-dot {
        position: absolute;
        left: 11px;
        top: 1.5rem;
        margin-top: 0;
        width: 14px;
        height: 14px;
    }

    .pch-v-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.15rem;
        transform: none !important;
    }

    .pch-v-card:hover {
        transform: none;
    }

    .pch-v-body {
        align-items: center;
    }

    .pch-v-excerpt {
        text-align: left;
    }

    .pch-v-circle {
        width: 88px;
        height: 88px;
    }

    .pch-modal-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 3rem 1.25rem 1.25rem;
    }

    .pch-modal-meta {
        text-align: center;
    }
}
