/* ========== PAGE GRID (matches your sketch) ========== */
.page-grid {
    --gap: clamp(16px, 2vw, 28px);
    width: min(100%, 1400px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "speakers agenda"
        "speakers whyattend"
        "speakers company";
    gap: var(--gap);
    padding: var(--gap);
    box-sizing: border-box;
}

.section--overview {
    grid-area: overview;
}

.section--agenda {
    /* max-height: 1355px; */
    grid-area: agenda;
}

.section--whyattend {
    grid-area: whyattend;
}

.section--speakers {
    grid-area: speakers;
}

.section--company {
    grid-area: company;
}

/* Make cards coherent in the grid */
.section--overview,
.section--whyattend,
.section--agenda {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

/* Responsive stack */
@media (max-width: 992px) {
    .page-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "overview"
            "agenda"
            "whyattend"
            "speakers"
            "company";
    }
}

/* ========== NEW AGENDA PREMIUM UI (overrides) ========== */
/* ===== Agenda container (keep your look) ===== */
.section--agenda {
    padding: clamp(16px, 2vw, 24px);
}

/* Controls */
.agenda-shell {
    gap: 0;
}

.agenda-head {
    display: flex;
    align-items: center;
    justify-content: center;
    /* just the title centered */
    margin-bottom: 12px;
}

.agenda-title {
    font-size: clamp(22px, 2.2vw, 28px);
    margin: 0;
    color: var(--primary-color);
}

.agenda-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.agenda-search {
    flex: 1 1 260px;
    max-width: 360px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    outline: none;
}

.agenda-search:focus {
    border-color: #111;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, .06);
}

.btn-ghost {
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.btn-ghost:hover {
    background: #f9fafb;
}

/* Timeline rail */
.agenda-list {
    position: relative;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.agenda-list::before {
    content: "";
    position: absolute;
    left: 36px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(#e5e7eb, #d1d5db);
}

/* Session card */
.session {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    position: relative;
    padding: 12px 14px;
    border-radius: 14px;
    margin: 10px 0 2px;
    background: #fff;
    border: 1px solid #eef2f7;
    transition: border-color .2s, box-shadow .2s, transform .08s;
}

.session:hover {
    border-color: #dbe2ea;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    transform: translateY(-1px);
}

.session::before {
    content: "";
    position: absolute;
    left: 31px;
    top: 24px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(90, 90, 255, .12);
}

/* Time badge */
.session-time {
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #fff;
    font-weight: 800;
    background-image:
        linear-gradient(#0f172a, #0f172a),
        radial-gradient(circle at 30% 30%, var(--primary-gradient-start), var(--primary-gradient-end));
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    border: 3px solid transparent;
    text-align: center;
}

.tb-start,
.tb-end {
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.2px;
}

.tb-dash {
    font-size: 10px;
    opacity: .85;
    line-height: 1;
}

.tb-ampm {
    font-size: 9px;
    opacity: .85;
    line-height: 1;
}

/* Content + toggle */
.session-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.session-top {
    display: flex;
    gap: 12px;
    align-items: center;
}

.session-title {
    font-size: 16px;
    font-weight: 800;
    color: #111;
    margin: 0;
}

.session-speaker {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-body);
    margin: 5px 0;
    
}

.session-speaker span{
    font-weight: normal;
}

.session-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 0 0 auto;
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.chev {
    transition: transform .2s ease;
}

/* Details (accordion) */
.session-details {
    font-family: 'Poppins', sans-serif;
    display: block;
    /* default expanded */
    border-top: 1px dashed #e5e7eb;
    padding-top: 8px;
    color: var(--text-body);
    font-size: 14px;
    font-weight: normal;
}
.session-details span{
    font-weight: normal;
}

.session[collapsed] .session-details {
    display: none;
}

.session-details p {
    padding: 2px;
    text-align: justify;
}

.session[collapsed] .chev {
    transform: rotate(0deg);
}

.session .chev {
    transform: rotate(180deg);
}

/* A11y helper */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .agenda-head {
        align-items: stretch;
    }

    .agenda-controls {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .agenda-search {
        flex: 1 1 100%;
        max-width: none;
    }
}


/* ===== 1) Align "Overview" & "Event Agenda" headings on the same line ===== */
.section--overview,
.section--agenda {
    padding-top: 10px;
}

/* normalize heading spacing */
.section--overview .overview-heading,
.section--agenda .agenda-title {
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.1;
}

/* ===== 2) Move timeline rail & dot away from the time circle (no overlap) ===== */
.agenda-list::before {
    left: 10px;
    /* pushed far left */
}

.session {
    grid-template-columns: 88px 1fr;
    /* a bit wider time column */
}

/* anchor the little node to the far-left rail */
.session::before {
    left: 6px;
    /* near the rail, not the badge */
    top: 34px;
    width: 8px;
    height: 8px;
    background: #9ca3af;
    /* softer so it doesn't compete with the badge */
    box-shadow: 0 0 0 4px rgba(156, 163, 175, .18);
}

/* ===== 3) Make time badge more prominent ===== */
.time-badge {
    width: 72px;
    /* bigger circle */
    height: 72px;
    border: 4px solid transparent;
    /* thicker ring */
    box-shadow: 0 10px 24px rgba(17, 24, 39, .12);
    /* subtle glow */
}

/* larger legible time text */
.tb-start,
.tb-end {
    font-size: 13.5px;
    letter-spacing: .2px;
}

.tb-dash {
    font-size: 11px;
    opacity: .9;
}

.tb-ampm {
    font-size: 10px;
    opacity: .9;
}

/* keep actions perfectly aligned on the same row */
.session-top {
    align-items: center;
}

.session-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ===== Responsive nudge so it still looks great on small screens ===== */
@media (max-width: 600px) {
    .session {
        grid-template-columns: 84px 1fr;
    }

    .time-badge {
        width: 64px;
        height: 64px;
    }

    .session::before {
        top: 30px;
    }
}

/* ===== Keep Overview & Agenda headings ALWAYS on the same line ===== */
:root {
    --section-top-pad: 24px;
}

/* single source of truth */

.section--overview,
.section--agenda {
    padding-top: var(--section-top-pad);
}

/* normalize both H2s (no collapsing, identical spacing) */
.section--overview .overview-heading,
.section--agenda .agenda-title {
    margin: 0;
    /* kill default top margin */
    line-height: 1.1;
    font-size: 40px;
    /* same size as your overview heading */
    text-align: center;
}

/* ===== No overlap between rail dot and time circle ===== */
.agenda-list::before {
    left: 8px;
    /* rail sits far-left */
}

.session {
    grid-template-columns: 96px 1fr;
    /* more room for the time badge */
}

.session::before {
    left: 4px;
    /* dot sits on the rail, not under the badge */
    top: 36px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c7cdd6;
    box-shadow: 0 0 0 4px rgba(199, 205, 214, .18);
}

/* ===== Time badge: more prominent ===== */
.session-time {
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid transparent;
    /* thicker ring */
    color: #fff;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: center;
    background-image:
        linear-gradient(#0f172a, #0f172a),
        /* inner disk */
        conic-gradient(from 120deg,
            var(--primary-gradient-start),
            var(--primary-gradient-end),
            var(--primary-gradient-start));
    /* glossy ring */
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .18), 0 0 0 6px rgba(90, 90, 255, .08);
    /* soft outer glow */
    text-align: center;
}

.tb-start,
.tb-end {
    font-size: 14px;
    letter-spacing: .2px;
    line-height: 1;
}

.tb-dash {
    font-size: 11px;
    opacity: .95;
    line-height: 1;
}

.tb-ampm {
    font-size: 11px;
    opacity: .95;
    line-height: 1;
}

/* keep chevron perfectly aligned on the same row */
.session-top {
    align-items: center;
}

.session-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Pretty lists inside details (since you added <ul>) */
.session-details ul {
    margin: 8px 0 0 18px;
    padding: 0;
    list-style: disc;
    line-height: 1.6;
    color: var(--text-body);
}

.session-details li {
    margin: 2px 0;
}

/* Responsive nudge */
@media (max-width: 600px) {
    .session {
        grid-template-columns: 92px 1fr;
    }

    .time-badge {
        width: 72px;
        height: 72px;
    }

    .session::before {
        top: 32px;
    }
}