/* ==========================================================================
   Single Event Template
   ========================================================================== */

/* ── Hero Banner ── */

.evt-hero-wrap {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--color-tan);
}

.evt-hero-wrap--no-content {
    padding-bottom: 4rem;
}

.evt-hero {
    position: relative;
    max-width: var(--container-max-width);
    margin: 0 auto;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    background-color: var(--color-navy);
    border-radius: 0 0 25px 25px;
    overflow: hidden;
}

.evt-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(19, 41, 75, 0.72);
    z-index: 1;
}

/* SVG graphic layered on top of the overlay, top-aligned */
.evt-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../../assets/images/Background-Graphic.svg');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    z-index: 2;
    pointer-events: none;
}

.evt-hero__content {
    position: relative;
    z-index: 3;
    padding: 3rem 3rem 4rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.evt-hero__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-gold);
    margin: 0;
}

.evt-hero__title {
    font-family: 'Domine', serif;
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
    line-height: 1.15;
}

.evt-hero__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.75);
    text-align: center;
    font-size: 0.9375rem;
    color: var(--color-navy);
    font-weight: 500;
}

/* ── Image + Copy ── */

.evt-content {
    padding: 5rem 2rem;
    background-color: var(--color-tan);
}

.evt-content__inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 900px) {
    .evt-content__inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 5rem;
    }

    .evt-content__image-wrap {
        flex: 0 0 420px;
    }

    .evt-content__copy {
        flex: 1;
    }
}

.evt-content__image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

/* Show the image as-is: natural aspect ratio, capped to the container width */
.evt-content__image {
    display: block;
    width: 100%;
    height: auto;
}

.evt-content__copy {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #333;
}

.evt-content__copy h2,
.evt-content__copy h3,
.evt-content__copy h4 {
    font-family: 'Domine', serif;
    color: var(--color-navy);
    margin-top: 1.75em;
    margin-bottom: 0.5em;
}

.evt-content__copy h2 { font-size: 1.625rem; }
.evt-content__copy h3 { font-size: 1.375rem; }

.evt-content__copy p { margin: 0 0 1.4em; }
.evt-content__copy p:first-child { margin-top: 0; }
.evt-content__copy p:last-child  { margin-bottom: 0; }

.evt-content__copy a {
    color: #0000EE;
    text-decoration: underline;
}

/* ── Panelists Slider ── */

.evt-panelists {
    background-color: var(--color-blue);
    padding: 5rem 0 5rem 2rem;
    overflow: hidden;
}

.evt-panelists__header {
    max-width: var(--container-max-width);
    margin: 0 auto 2rem;
    padding-right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evt-panelists__heading {
    font-family: 'Domine', serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
    line-height: 1.2;
}

.evt-panelists__arrows {
    display: none;
    gap: 0.5rem;
    padding: 1.5rem 2rem 0;
    max-width: var(--container-max-width);
    margin: 0 auto;
    justify-content: center;
}

@media (min-width: 768px) {
    .evt-panelists__arrows {
        display: flex;
    }
}

.evt-panelists__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: var(--color-white);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.evt-panelists__arrow:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
}

.evt-panelists__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Track — horizontal scroll */

.evt-panelists__track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-right: 2rem;
    scroll-behavior: smooth;
}

.evt-panelists__track::-webkit-scrollbar {
    display: none;
}

/* Cards: 1 on mobile, 4.5 on desktop */

.evt-panelists__card {
    flex: 0 0 calc(100% - 2rem);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .evt-panelists__card {
        flex: 0 0 calc( (100% - (1.25rem * 3.5)) / 4.5 );
    }
}

.evt-panelists__photo-wrap {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.evt-panelists__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.evt-panelists__photo--placeholder {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.08);
}

.evt-panelists__info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.evt-panelists__name {
    font-family: 'Domine', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
}

.evt-panelists__title {
    font-size: 0.875rem;
    color: var(--color-white);
    margin: 0;
}

/* ── Registration Section ── */

/* Smooth glide for the hero "Register Now" jump to #registration. */
html {
    scroll-behavior: smooth;
}

.evt-registration {
    padding: 6rem 2rem;
    scroll-margin-top: 80px;
}

.evt-registration__inner {
    max-width: 760px;
    margin: 0 auto;
}

.evt-registration__heading {
    font-family: 'Domine', serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 2.5rem;
    line-height: 1.2;
    text-align: center;
}

.evt-registration__form {
    background-color: var(--color-white);
    border-radius: 20px;
    padding: 2.5rem;
}

/* ── Image Lightbox ── */

.evt-content__image {
    cursor: zoom-in;
}

.evt-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.evt-lightbox.is-open {
    display: flex;
}

.evt-lightbox__img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.evt-lightbox__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.evt-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
}