section {
    min-height: 100vh;
}

#hero {
    min-height: calc(100vh - var(--navbar-height));
}

.hero-video {
    max-height: 45vh;
}

@media screen and (min-width: 768px) {
    .hero-video {
        max-height: calc(.6 * (100vh - var(--navbar-height)));
    }
}

.carousel-btn {
    width: 30px;
    height: 30px;
    color: #FFFFFF;
    background-color: #523442;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    pointer-events: auto;
    transition: background-color 0.2s ease;
}

.carousel-btn:hover {
    opacity: 0.8;
}

.carousel-btn.active {
    background-color: #FF3657;
}

#speakers .carousel-btn {
    background-color: #969EB4;
}
#speakers .carousel-btn.active {
    background-color: #06174C;
}

/* ============================================================
   AGENDA — base styles
   ============================================================ */

#agenda .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    align-self: center;
}

#agenda .arrow svg {
    display: block;
    transition: transform 0.3s ease;
}

#agenda .arrow.rotate-open svg {
    transform: rotate(90deg);
}

/* ── Agenda Item ──
   position:relative so the absolute .agenda-divider is scoped to it.
   The 9px top/bottom padding creates the gap between divider and border.
*/
#agenda .agenda-item {
    position: relative;
    padding-top: 9px;
    padding-bottom: 9px;
    cursor: pointer;
    transition: background-color 0.18s ease;
}

/* Full row hover highlight — feels clickable */
#agenda .agenda-item:hover {
    background-color: rgba(183, 200, 255, 0.06);
}

/* Active/tap feedback */
#agenda .agenda-item:active {
    background-color: rgba(183, 200, 255, 0.10);
}

/* ============================================================
   VERTICAL DIVIDER — anchored to .agenda-item

   DESKTOP: height: calc(100% - 18px) — grows with item when expanded.
            JS overrides inline height when open, removes it on close.

   MOBILE:  Fixed at 49px always (toggle 53px − top gap 2px − bottom gap 2px).
            Never stretches on expand or collapse — pure CSS, no JS touch.
   ============================================================ */
#agenda .agenda-divider {
    position: absolute;
    top: 9px;
    /* Desktop default — covers toggle height only when collapsed,
       grows with item when expanded (JS sets --divider-h on open) */
    height: var(--divider-h, calc(100% - 18px));
    width: 0.5px;
    background: #B7C8FF;
    z-index: 2;
    left: calc(50px + 10px + 2px);
}

@media (min-width: 768px) {
    #agenda .agenda-divider {
        left: calc(110px + 10px + 2px);
    }
}

/* ── Divider spacer inside the grid ── */
#agenda .agenda-divider-spacer {
    width: 12px;
    flex-shrink: 0;
}

/* ── Toggle ── */
#agenda .agenda-toggle {
    height: 53px;
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
    overflow: visible;
    align-items: center;
    width: 100%;
    display: flex;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
}

#agenda .agenda-toggle .grid {
    align-items: center;
    grid-template-columns: 50px auto 1fr;
}

@media (min-width: 768px) {
    #agenda .agenda-toggle .grid {
        grid-template-columns: 110px auto 1fr;
    }
}

#agenda .agenda-toggle .grid > div:first-child {
    padding-left: 20px;
    padding-right: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#agenda .agenda-toggle h3 {
    align-self: center;
    margin: 0;
    cursor: pointer;
}

#agenda .agenda-toggle .arrow {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    margin-right: 16px;
}

/* ── Item headings ── */
#agenda .agenda-item h3 {
    font-family: "Rakuten Condensed", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 28px;
    line-height: 105%;
    letter-spacing: 0;
    padding-left: 30px;
}

@media (min-width: 768px) {
    #agenda .agenda-item h3 {
        padding-left: 35px;
    }
}

/* ── Time / Duration ── */
#agenda .agenda-time {
    font-family: "Rakuten Condensed", sans-serif;
    font-weight: 900;
    font-style: normal;
    font-size: 16px;
    line-height: 105%;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

#agenda .agenda-duration {
    font-family: "Rakuten Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    line-height: 105%;
    letter-spacing: 0;
    text-align: center;
    color: #88A1C7;
}

@media (min-width: 640px) {
    #agenda .agenda-time {
        font-size: 21px;
        line-height: 105%;
    }
    #agenda .agenda-duration {
        font-size: 16px;
        line-height: 105%;
    }
}

@media (min-width: 640px) and (max-width: 767px) {
    #agenda .agenda-toggle .grid {
        grid-template-columns: 100px auto 1fr;
    }
    #agenda .agenda-time,
    #agenda .agenda-duration {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #agenda .agenda-toggle .grid > div:first-child {
        padding-right: 14px;
    }
}

/* ── Expand all button ── */
#agenda .expand-all-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: "Rakuten Sans", sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.1;
    letter-spacing: 0;
    color: #020A16;
    background: #88A1C7;
    border: 1px solid #88A1C7;
    padding: 8px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

#agenda .expand-all-btn:hover {
    background: #88A1C7;
    color: #020A16;
}

#agenda .expand-label {
    text-transform: none;
}

#agenda .expand-all-btn .arrow {
    width: 6px;
    height: 7px;
    color: currentColor;
    opacity: 1;
}

/* ── Heading ── */
#agenda .agenda-heading {
    font-family: "Rakuten Condensed", sans-serif;
    font-weight: 900;
    font-style: normal;
    font-size: 40px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #FFFFFF;
    width: 431px;
    height: 52px;
    display: block;
}

@media (min-width: 768px) {
    #agenda .agenda-heading {
        font-size: 50px;
    }
}

/* ── Static overrides ── */
#agenda.agenda-static .expand-all-btn {
    display: inline-flex !important;
}

#agenda.agenda-static .agenda-toggle {
    pointer-events: none;
    cursor: default;
}

/* ============================================================
   AGENDA CONTENT ROW
   Desktop: offset spacer + body aligned under heading
   Mobile: full-width flush left
   ============================================================ */
#agenda .agenda-content-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

#agenda .agenda-content-offset {
    flex: 0 0 110px;
    min-width: 110px;
}

#agenda .agenda-content-body {
    flex: 1;
    padding-left: 48px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* ============================================================
   SPEAKER CARDS — Desktop
   ============================================================ */
#agenda .agenda-speakers {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 4px;
}

#agenda .agenda-speaker-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

#agenda .agenda-speaker-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    border-radius: 4px;
    background-color: #1a2744;
}

#agenda .agenda-speaker-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

#agenda .agenda-speaker-name {
    font-family: "Rakuten Sans", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    color: #D96868;
    margin: 0;
}

#agenda .agenda-speaker-role {
    font-family: "Rakuten Sans", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    color: #FFFFFF;
    margin: 0;
}

/* ============================================================
   MOBILE ONLY (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {

    /* ── MOBILE DIVIDER: fixed height always, never stretches ──
       49px covers the full heading text height within the 53px toggle.
       top: 11px = item padding-top(9) + (toggle(53) - divider(49)) / 2 = 9 + 2 = 11px
       JS never touches the divider height on mobile.
    */
    #agenda .agenda-divider {
        height: 49px !important;
        top: 11px;
        left: calc(75px + 10px + 2px);
    }

    #agenda .agenda-toggle .grid {
        grid-template-columns: 75px auto 1fr;
    }

    #agenda .agenda-toggle .grid > div:first-child {
        padding-left: 0;
        padding-right: 5px;
    }

    #agenda .agenda-content {
        padding-bottom: 16px;
    }

    #agenda .agenda-content-row {
        display: block !important;
        padding: 0 !important;
        gap: 0 !important;
        margin: 0 !important;
    }

    #agenda .agenda-content-offset {
        display: none !important;
        width: 0 !important;
        min-width: 0 !important;
        flex: none !important;
    }

    #agenda .agenda-content-body {
        padding-left: 0 !important;
        padding-right: 16px;
        width: 100%;
        text-align: left;
        box-sizing: border-box;
    }

    #agenda .agenda-speakers {
        gap: 20px;
        margin-top: 20px;
    }

    /* Mobile: image top-aligned to name, info stacks from top */
    #agenda .agenda-speaker-card {
        gap: 16px;
        align-items: center;
    }

    #agenda .agenda-speaker-img {
        width: 90px;
        height: 90px;
    }

    /* Mobile: info starts from top, gap between name and role.
       max-width: 180px constrains text width.
       Role text clamped to 4 lines so it stays within photo height naturally. */
    #agenda .agenda-speaker-info {
        justify-content: flex-start;
        gap: 4px;
        max-width: 180px;
    }

    #agenda .agenda-speaker-name {
        font-size: 15px;
    }

    #agenda .agenda-speaker-role {
        font-size: 12px;
        max-width: 180px;
        color: #FFFFFF;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ============================================================
   STICKY CTA
   ============================================================ */
.sticky-register-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 10, 22, 0.92);
    backdrop-filter: blur(12px);
    z-index: 1050;
    width: 100vw;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sticky-register-cta.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.sticky-register-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 51px;
    margin: 0 auto;
    border: 5px solid #FFFFFF;
    background-color: #06174C;
    color: #FFFFFF;
    font-family: "Rakuten Sans", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    text-decoration: none;
    box-shadow: 0 10px 35px rgba(6, 23, 76, 0.35);
}

.sticky-register-btn:hover,
.sticky-register-btn:focus {
    background-color: #082061;
    color: #FFFFFF;
}

/* ============================================================
   FOOTER NOTE + BOTTOM DIVIDER
   ============================================================ */
#agenda .agenda-footer-note {
    font-family: "Rakuten Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    line-height: 105%;
    letter-spacing: 0;
    color: #FFFFFF;
    margin-top: 28px;
}

@media (min-width: 768px) {
    #agenda .agenda-footer-note {
        font-size: 16px;
    }
}

#agenda .agenda-bottom-divider {
    display: none;
}

@media (min-width: 768px) {
    #agenda .agenda-bottom-divider {
        display: block;
        width: 100%;
        height: 0.5px;
        background-color: #B7C8FF;
        margin-top: 8px;
    }
}
/* ============================================================
   AGENDA CSS PATCH — Fix mobile heading overlap + Lunch alignment
   Apply these changes to your existing CSS file
   ============================================================ */

/* ── FIX 1: Replace fixed height with min-height on toggle ──
   FIND this rule:
       #agenda .agenda-toggle { height: 53px; ... }
   REPLACE height: 53px with min-height: 53px
   So the toggle can grow when heading wraps to multiple lines.
*/
#agenda .agenda-toggle {
    min-height: 53px;         /* WAS: height: 53px  — CHANGED to min-height */
    height: auto;             /* allow natural growth */
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
    overflow: visible;
    align-items: center;
    width: 100%;
    display: flex;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
}

/* ── FIX 2: Mobile heading font — per spec ──
   font-size: 21px, line-height: 105%, weight 700
   This ensures text wraps cleanly without overflow.
*/
@media (max-width: 767px) {
    #agenda .agenda-item h3 {
        font-family: "Rakuten Condensed", sans-serif;
        font-weight: 700;
        font-style: normal;
        font-size: 21px;
        line-height: 105%;
        letter-spacing: 0;
        padding-left: 20px;   /* tighter on mobile */
    }
}

/* ── FIX 3: Mobile divider — match min-height toggle ──
   Remove the !important fixed 49px — let it span the full
   agenda-item height dynamically (calc(100% - 18px) is correct).
   Only remove the !important override so it reverts to desktop rule
   which already uses calc(100% - 18px).
*/
@media (max-width: 767px) {
    #agenda .agenda-divider {
        /* height: calc(100% - 18px);  WAS: 49px !important — now dynamic */
        top: 9px;
        left: calc(75px + 10px + 2px);
    }
}

/* ── FIX 4: Lunch row — center-align time block vertically ──
   The non-collapsible lunch row uses a plain div instead of button.
   Ensure it matches the toggle layout exactly.
*/
#agenda .agenda-item > div.w-full {
    min-height: 53px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Agenda mobile overlap fix ── */
#agenda .agenda-toggle {
    min-height: 53px;
    height: auto;
}

@media (max-width: 767px) {
    #agenda .agenda-item h3 {
        font-size: 21px !important;
        line-height: 105% !important;
        font-weight: 700 !important;
        padding-left: 20px;
    }
    #agenda .agenda-divider {
        /* height: calc(100% - 18px) !important; */
        top: 9px;
    }
}
@media (max-width: 767px) {
    #agenda .agenda-item--shift-divider .agenda-divider {
        top: 18px; /* tweak as needed */
    }
}