/* =====================================================================
   ABOUT PAGE — style.css
   Page-specific layout only. Shared design system lives in
   assets/css/main.css.
   ===================================================================== */

/* ---------- hero background image ---------- */
.page-hero.dark {
    position: relative;
    /* Dark gradient overlay + background image */
    background: linear-gradient(
            180deg,
            rgba(14, 51, 36, 0.89) 0%,
            rgba(10, 38, 27, 0.49) 100%
    ),
    url("/assets/img/event2026/LatestCommunityPic.jpg") center/cover no-repeat;
}

.story-copy p {
    color: var(--ink-dim);
    line-height: 1.9;
    font-size: 16px;
    margin: 0 0 20px;
}

.story-note {
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 13.5px;
    color: var(--ink-faint);
    font-style: italic;
    margin-top: 8px;
}

.origin-list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.origin-list li {
    font-size: 12.5px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-dim);
}

.offer-grid {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.offer-item {
    background: var(--deep-2);
    padding: 30px 22px;
    text-align: center;
}

.offer-item svg {
    width: 24px;
    height: 24px;
    color: var(--gold-deep);
    margin-bottom: 14px;
}

.offer-item h4 {
    font-family: var(--font-display);
    font-size: 15.5px;
    font-weight: 600;
    margin: 0 0 8px;
}

.offer-item p {
    font-size: 13px;
    color: var(--deep-ink-dim);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 560px) {
    .offer-grid {
        grid-template-columns:repeat(2, 1fr);
    }
}

/* ---------- committee: president's words + member grid ---------- */
.president-card {
    display: grid;
    grid-template-columns: 0.2fr 1.8fr;
    gap: 30px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 36px 38px;
    background: var(--gold-tint);
    margin-bottom: 36px;
}

.president-card .p-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: var(--paper);
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    flex: none;
}

.president-card .p-photo span {
    font-family: var(--font-display);
    font-size: 30px;
    color: var(--gold-deep);
}

.president-card blockquote {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
    color: var(--ink);
}

.president-card .p-name {
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink);
}

.president-card .p-role {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

@media (max-width: 560px) {
    .president-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .president-card .p-photo {
        margin: 0 auto;
    }
}

/* ---------- committee member card (used by home) ---------- */
.committee-grid {
    display: grid;
    grid-template-columns:repeat(6, 1fr);
    gap: 2px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.member {
    background: var(--paper);
    padding: 34px 26px;
    text-align: center;
    position: relative;
}

.member-photo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin: 0 auto 18px;
    overflow: hidden;
    border: 2px solid var(--gold);
    position: relative;
    background: var(--gold-tint);
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-photo span {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--gold-deep);
}

.member h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 6px;
}

.member p {
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin: 0;
}

@media (max-width: 900px) {
    .committee-grid {
        grid-template-columns:repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .committee-grid {
        grid-template-columns:repeat(2, 1fr);
    }
}

/* ---------- timeline ---------- */
.timeline {
    position: relative;
    max-width: 760px;
    margin-top: 52px;
}

.timeline-track {
    position: absolute;
    left: 19px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--line);
    border-radius: 2px;
}

.timeline-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, var(--ink-dim), var(--ink));
    border-radius: 2px;
    transition: height .15s linear;
}

.timeline-fill::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold-bright);
    box-shadow: 0 0 16px 5px rgba(199, 151, 59, .6);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 4px 22px;
    margin-bottom: 44px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    grid-column: 1;
    grid-row: 1;
    width: 14px;
    height: 14px;
    margin: 4px auto 0;
    border-radius: 50%;
    border: 3px solid var(--gold);
    position: relative;
    z-index: 2;
    transition: background .2s ease, box-shadow .2s ease;
}

.timeline-item.active .timeline-dot {
    background: var(--gold-bright);
    box-shadow: 0 0 0 6px var(--gold-tint);
}

.timeline-content {
    grid-column: 2;
}

.timeline-year {
    display: block;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 21px;
    color: var(--gold-deep);
    margin-bottom: 6px;
}

.timeline-content p {
    color: var(--ink-dim);
    font-size: 14.5px;
    line-height: 1.7;
    margin: 0 0 14px;
}

.timeline-carousel {
    position: relative;
    max-width: 710px;
    margin-top: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.timeline-carousel figcaption {
    color: var(--ink-dim);
    font-size: 8px;
    line-height: 1.7;
    text-align: center;
}

.timeline-carousel-track {
    display: flex;
    touch-action: pan-y;
    transition: transform .35s ease;
}

.timeline-carousel-slide {
    flex: 0 0 100%;
    margin: 0;
}

.timeline-carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.timeline-carousel-slide figcaption {
    font-size: 12px;
    color: var(--ink-faint);
    padding: 8px 12px;
    background: var(--paper);
}

.timeline-carousel-arrow {
    position: absolute;
    top: 42%;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(14, 51, 36, 0.85); /* Matches --deep theme color */
    color: var(--gold-bright);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    display: flex;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(15, 59, 38, .18);
}

.timeline-carousel-arrow.prev {
    left: 10px;
}

.timeline-carousel-arrow.next {
    right: 10px;
}

.timeline-carousel-arrow:hover {
    background: var(--gold-bright);
    color: var(--deep);
}

/* Desktop/tablet: ditch the horizontal scroll, lay photos out as a proper grid with more room */
@media (min-width: 761px) {
    .timeline-gallery {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        overflow-x: visible;
    }

    .timeline-media {
        width: auto;
    }

    .timeline-media img {
        height: 200px;
    }
}

@media (max-width: 560px) {
    .timeline-carousel {
        width: 280px;
    }

    .timeline-carousel-slide img {
        height: 160px;
    }

    .timeline-track {
        left: 9px;
    }

    .timeline-dot {
        margin: 4px 3px 0;
    }

    .timeline-item{
        gap: 4px 2px;
    }
}