/* Source: templates/single-event.php block 1 */
/* =========================================================
   GLOBAL / PAGE BASE
========================================================= */

html {
    scroll-behavior: smooth;
}

.single-event-page {
    background: #10131b;
    color: #fff !important;
    font-family: inherit;
}

/* =========================================================
   DARK EVENT PAGE TEXT OVERRIDES
   Keeps global typography from turning dark-page text black.
========================================================= */

.single-event-page .event-hero-content,
.single-event-page .event-content,
.single-event-page .event-section-title,
.single-event-page .event-section-description,
.single-event-page .event-schedule-list,
.single-event-page .event-gallery-wrap {
    color: #ffffff !important;
}

.single-event-page .event-title,
.single-event-page .event-presented,
.single-event-page .event-blurb,
.single-event-page .event-blurb *,
.single-event-page .event-content,
.single-event-page .event-content *,
.single-event-page .event-section-title,
.single-event-page .event-section-description,
.single-event-page .event-section-description *,
.single-event-page .event-schedule-day-title,
.single-event-page .event-schedule-day-title *,
.single-event-page .event-schedule-time,
.single-event-page .event-schedule-activity,
.single-event-page .event-schedule-activity *,
.single-event-page .event-gallery-wrap,
.single-event-page .event-gallery-wrap * {
    color: #ffffff !important;
}

.single-event-page .event-presented,
.single-event-page .event-blurb,
.single-event-page .event-section-description,
.single-event-page .event-schedule-time {
    color: rgba(255, 255, 255, 0.86) !important;
}

.single-event-page .event-pill,
.single-event-page .event-pill * {
    color: #ffffff !important;
}

.single-event-page .event-card {
    color: #1C1C1C !important;
}

.single-event-page .event-card,
.single-event-page .event-card p,
.single-event-page .event-card span,
.single-event-page .event-card div,
.single-event-page .event-card li {
    color: #1C1C1C !important;
}

.single-event-page .event-card h1,
.single-event-page .event-card h2,
.single-event-page .event-card h3,
.single-event-page .event-card h4,
.single-event-page .event-card h5,
.single-event-page .event-card h6,
.single-event-page .event-card strong {
    color: #1D4486 !important;
}

.single-event-page .event-button,
.single-event-page .event-button * {
    color: #111111 !important;
}

.single-event-page .event-details-ticket-button,
.single-event-page .event-details-ticket-button * {
    color: #ffffff !important;
}

.single-event-section {
    position: relative;
    padding: 90px 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.single-event-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
}

.single-event-section > .event-container {
    position: relative;
    z-index: 1;
}

.event-bg-blue {
    background-image: url('/wp-content/uploads/2026/05/blue-gradient-bg.webp');
}

.event-bg-red {
    background-image: url('/wp-content/uploads/2026/05/red-gradient-bg.webp');
}

.event-container {
    max-width: 1120px;
    margin: 0 auto;
}

/* =========================================================
   HERO SECTION
========================================================= */

.event-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.event-title {
    margin: 0 0 10px;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 0.95;
    font-weight: 900;
}

.event-presented {
    margin: 0 0 22px;
    font-size: 15px;
    opacity: 0.85;
}

.event-blurb {
    max-width: 620px;
    margin-bottom: 28px;
    font-size: 18px;
    line-height: 1.6;
}

.event-blurb p {
    margin-top: 0;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.event-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    font-size: 14px;
}

.event-status {
    background: #2454b8;
    font-weight: 700;
}

.event-featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}

.event-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================================
   EVENT DETAILS SECTION
========================================================= */

.event-details-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 46px;
}

.event-card {
    background: rgba(255,255,255,0.95);
    color: #151515;
    border-radius: 14px;
    padding: 24px;
    align-self: start;
}

.event-card h3 {
    margin: 0 0 18px;
    font-size: 16px;
    text-transform: uppercase;
}

.event-card-item {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.event-card-item:last-child {
    margin-bottom: 0;
}

.event-card-item p {
    margin: 0;
}

.event-details-ticket-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    padding: 13px 18px;
    border-radius: 999px;
    background: #2454b8;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.event-details-ticket-button:hover {
    background: #183f91;
    color: #fff;
    transform: translateY(-1px);
}

.event-content {
    max-width: 720px;
}

.event-content h2,
.event-section-title {
    margin: 0 0 18px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
    font-weight: 900;
}

.event-content,
.event-section-description {
    font-size: 16px;
    line-height: 1.75;
}

.event-content p:first-child,
.event-section-description p:first-child {
    margin-top: 0;
}

.event-content p:last-child,
.event-section-description p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   SCHEDULE SECTION
========================================================= */

.event-schedule-list {
    margin-top: 36px;
}

.event-schedule-day {
    margin-bottom: 34px;
}

.event-schedule-day:last-child {
    margin-bottom: 0;
}

.event-schedule-day-title {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 800;
}

.event-schedule-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.35);
}

.event-schedule-row:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.35);
}

.event-schedule-time {
    opacity: 0.75;
    font-size: 14px;
}

.event-schedule-activity {
    font-size: 15px;
    line-height: 1.5;
}

.event-schedule-activity p {
    margin: 0;
}

/* =========================================================
   TICKET SECTION WRAPPER
========================================================= */

.event-ticket-output {
    margin-top: 34px;
    color: #1C1C1C;
}

.event-ticket-output *,
.event-ticket-output p,
.event-ticket-output span,
.event-ticket-output div,
.event-ticket-output label,
.event-ticket-output small,
.event-ticket-output td,
.event-ticket-output th,
.event-ticket-output li {
    color: #1C1C1C;
}

/* =========================================================
   TICKET SELECTOR LAYOUT
========================================================= */

.event-ticket-selector {
    width: 100%;
    overflow: visible;
    border-radius: 18px;
    background: transparent;
    padding-top: 14px;
}

.ticket-row {
    display: grid;
    grid-template-columns: 1fr 180px 120px;
    gap: 24px;
    align-items: center;
    margin-bottom: 16px;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(28, 28, 28, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.12);
    transition: border 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.ticket-row:last-of-type {
    margin-bottom: 0;
}

.ticket-row.is-active-ticket {
    border: 2px solid rgba(26, 127, 55, 0.65);
    box-shadow:
        0 0 0 4px rgba(26, 127, 55, 0.12),
        0 0 24px rgba(26, 127, 55, 0.28),
        0 0 42px rgba(26, 127, 55, 0.18),
        0 18px 44px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
    position: relative;
    z-index: 2;
}

.ticket-row.upcoming,
.ticket-row.closed {
    background: #f7f7f7;
}

.ticket-row.closed {
    opacity: 0.72;
}

.ticket-info-col {
    min-width: 0;
}

.ticket-name {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}

.ticket-name,
.ticket-name a {
    color: #1D4486;
    text-decoration: none;
}

.ticket-name a:hover {
    color: #15346a;
}

.ticket-description {
    max-width: 620px;
    font-size: 14px;
    line-height: 1.55;
    color: #1C1C1C;
}

.ticket-description p {
    margin: 0 0 8px;
}

.ticket-description p:last-child {
    margin-bottom: 0;
}

.ticket-status-label {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
}

.ticket-status-active,
.ticket-status-label.ticket-status-active {
    color: #1a7f37 !important;
}

.ticket-status-upcoming,
.ticket-status-closed {
    color: #777;
}

.ticket-countdown {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
}

.ticket-countdown .timer-label {
    color: #1D4486;
}

.ticket-countdown .timer-value {
    color: #1C1C1C;
}

.ticket-price-col {
    text-align: right;
}

.ticket-price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-end;
}

.ticket-regular-price {
    font-size: 13px;
    color: #777;
    text-decoration: line-through;
}

.ticket-sale-price,
.ticket-normal-price {
    font-size: 22px;
    line-height: 1.1;
    font-weight: 900;
    color: #1C1C1C;
}

.ticket-tax-price {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.3;
    color: #777;
}

.ticket-qty-col {
    text-align: right;
}

.ticket-qty-select {
    width: 82px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid rgba(28, 28, 28, 0.18);
    border-radius: 10px;
    background: #fff;
    color: #1C1C1C;
    font-weight: 700;
}

.ticket-qty-select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ticket-unavailable-notice {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.35;
    color: #777;
}

/* =========================================================
   TICKET TYPOGRAPHY / WOOCOMMERCE FALLBACKS
========================================================= */

.event-ticket-output h1,
.event-ticket-output h2,
.event-ticket-output h3,
.event-ticket-output h4,
.event-ticket-output h5,
.event-ticket-output h6,
.event-ticket-output strong,
.event-ticket-output b,
.event-ticket-output .ticket-title,
.event-ticket-output .ticket-name,
.event-ticket-output .product-title,
.event-ticket-output .product-name,
.event-ticket-output .woocommerce-loop-product__title,
.event-ticket-output .wc-block-components-product-name,
.event-ticket-output .cart_item .product-name,
.event-ticket-output [class*="ticket"] [class*="title"],
.event-ticket-output [class*="ticket"] [class*="name"],
.event-ticket-output [class*="product"] [class*="title"],
.event-ticket-output [class*="product"] [class*="name"] {
    color: #1D4486;
}

.event-ticket-output a {
    color: #1D4486;
}

.event-ticket-output a:hover {
    color: #15346a;
}

.event-ticket-output .price,
.event-ticket-output .amount,
.event-ticket-output .woocommerce-Price-amount,
.event-ticket-output [class*="price"],
.event-ticket-output [class*="amount"],
.event-ticket-output [class*="total"] {
    color: #1C1C1C;
}

/* =========================================================
   TICKET FORM ELEMENTS / BUTTON FALLBACKS
========================================================= */

.event-ticket-output input,
.event-ticket-output select,
.event-ticket-output textarea,
.event-ticket-output button {
    color: #1C1C1C;
}

.event-ticket-output input,
.event-ticket-output select,
.event-ticket-output textarea {
    background: #fff;
    border-color: rgba(28, 28, 28, 0.2);
}

.event-ticket-output button,
.event-ticket-output .button,
.event-ticket-output .checkout-button,
.event-ticket-output input[type="submit"] {
    background: #1D4486;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
}

.event-ticket-output button *,
.event-ticket-output .button *,
.event-ticket-output .checkout-button *,
.event-ticket-output input[type="submit"] * {
    color: #fff;
}

.event-ticket-output button:hover,
.event-ticket-output .button:hover,
.event-ticket-output .checkout-button:hover,
.event-ticket-output input[type="submit"]:hover {
    background: #15346a;
    color: #fff;
}

/* =========================================================
   TICKET FOOTER / TOTAL
========================================================= */

.event-ticket-output .ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
    padding: 22px 24px;
    background: #10131b;
    color: #fff;
    border-radius: 16px;
}

.event-ticket-output .ticket-footer *,
.event-ticket-output .ticket-footer span,
.event-ticket-output .ticket-footer div,
.event-ticket-output .ticket-footer .ticket-total,
.event-ticket-output .ticket-footer .ticket-total-label,
.event-ticket-output .ticket-footer .ticket-total-amount {
    color: #fff;
}

.event-ticket-output .ticket-total {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #fff;
}

.event-ticket-output .ticket-total-label {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    font-weight: 600;
}

.event-ticket-output .ticket-total-amount {
    color: #fff;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
}

.event-ticket-output .ticket-checkout-btn {
    min-height: 46px;
    padding: 12px 24px;
    background: #fff;
    color: #1C1C1C;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.event-ticket-output .ticket-checkout-btn:hover {
    background: #f1f1f1;
    color: #1C1C1C;
    transform: translateY(-1px);
}

.event-ticket-output .ticket-checkout-btn *,
.event-ticket-output .ticket-checkout-btn:hover * {
    color: #1C1C1C;
}

/* =========================================================
   COUNTDOWN / TIMER FALLBACKS
========================================================= */

.event-ticket-output .countdown,
.event-ticket-output .timer,
.event-ticket-output [class*="countdown"],
.event-ticket-output [class*="timer"],
.event-ticket-output [id*="countdown"],
.event-ticket-output [id*="timer"] {
    color: #1C1C1C;
    background: transparent;
}

.event-ticket-output .countdown *,
.event-ticket-output .timer *,
.event-ticket-output [class*="countdown"] *,
.event-ticket-output [class*="timer"] *,
.event-ticket-output [id*="countdown"] *,
.event-ticket-output [id*="timer"] * {
    color: #1C1C1C;
    background: transparent;
}

.event-ticket-output .countdown strong,
.event-ticket-output .timer strong,
.event-ticket-output [class*="countdown"] strong,
.event-ticket-output [class*="timer"] strong,
.event-ticket-output [id*="countdown"] strong,
.event-ticket-output [id*="timer"] strong {
    color: #1D4486;
}

/* =========================================================
   GALLERY CAROUSEL
========================================================= */

.event-gallery-wrap {
    position: relative;
    margin-top: 34px;
}

.event-gallery-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 4px 18px;
    scrollbar-width: thin;
}

.event-gallery-carousel::-webkit-scrollbar {
    height: 8px;
}

.event-gallery-carousel::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
}

.event-gallery-carousel::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.4);
    border-radius: 999px;
}

.event-gallery-item {
    flex: 0 0 280px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 14px;
    scroll-snap-align: start;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}

.event-gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.event-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.event-gallery-item:hover img {
    transform: scale(1.05);
}

.event-carousel-controls {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.event-carousel-button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.event-carousel-button:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-1px);
}

.event-button {
    display: inline-flex;
    margin-top: 28px;
    padding: 13px 20px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-weight: 800;
    text-decoration: none;
}

.event-button:hover {
    color: #111;
}

/* =========================================================
   LIGHTBOX
========================================================= */

.event-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0,0,0,0.88);
}

.event-lightbox.is-active {
    display: flex;
}

.event-lightbox-image {
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 30px 90px rgba(0,0,0,0.5);
}

.event-lightbox-close,
.event-lightbox-prev,
.event-lightbox-next {
    position: absolute;
    border: 0;
    background: rgba(255,255,255,0.12);
    color: #fff;
    cursor: pointer;
    transition: background 0.25s ease;
}

.event-lightbox-close:hover,
.event-lightbox-prev:hover,
.event-lightbox-next:hover {
    background: rgba(255,255,255,0.24);
}

.event-lightbox-close {
    top: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
}

.event-lightbox-prev,
.event-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 64px;
    border-radius: 999px;
    font-size: 34px;
    line-height: 1;
}

.event-lightbox-prev {
    left: 24px;
}

.event-lightbox-next {
    right: 24px;
}

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

@media (max-width: 900px) {
    .single-event-section {
        padding: 64px 20px;
    }

    .event-hero-grid,
    .event-details-grid {
        grid-template-columns: 1fr;
    }

    .event-details-grid {
        gap: 28px;
    }

    .ticket-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ticket-price-col,
    .ticket-qty-col {
        text-align: left;
    }

    .ticket-price-wrapper {
        align-items: flex-start;
    }

    .event-ticket-output .ticket-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .event-ticket-output .ticket-checkout-btn {
        width: 100%;
    }

    .event-gallery-item {
        flex-basis: 230px;
    }

    .event-schedule-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .event-lightbox-prev,
    .event-lightbox-next {
        width: 42px;
        height: 54px;
        font-size: 28px;
    }

    .event-lightbox-prev {
        left: 12px;
    }

    .event-lightbox-next {
        right: 12px;
    }
}

@media (max-width: 520px) {
    .event-title {
        font-size: 40px;
    }

    .ticket-row {
        padding: 20px;
    }

    .event-ticket-output .ticket-footer {
        padding: 20px;
    }

    .event-gallery-item {
        flex-basis: 82%;
    }

    .event-lightbox {
        padding: 18px;
    }

    .event-lightbox-close {
        top: 14px;
        right: 14px;
    }
}
