.section-pad {
    padding: 110px 0;
    position: relative;
}

.page-margin {
    margin-top: 80px;
}

/* ===== EVENT HERO (banner) — full-bleed, edge-to-edge like the homepage hero ===== */
.ev-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    margin-top: 0;
}

.ev-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.ev-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 26, 17, .15) 0%, rgba(8, 26, 17, .55) 55%, rgba(8, 26, 17, .92) 100%);
}

.ev-hero-inner {
    position: relative;
    z-index: 2;
    padding: 120px 0 44px;
    width: 100%;
}

.ev-hero-inner .wrap {
    padding-left: 40px;
    padding-right: 40px;
}

.ev-hero .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(23, 168, 82, .22);
    border: 1px solid rgba(23, 168, 82, .5);
    color: #eafff2;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.ev-hero .status-pill i {
    color: #4be08a;
    font-size: 8px;
    animation: dotPulse 1.6s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}

.ev-hero h1 {
    font-size: clamp(24px, 3.6vw, 42px);
    letter-spacing: .015em;
    line-height: 1.2;
    max-width: 760px;
    text-transform: uppercase;
    font-weight: 800;
}

.ev-hero-sub {
    margin-top: 14px;
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    max-width: 600px;
    line-height: 1.7;
}

.ev-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 30px;
    margin-top: 26px;
}

.ev-meta-row .item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
}

.ev-meta-row .item img {
    width: 34px;
    height: 34px;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-bright);
    font-size: 14px;
    flex-shrink: 0;
}

.ev-meta-row .item small {
    display: block;
    font-weight: 500;
    color: rgba(255, 255, 255, .6);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 2px;
}

/* ===== BREADCRUMB (now lives inside the hero banner, floating over the image) ===== */
.ev-crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 16px;
}

.ev-crumb a {
    color: rgba(255, 255, 255, .65);
    transition: color .25s;
}

.ev-crumb a:hover {
    color: #fff;
}

.ev-crumb .sep {
    color: rgba(255, 255, 255, .35);
}

.ev-crumb .current {
    color: #fff;
}

.ev-hero h1 {
    font-size: clamp(24px, 3.6vw, 42px);
    letter-spacing: .015em;
    line-height: 1.2;
    max-width: 760px;
    text-transform: uppercase;
    font-weight: 800;
}


/* ===== COUNTDOWN STRIP ===== */
.countdown-strip {
    margin-top: -46px;
    position: relative;
    z-index: 5;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 26px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.countdown-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.countdown-label .ico {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--green-dim);
    color: var(--green-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.countdown-label h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 700;
    margin-bottom: 3px;
}

.countdown-label p {
    font-size: 12.5px;
    color: var(--grey);
}

.countdown-label p b {
    color: var(--text);
}

/* ---- real flip-clock / split-flap countdown boxes ---- */
.countdown-timer {
    display: flex;
    gap: 10px;
}

.countdown-timer .box {
    width: 64px;
    background: transparent;
    border: none;
    border-radius: 0;
    text-align: center;
    padding: 0;
    position: relative;
}

.countdown-timer .flip-box {
    position: relative;
    width: 100%;
    height: 46px;
    perspective: 280px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, var(--shadow-sm);
}

/* the middle seam line — classic split-flap look, sits above the flip so it always reads correctly */
.countdown-timer .flip-box::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    background: rgb(22 36 28 / 1%);
    z-index: 5;
    pointer-events: none;
}

.countdown-timer .flip-box::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .04));
    z-index: 1;
    pointer-events: none;
    border-radius: 0 0 10px 10px;
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .6s cubic-bezier(.45, .05, .35, 1);
}

.flip-card.flipped {
    transform: rotateX(180deg);
}

.flip-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--green-bright);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.flip-face.flip-back {
    transform: rotateX(180deg);
}

.countdown-timer .box .unit {
    font-size: 9.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--grey);
    margin-top: 6px;
    display: block;
}

.countdown-closed {
    display: none;
    color: #c0392b;
    font-weight: 700;
    font-size: 14px;
}

.countdown-strip.is-closed .countdown-timer,
.countdown-strip.is-closed .countdown-label p {
    display: none;
}

.countdown-strip.is-closed .countdown-closed {
    display: block;
}

@media(prefers-reduced-motion:reduce) {
    .flip-card {
        transition: none !important;
    }
}

/* slots-left urgency bar */
.slots-bar {
    width: 220px;
    max-width: 100%;
}

.slots-bar .row {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--grey);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.slots-bar .row b {
    color: var(--text);
}

.slots-track {
    height: 7px;
    border-radius: 100px;
    background: var(--panel);
    overflow: hidden;
}

.slots-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--green), var(--green-bright));
}

@media(max-width:760px) {
    .countdown-strip {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 22px 18px;
    }

    .countdown-label {
        justify-content: center;
    }

    .countdown-timer {
        justify-content: center;
    }

    .countdown-timer .box {
        width: 54px;
    }

    .countdown-timer .flip-box {
        height: 40px;
    }

    .flip-face {
        font-size: 18px;
    }

    .slots-bar {
        width: 100%;
        margin: 0 auto;
    }
}




/* ===== MAIN CONTENT LAYOUT ===== */
.ev-detail-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 50px;
    align-items: start;
}

.ev-detail-main h2.block-title {
    font-size: 19px;
    text-transform: uppercase;
    letter-spacing: .3px;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ev-detail-main h2.block-title image {
    color: var(--green-bright);
    font-size: 16px;
}

.ev-block {
    margin-bottom: 52px;
}

.ev-block p {
    color: var(--grey);
    line-height: 1.85;
    font-size: 15px;
    margin-bottom: 14px;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.highlight-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}

.highlight-item i {
    color: var(--green-bright);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.highlight-item span {
    font-size: 13.5px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.5;
}

/* schedule table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.schedule-table th,
.schedule-table td {
    padding: 14px 18px;
    text-align: left;
    font-size: 13.5px;
}

.schedule-table thead th {
    background: var(--panel);
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: .6px;
    font-size: 11px;
    font-weight: 800;
}

.schedule-table tbody tr {
    border-top: 1px solid var(--line);
    background: var(--panel-2);
    transition: background .25s;
}

.schedule-table tbody tr:hover {
    background: var(--green-dim);
}

.schedule-table td.time {
    font-weight: 800;
    color: var(--green-bright);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.schedule-table td.tag {
    color: var(--grey);
}

/* location card */
.location-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-top: 22px;
}

.location-map {
    height: 260px;
    width: 100%;
    border: 0;
    filter: grayscale(15%) contrast(1.02);
    display: block;
}

.location-info {
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--panel-2);
}

.location-info .addr {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.location-info .addr i {
    color: var(--green-bright);
    font-size: 17px;
    margin-top: 2px;
}

.location-info .addr b {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

.location-info .addr span {
    font-size: 12.5px;
    color: var(--grey);
    line-height: 1.6;
}

/* organiser / doctor-on-call strip */
.organiser-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--green-dim);
    border: 1px solid rgba(23, 168, 82, .25);
    border-radius: 12px;
    padding: 18px 22px;
    margin-top: 22px;
}

.organiser-strip img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
}

.organiser-strip b {
    display: block;
    font-size: 13.5px;
}

.organiser-strip span {
    font-size: 12px;
    color: var(--grey);
}

/* ===== SIDEBAR / REGISTRATION FORM ===== */
.ev-sidebar {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.reg-card {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 30px 26px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.reg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--green-bright));
}

.reg-card h3 {
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: .3px;
    font-weight: 800;
    margin-bottom: 4px;
}

.reg-card .reg-sub {
    font-size: 12.5px;
    color: var(--grey);
    margin-bottom: 22px;
}

.reg-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.reg-price .amt {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
}

.reg-price .tag {
    font-size: 12px;
    color: var(--green-bright);
    font-weight: 700;
    background: var(--green-dim);
    padding: 4px 10px;
    border-radius: 100px;
}

.reg-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.reg-form label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--grey);
    margin-bottom: -8px;
}

.reg-form input,
.reg-form select {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    color: var(--text);
    font-family: inherit;
    font-size: 13.5px;
    outline: none;
    transition: border-color .25s, box-shadow .25s;
}

.reg-form input:focus,
.reg-form select:focus {
    border-color: var(--green-bright);
    box-shadow: 0 0 0 4px rgba(23, 168, 82, .12);
}

.reg-form .row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.reg-form .chk-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 4px;
}

.reg-form .chk-row input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--green);
    flex-shrink: 0;
}

.reg-form .chk-row label {
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--grey);
    margin-bottom: 0;
    line-height: 1.5;
}

.reg-form .btn {
    width: 100%;
    justify-content: center;
    border: none;
    margin-top: 6px;
}

.reg-form .field-error {
    font-size: 11px;
    color: #c0392b;
    margin-top: -10px;
    display: none;
}

.reg-form .invalid {
    border-color: #c0392b !important;
}

.reg-form .invalid~.field-error,
.field-error.show {
    display: block;
}

.reg-success {
    display: none;
    text-align: center;
    padding: 20px 6px;
}

.reg-success.show {
    display: block;
}

.reg-success .ico {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--green-dim);
    color: var(--green-bright);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.reg-success h4 {
    font-size: 15px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.reg-success p {
    font-size: 13px;
    color: var(--grey);
    line-height: 1.6;
}

.reg-card.submitted .reg-form {
    display: none;
}

/* contact-help card */
.help-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 24px;
}

.help-card h4 {
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 12px;
    font-weight: 800;
}

.help-card a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    transition: color .25s;
}

.help-card a:last-child {
    margin-bottom: 0;
}

.help-card a:hover {
    color: var(--green-bright);
}

.help-card a i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--panel-2);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-bright);
    font-size: 13px;
    flex-shrink: 0;
}

@media(max-width:1080px) {
    .ev-detail-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .ev-sidebar {
        position: static;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 22px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.faq-q i {
    color: var(--green-bright);
    transition: transform .3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-q i {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.faq-a p {
    padding: 0 22px 20px;
    color: var(--grey);
    font-size: 13.5px;
    line-height: 1.75;
}

/* ===== OTHER EVENTS STRIP reuses .ev-track/.ev-card from style.css ===== */
.other-events {
    background: var(--panel);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ===== sticky mobile register bar ===== */
.mobile-reg-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    background: var(--panel-2);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 26px -14px rgba(22, 36, 28, .22);
    padding: 12px 18px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.mobile-reg-bar .info b {
    display: block;
    font-size: 14px;
}

.mobile-reg-bar .info span {
    font-size: 11px;
    color: var(--grey);
}

.mobile-reg-bar .btn {
    padding: 12px 22px;
    font-size: 11.5px;
}

@media(max-width:760px) {
    .mobile-reg-bar {
        display: flex;
    }

    body {
        padding-bottom: 74px;
    }

    .ev-hero {
        min-height: auto;
    }

    .ev-hero-inner {
        padding: 96px 0 28px;
    }

    .ev-crumb {
        font-size: 11px;
        margin-bottom: 12px;
    }

    .ev-meta-row {
        gap: 12px 20px;
    }

    .countdown-strip {
        margin-top: -30px;
    }
}