/**
 * Presidents timeline – same classes/IDs as successive deans timeline.
 * Scoped under .successive-deans-section-presidents so changes here only affect the presidents shortcode.
 * Edit this file to customize the presidents timeline; faculty.css remains for the deans timeline.
 */

/* Section */
.successive-deans-section-presidents.successive-deans-section {
    padding: 0px;
    overflow: visible;
    background-color: #fff;
}

.successive-deans-section-presidents .successive-deans-title {
    font-size: 36px;
    font-weight: 700;
    color: #1b2f56;
    margin: 0 0 24px;
    font-family: var(--font-english);
    text-align: left;
}

.successive-deans-section-presidents .successive-deans-timeline {
    position: relative;
    padding: 0 0 45px;
    overflow: visible;
    min-height: 680px;
}

.successive-deans-section-presidents .successive-deans-timeline::before {
    content: "";
    position: absolute;
    /* Slightly above 50% so the line crosses the exact center of the year circle */
    top: 46%;
    transform: translateY(-50%);
    left: 60px;
    right: 60px;
    height: 4px;
    background: linear-gradient(90deg, #fff0, #3a5ba3 20%, #3a5ba3 80%, #fff0);
    z-index: 0;
}

@media (max-width: 768px) {
    .successive-deans-section-presidents .successive-deans-timeline::before {
        top: 43%;
    }
}
/* Timeline items row */
.successive-deans-section-presidents .timeline-items {
    display: flex;
    gap: 48px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 35px 20px 20px;
    scroll-snap-type: x proximity;
    height: auto;
    min-height: 780px;
}

.successive-deans-section-presidents .timeline-items::-webkit-scrollbar {
    height: 6px;
}

.successive-deans-section-presidents .timeline-items::-webkit-scrollbar-track {
    background: #fff0;
}

.successive-deans-section-presidents .timeline-items::-webkit-scrollbar-thumb {
    background: rgb(26 45 86 / 0.25);
    border-radius: 999px;
}

/* Single timeline item */
.successive-deans-section-presidents .timeline-item {
    position: relative;
    flex: 0 0 240px;
    height: 680px;
    scroll-snap-align: start;
    z-index: 2;
    cursor: pointer;
}

/* Year node on the line */
.successive-deans-section-presidents .timeline-node {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #3a5ba3;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    font-family: var(--font-english);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 24px rgb(11 25 57 / 0.18);
}

.successive-deans-section-presidents .timeline-year {
    /* inner text of .timeline-node */
}

/* Card */
.successive-deans-section-presidents .timeline-card {
    width: 220px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgb(11 25 57 / 0.15);
    border: 1px solid rgb(39 74 140 / 0.12);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    overflow: visible;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.successive-deans-section-presidents .timeline-card::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 4px;
    background: linear-gradient(180deg, #fff0 0%, #3a5ba3 35%, #3a5ba3 100%);
    transform: translateX(-50%);
    border-radius: 999px;
}

.successive-deans-section-presidents .timeline-item.is-top .timeline-card {
    bottom: calc(50% + 80px);
}

.successive-deans-section-presidents .timeline-item.is-top .timeline-card::after {
    top: 100%;
    height: 80px;
}

.successive-deans-section-presidents .timeline-item.is-bottom .timeline-card {
    top: calc(50% + 80px);
}

.successive-deans-section-presidents .timeline-item.is-bottom .timeline-card::after {
    bottom: 100%;
    height: 80px;
}

.successive-deans-section-presidents .timeline-card-photo {
    width: 100%;
    height: 160px;
    object-fit: contain;
    border-radius: 25px 25px 0 0;
    margin-top: 20px;
}

.successive-deans-section-presidents .timeline-card-body {
    padding: 18px 20px 30px;
    position: relative;
}

.successive-deans-section-presidents .timeline-card-date {
    font-size: 12px;
    color: #5e6375;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-weight: 600;
}

.successive-deans-section-presidents .timeline-card-date i {
    color: #3a5ba3;
}

.successive-deans-section-presidents .timeline-card-name {
    font-size: 14px;
    margin: 0;
    color: #111b33;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.successive-deans-section-presidents .timeline-card-logo {
    position: absolute;
    width: 46px;
    right: 16px;
    bottom: 16px;
    opacity: 0.3;
}

/* Hover */
.successive-deans-section-presidents .timeline-item:hover .timeline-card {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 25px 60px rgb(11 25 57 / 0.25);
}

.successive-deans-section-presidents .timeline-item.is-top:hover .timeline-card {
    transform: translateX(-50%) translateY(-5px);
}

.successive-deans-section-presidents .timeline-item.is-bottom:hover .timeline-card {
    transform: translateX(-50%) translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .successive-deans-section-presidents .timeline-items {
        gap: 28px;
        padding: 15px 10px 16px;
    }

    .successive-deans-section-presidents .timeline-item {
        flex: 0 0 200px;
    }

    .successive-deans-section-presidents .timeline-card {
        width: 200px;
    }
}

/* RTL: remove any unintended left border/line for presidents timeline */
html[dir="rtl"] .successive-deans-section-presidents,
html[dir="rtl"] .successive-deans-section-presidents .successive-deans-timeline,
html[dir="rtl"] .successive-deans-section-presidents .timeline-items {
    overflow-y: hidden;
}

/* Hide faculty banner only on President Profile Page template */
.page-template-president-profile-page .faculty-banner-section {
    display: none !important;
}

/* President single – summary card under profile */
.page-template-president-profile-page .president-summary-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgb(15 23 42 / 0.08);
    padding: 32px 40px;
    margin: 24px auto 40px;
}

.page-template-president-profile-page .president-summary-content {
    font-size: 14px;
    line-height: 1.8;
    color: #111b33;
}

.page-template-president-profile-page .president-summary-content ul {
    margin: 0 0 0 1.25rem;
    padding: 0;
}

.page-template-president-profile-page .president-summary-content li {
    margin-bottom: 6px;
}

/* President single – additional information card */
.page-template-president-profile-page .president-additional-info-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgb(15 23 42 / 0.08);
    padding: 32px 40px;
    margin: 24px auto 40px;
}

.page-template-president-profile-page .president-additional-info-content {
    font-size: 14px;
    line-height: 1.8;
    color: #111b33;
}

.page-template-president-profile-page .president-additional-info-content ul {
    margin: 0 0 0 1.25rem;
    padding: 0;
}

.page-template-president-profile-page .president-additional-info-content li {
    margin-bottom: 6px;
}
