/* =============================================
   AGENDA PAGE — KCSFA Conference 2026
   ============================================= */

/* ---- Hero ---- */
.agenda-hero {
    position: relative;
    background-color: #1B1C13;
    padding: 120px 5% 60px;
    overflow: hidden;
}

.agenda-hero__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(254, 107, 2, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(254, 107, 2, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

/* Fade grid toward bottom */
.agenda-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #1B1C13);
    pointer-events: none;
}

.agenda-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agenda-hero__label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #FE6B02;
    background: rgba(254, 107, 2, 0.12);
    border: 1px solid rgba(254, 107, 2, 0.3);
    padding: 8px 12px;
    border-radius: 20px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.agenda-hero__title {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.agenda-hero__title em {
    font-family: 'DM Serif Text', serif;
    font-style: italic;
    color: #FE6B02;
}

.agenda-hero__sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.03em;
}

/* ---- Page wrapper ---- */
.agenda-page {
    background-color: #f7f4f1;
    padding: 0 5% 80px;
}

/* ---- Day Tabs ---- */
.agenda-tabs {
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 40px 0 48px;
    border-bottom: none;
}

.agenda-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 2px solid #e5e0d8;
    color: #888;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 28px;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
}

.agenda-tab:first-child {
    border-radius: 50px 0 0 50px;
    border-right: none;
}

.agenda-tab:last-child {
    border-radius: 0 50px 50px 0;
}

.agenda-tab .tab-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ddd;
    transition: background-color 0.25s;
    flex-shrink: 0;
}

.agenda-tab .tab-date {
    font-weight: 400;
    color: #bbb;
    font-size: 12px;
    transition: color 0.25s;
}

.agenda-tab.active {
    background-color: #1B1C13;
    border-color: #1B1C13;
    color: #fff;
    z-index: 1;
}

.agenda-tab.active .tab-dot {
    background-color: #FE6B02;
    box-shadow: 0 0 6px rgba(254, 107, 2, 0.6);
}

.agenda-tab.active .tab-date {
    color: rgba(255, 255, 255, 0.5);
}

.agenda-tab:not(.active):hover {
    border-color: #1B1C13;
    color: #1B1C13;
}

/* ---- Day panel ---- */
.agenda-day.hidden {
    display: none;
}

/* ---- Timeline ---- */
.agenda-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 130px 40px 1fr;
    gap: 0 0;
    position: relative;
}

/* Last item: hide the connecting line */
.timeline-item:last-child .marker-line {
    display: none;
}

/* ---- Time column ---- */
.timeline-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 20px;
    padding-right: 20px;
    gap: 4px;
    flex-shrink: 0;
}

.time-start {
    font-size: 13px;
    font-weight: 700;
    color: #1B1C13;
    white-space: nowrap;
}

.time-end {
    font-size: 11px;
    color: #aaa;
    white-space: nowrap;
}

/* ---- Marker column ---- */
.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding-top: 22px;
}

.marker-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #ddd;
    flex-shrink: 0;
    z-index: 1;
    transition: border-color 0.2s, background-color 0.2s;
}

.timeline-item.highlight .marker-dot {
    background-color: #FE6B02;
    border-color: #FE6B02;
    box-shadow: 0 0 0 4px rgba(254, 107, 2, 0.15);
}

.marker-line {
    width: 2px;
    flex: 1;
    background-color: #e5e0d8;
    min-height: 24px;
}

/* ---- Card column ---- */
.timeline-card {
    background-color: #fff;
    border-radius: 12px;
    border: 1.5px solid #ede9e3;
    padding: 20px 24px;
    margin: 12px 0 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.timeline-card:hover {
    border-color: rgba(254, 107, 2, 0.35);
    box-shadow: 0 4px 24px rgba(254, 107, 2, 0.08);
    transform: translateY(-1px);
}

/* Highlighted items get an orange left border */
.timeline-item.highlight .timeline-card {
    border-left: 3px solid #FE6B02;
}

/* Break items are more subtle */
.timeline-item[data-type="break"] .timeline-card {
    background-color: #faf8f5;
    border-style: dashed;
}

.timeline-item[data-type="break"] .marker-dot {
    background-color: #f7f4f1;
}

/* ---- Session badge ---- */
.session-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 20px;
    background-color: #fe6b021e;
    color: #FE6B02;
}

/* Badge colour overrides per type */
.timeline-item[data-type="keynote"] .session-badge {
    background-color: #1B1C13;
    color: #FE6B02;
}

.timeline-item[data-type="break"] .session-badge {
    background-color: #f0ece6;
    color: #999;
}

.timeline-item[data-type="registration"] .session-badge {
    background-color: #e8f4e8;
    color: #3a7a3a;
}

.timeline-item[data-type="ceremony"] .session-badge {
    background-color: #e8eaf6;
    color: #3949ab;
}

.timeline-item[data-type="workshop"] .session-badge {
    background-color: #fce4ec;
    color: #c2185b;
}

.timeline-item[data-type="masterclass"] .session-badge {
    background-color: #fff3e0;
    color: #e65100;
}

/* ---- Session title ---- */
.session-title {
    font-family: 'DM Serif Text', serif;
    font-size: 17px;
    color: #1B1C13;
    line-height: 1.35;
}

.timeline-item[data-type="break"] .session-title {
    color: #999;
}

/* ---- Session description ---- */
.session-desc {
    font-size: 13px;
    color: #777;
    line-height: 1.65;
}

/* ---- Speaker row ---- */
.session-speaker {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1B1C13;
    margin-top: 4px;
}

.session-speaker .material-icons {
    font-size: 16px;
    color: #FE6B02;
}

/* ---- Panelists list ---- */
.session-panelists {
    margin-top: 4px;
    padding: 12px 16px;
    background-color: #faf8f5;
    border-radius: 8px;
    border: 1px solid #ede9e3;
}

.panelists-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #FE6B02;
    margin-bottom: 8px;
}

.session-panelists ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.session-panelists ul li {
    font-size: 13px;
    color: #555;
    padding-left: 14px;
    position: relative;
}

.session-panelists ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #FE6B02;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .agenda-hero {
        padding: 100px 4% 48px;
    }

    .agenda-page {
        padding: 0 4% 60px;
    }

    .agenda-tabs {
        padding: 32px 0 40px;
    }

    .agenda-tab {
        padding: 12px 20px;
        font-size: 13px;
    }

    .timeline-item {
        grid-template-columns: 90px 32px 1fr;
    }

    .timeline-time {
        padding-top: 22px;
        padding-right: 12px;
    }

    .time-start {
        font-size: 11px;
    }

    .time-end {
        font-size: 10px;
    }

    .timeline-card {
        padding: 16px;
        margin-left: 12px;
    }

    .session-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .agenda-hero__title {
        font-size: 36px;
    }

    .agenda-tabs {
        padding: 24px 0 32px;
    }

    .agenda-tab .tab-date {
        display: none;
    }

    /* Stack time above card on very small screens */
    .timeline-item {
        grid-template-columns: 28px 1fr;
        grid-template-rows: auto auto;
    }

    .timeline-time {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 12px 0 4px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-marker {
        grid-column: 1;
        grid-row: 2;
        padding-top: 8px;
    }

    .timeline-card {
        grid-column: 2;
        grid-row: 2;
        margin-left: 10px;
        margin-top: 0;
        margin-bottom: 8px;
    }

    .time-start,
    .time-end {
        font-size: 12px;
    }

    .time-end::before {
        content: '– ';
    }
}