/* =========================================================
   EVENTS
   - Page Events template
   - Shared event cards (page + home)
   - TEC single event
========================================================= */


/* =========================================================
   PAGE EVENTS — HERO
========================================================= */

body.page-template-page-events-php .hero {
    background-position: center 15% !important;
    overflow: hidden;
    transform: translateZ(0);
}

body.page-template-page-events-php .hero .hero-overlay {
    background:
        radial-gradient(1200px 700px at 55% 35%, rgba(0, 0, 0, .10), rgba(0, 0, 0, .62) 78%),
        linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .22) 55%, rgba(0, 0, 0, .35) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .46) 0%, rgba(0, 0, 0, .12) 42%, rgba(0, 0, 0, .44) 100%) !important;
}

body.page-template-page-events-php .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(120% 85% at 55% 40%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .55) 100%),
        radial-gradient(900px 520px at 75% 45%, rgba(246, 199, 76, .16), rgba(246, 199, 76, 0) 65%);
}

body.page-template-page-events-php .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: .06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.page-template-page-events-php .hero-inner,
body.page-template-page-events-php .hero-content {
    position: relative;
    z-index: 2;
}

body.page-template-page-events-php .hero-title,
body.page-template-page-events-php .hero-sub {
    text-shadow: 0 18px 55px rgba(0, 0, 0, .45);
}


/* =========================================================
   PAGE EVENTS — LAYOUT
========================================================= */

body.page-template-page-events-php .events-page {
    padding: 0 0 96px;
}

body.page-template-page-events-php .events-page .container {
    max-width: var(--max);
}

body.page-template-page-events-php .events-intro {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 52px;
}

body.page-template-page-events-php .events-intro .page-intro-head,
body.page-template-page-events-php .events-intro .intro-panel {
    max-width: var(--max);
}

body.page-template-page-events-php .events-intro .page-intro-head {
    margin-bottom: 18px;
}

body.page-template-page-events-php .events-intro .page-intro-title {
    letter-spacing: -.01em;
}

body.page-template-page-events-php .events-intro .page-intro-sub {
    max-width: 70ch;
}

body.page-template-page-events-php .events-intro .intro-panel-prose {
    max-width: 72ch;
}

body.page-template-page-events-php .events-intro-body {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 480px);
    gap: 18px 24px;
    align-items: start;
}

body.page-template-page-events-php .events-intro-stats {
    align-self: start;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 100%;
}

body.page-template-page-events-php .events-intro-stats .intro-stat {
    min-height: 140px;
}

body.page-template-page-events-php .events-intro-stats .intro-stat:not(.is-total) {
    background: linear-gradient(180deg, #fffefe 0%, #f5efea 100%);
    border-color: rgba(90, 0, 17, .10);
    box-shadow:
        0 14px 30px rgba(15, 23, 42, .08),
        0 6px 14px rgba(90, 0, 17, .05);
}

body.page-template-page-events-php .events-intro-stats .intro-stat:not(.is-total) .stat-num {
    color: rgba(90, 0, 17, .88);
}

body.page-template-page-events-php .events-intro-stats .intro-stat.is-total {
    background:
        radial-gradient(140% 120% at 18% 8%, rgba(246, 199, 76, .18), rgba(246, 199, 76, 0) 56%),
        linear-gradient(180deg, #fffdfa 0%, #f8f1e8 100%);
    border-color: rgba(246, 199, 76, .34);
    box-shadow:
        0 20px 44px rgba(15, 23, 42, .12),
        0 10px 24px rgba(246, 199, 76, .12);
}

body.page-template-page-events-php .events-intro-stats .intro-stat.is-total .stat-num {
    color: #5a0011;
    transform: scale(1.06);
}

body.page-template-page-events-php .events-intro-stats .stat-label {
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: .12em;
}

body.page-template-page-events-php .events-page-head .kicker {
    font-weight: 900;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

body.page-template-page-events-php .section-head p {
    margin: 0;
    max-width: 68ch;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.55;
}

body.page-template-page-events-php .events-page-head {
    display: block;
}

body.page-template-page-events-php .events-page-head > div {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
}

body.page-template-page-events-php .events-page-head p {
    max-width: none;
}

body.page-template-page-events-php .events-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 32px;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.page-template-page-events-php .events-filters::after {
    content: none !important;
}

body.page-template-page-events-php .section-head.split {
    padding: 34px 0 22px;
}

body.page-template-page-events-php .filter-chip {
    appearance: none;
    border: 1px solid var(--theme-border);
    background: var(--theme-card-strong);
    color: var(--maroon);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 11px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

body.page-template-page-events-php .filter-chip:hover {
    transform: none;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}

body.page-template-page-events-php .filter-chip[aria-pressed="true"] {
    background: linear-gradient(180deg, #6f0018 0%, #4b0010 100%);
    color: #fff7e8;
    border-color: rgba(246, 199, 76, .55);
    box-shadow:
        0 6px 16px rgba(90, 0, 17, .12),
        inset 0 1px 0 rgba(255, 255, 255, .16);
}

body.page-template-page-events-php .filter-chip[aria-pressed="true"]:hover {
    background: linear-gradient(180deg, #7f001c 0%, #560012 100%);
}

body.page-template-page-events-php .events-empty {
    color: var(--muted);
    font-weight: 650;
    margin: 12px 0 0;
}

body.page-template-page-events-php .events-past {
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid rgba(15, 23, 42, .10);
}

body.page-template-page-events-php .events-past .kicker {
    opacity: .9;
}

body.page-template-page-events-php .events-past .event-card {
    filter: saturate(.94);
}

body.page-template-page-events-php .events-past .event-media {
    opacity: .92;
}

body.page-template-page-events-php .events-past .event-tag.is-public {
    background: rgba(246, 199, 76, .82);
}

body.page-template-page-events-php .events-past .event-tag.is-private {
    background: rgba(90, 10, 25, .65);
}

body.page-template-page-events-php .events-pagination {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.page-template-page-events-php .events-pagination a,
body.page-template-page-events-php .events-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 850;
    text-decoration: none;
    border: 1px solid var(--theme-border);
    background: var(--theme-card-strong);
    color: var(--maroon);
    box-shadow: var(--theme-shadow-sm);
}

body.page-template-page-events-php .events-pagination .current {
    background: linear-gradient(180deg, #f6d676 0%, #e4b12a 100%);
    border-color: rgba(120, 70, 0, .22);
}


/* =========================================================
   SHARED EVENT CARDS
   page-events + homepage events block
========================================================= */

:where(body.page-template-page-events-php, section.events) .event-grid,
section.events .event-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

:where(body.page-template-page-events-php, section.events) .event-card,
section.events .event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--theme-card-strong), var(--theme-card));
    border: 1px solid var(--theme-border);
    box-shadow: var(--theme-shadow-md);
    transition: transform .25s ease, box-shadow .25s ease;
}

:where(body.page-template-page-events-php, section.events) .event-card:hover,
section.events .event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--theme-shadow-lg);
    border-color: var(--theme-border-strong);
}

:where(body.page-template-page-events-php, section.events) .event-media,
section.events .event-media {
    position: relative;
    height: 240px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

:where(body.page-template-page-events-php, section.events) .event-media::after,
section.events .event-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .4) 100%);
}

:where(body.page-template-page-events-php, section.events) .event-card h3,
section.events .event-card h3 {
    margin: 18px 20px 10px;
    color: var(--maroon);
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.015em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}

:where(body.page-template-page-events-php, section.events) .event-meta,
section.events .event-meta {
    margin: 0 20px 20px;
    padding: 0;
    display: grid;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.4;
    list-style: none;
}

:where(body.page-template-page-events-php, section.events) .events-card-actions,
section.events .events-card-actions {
    margin-top: auto;
    padding: 0 20px 20px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
}

:where(body.page-template-page-events-php, section.events) .events-card-actions .btn,
section.events .events-card-actions .btn {
    flex: 0 0 auto;
    padding: 10px 16px;
    font-size: 15px;
    white-space: nowrap;
}

:where(body.page-template-page-events-php, section.events) .event-media .event-tag,
section.events .event-media .event-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    z-index: 5;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, .2),
        inset 0 1px 0 rgba(255, 255, 255, .22);
}

:where(body.page-template-page-events-php, section.events) .event-tag.is-public,
section.events .event-tag.is-public {
    background: linear-gradient(180deg, #f7d86e 0%, #e7b22b 100%);
    color: #33000d;
    border: 1px solid rgba(120, 70, 0, .3);
}

:where(body.page-template-page-events-php, section.events) .event-tag.is-private,
section.events .event-tag.is-private {
    background: linear-gradient(180deg, #7a001a 0%, #4f0010 100%);
    color: #fff4d1;
    border: 1px solid rgba(246, 199, 76, .35);
}

/* =========================================================
   HAPPENING TODAY BADGE
========================================================= */

:where(body.page-template-page-events-php, section.events) .event-media .event-badge-today,
section.events .event-media .event-badge-today {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(245, 240, 232, .95));
    color: #5a0011;
    border: 1px solid rgba(90, 0, 17, .2);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, .18),
        inset 0 1px 0 rgba(255, 255, 255, .72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
}

:where(body.page-template-page-events-php, section.events) .event-media .event-badge-today::before,
section.events .event-media .event-badge-today::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cb1f2d;
    box-shadow: 0 0 0 4px rgba(203, 31, 45, .16);
}

/* =========================================================
   FEATURED CARD — PAGE EVENTS
========================================================= */

body.page-template-page-events-php .event-card.is-featured {
    grid-column: span 2;
    box-shadow: var(--theme-shadow-lg);
    border: 1px solid var(--theme-border-strong);
}

body.page-template-page-events-php .event-card.is-featured .event-media {
    height: 240px !important;
}

body.page-template-page-events-php .event-card.is-featured h3 {
    font-size: 28px;
}



:where(body.page-template-page-events-php, section.events) .event-card.is-today {
    box-shadow:
        0 22px 60px rgba(0, 0, 0, .14),
        0 0 0 1px rgba(246, 199, 76, .28);
}

:where(body.page-template-page-events-php, section.events) .event-card.is-today .event-media::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(700px 260px at 85% 8%, rgba(246, 199, 76, .18), rgba(246, 199, 76, 0) 55%);
}

/* Keep CSS Next Event ribbon, but hide it if that card is today */
body.page-template-page-events-php .event-card.is-featured.is-today::after,
section.events .event-card.is-featured.is-today::after {
    content: none !important;
    display: none !important;
}



/* =========================================================
   SINGLE TEC EVENT
========================================================= */

body.single-tribe_events .hero.event-hero {
    min-height: calc(var(--heroMinH, 520px) + var(--headerH));
    margin-top: calc(var(--headerH) * -1);
    background-size: cover;
    background-position: center 15%;
    background-repeat: no-repeat;
    background-color: #1a0a0f;
    overflow: hidden;
    position: relative;
}

body.single-tribe_events .hero.event-hero .event-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(900px 520px at 35% 35%, rgba(246, 199, 76, .22), rgba(246, 199, 76, 0) 65%),
        radial-gradient(1200px 720px at 60% 40%, rgba(0, 0, 0, .18), rgba(0, 0, 0, .78) 80%),
        linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .18) 45%, rgba(0, 0, 0, .65) 100%);
}

body.single-tribe_events .hero.event-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(120% 85% at 55% 40%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .55) 100%),
        radial-gradient(900px 520px at 75% 45%, rgba(246, 199, 76, .16), rgba(246, 199, 76, 0) 65%);
}

body.single-tribe_events .hero.event-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: .06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.single-tribe_events .hero.event-hero .hero-inner {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--heroPadY, 60px) + var(--headerH));
    padding-bottom: var(--heroPadY, 60px);
}

body.single-tribe_events .hero.event-hero .container {
    position: relative;
}

body.single-tribe_events .hero.event-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

body.single-tribe_events .hero.event-hero .hero-title,
body.single-tribe_events .hero.event-hero .hero-sub {
    text-shadow: 0 18px 55px rgba(0, 0, 0, .45);
}

/* gold shimmer */
body.single-tribe_events .hero.event-hero .hero-content::before {
    content: "";
    position: absolute;
    left: -40px;
    right: -40px;
    top: -30px;
    bottom: -30px;
    background: radial-gradient(ellipse at center,
            rgba(246, 199, 76, .28) 0%,
            rgba(246, 199, 76, .12) 40%,
            rgba(246, 199, 76, 0) 70%);
    filter: blur(18px);
    z-index: -1;
    pointer-events: none;
}

body.single-tribe_events .event-title {
    margin-top: 6px;
    font-weight: 850;
    text-shadow:
        0 10px 28px rgba(0, 0, 0, .65),
        0 2px 6px rgba(0, 0, 0, .35);
}

body.single-tribe_events .event-pill-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

body.single-tribe_events .event-pill-row .event-status {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    line-height: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.single-tribe_events .event-pill-row .event-status::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    background: radial-gradient(ellipse at center,
            rgba(246, 199, 76, .45) 0%,
            rgba(246, 199, 76, .18) 40%,
            rgba(246, 199, 76, 0) 70%);
    filter: blur(10px);
    opacity: .55;
    z-index: -1;
}

body.single-tribe_events .event-pill-row .event-status.is-upcoming {
    background: linear-gradient(135deg, #7a001a 0%, #5a0011 100%);
    color: #ffe7ad;
    border: 1px solid rgba(246, 199, 76, .65);
    box-shadow:
        0 10px 24px rgba(90, 0, 17, .45),
        0 0 10px rgba(246, 199, 76, .25);
}

body.single-tribe_events .event-pill-row .event-status.is-today {
    background: linear-gradient(135deg, #f6c74c 0%, #d9a81f 100%);
    color: #3a2a00;
    border: 1px solid rgba(255, 255, 255, .35);
    box-shadow:
        0 10px 24px rgba(246, 199, 76, .45),
        inset 0 1px 0 rgba(255, 255, 255, .6);
}

body.single-tribe_events .event-pill-row .event-status.is-past {
    background: rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .30);
}

body.single-tribe_events .event-pill-row .event-meta-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .90);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

body.single-tribe_events .event-pill-row .event-meta-text .meta-sep {
    opacity: .55;
}

body.single-tribe_events .event-category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

body.single-tribe_events .event-cat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1;
    color: rgba(255, 255, 255, .96);
    background: linear-gradient(180deg, rgba(20, 20, 24, .78), rgba(0, 0, 0, .62));
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

body.single-tribe_events .event-cat-badge.term-public-event {
    background: linear-gradient(180deg, #f6d676 0%, #e4b12a 100%);
    color: #3b0010;
    border-color: rgba(120, 70, 0, .22);
    box-shadow:
        0 10px 25px rgba(0, 0, 0, .25),
        inset 0 1px 0 rgba(255, 255, 255, .4);
}

body.single-tribe_events .event-cat-badge.term-shrine-event {
    background: linear-gradient(180deg, rgba(122, 0, 26, .95) 0%, rgba(74, 0, 15, .95) 100%);
    color: #fff4cf;
    border-color: rgba(246, 199, 76, .35);
}

body.single-tribe_events .event-cat-badge.term-shrine-only {
    background: linear-gradient(180deg, rgba(90, 10, 25, .95) 0%, rgba(55, 5, 15, .95) 100%);
    color: rgba(255, 255, 255, .96);
    border-color: rgba(246, 199, 76, .28);
}

body.single-tribe_events .event-cat-badge.term-club-meeting {
    background: linear-gradient(180deg, rgba(34, 34, 40, .88) 0%, rgba(16, 16, 20, .78) 100%);
    color: #f5f5f5;
    border-color: rgba(255, 255, 255, .18);
}

body.single-tribe_events .event-cat-badge.term-unit-meeting {
    background: linear-gradient(180deg, rgba(58, 30, 10, .90) 0%, rgba(32, 18, 8, .82) 100%);
    color: #ffe8b3;
    border-color: rgba(246, 199, 76, .24);
}

/* hero buttons */
body.single-tribe_events .event-hero .event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

body.single-tribe_events .event-hero .event-actions .copy-link-btn {
    padding-left: 16px;
    padding-right: 16px;
}

body.single-tribe_events .event-secondary-link {
    margin-top: 18px;
}

body.single-tribe_events .event-secondary-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, .92);
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
    transition: color .2s ease, transform .2s ease;
}

body.single-tribe_events .event-secondary-link a:hover {
    color: #f6d676;
    transform: translateX(-3px);
}

/* body + panel */
body.single-tribe_events .event-single {
    position: relative;
    z-index: 1;
}

body.single-tribe_events #tribe-events-pg-template {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

body.single-tribe_events .event-body {
    margin-top: -280px;
    padding-top: 120px !important;
    padding-bottom: 40px;
    background: transparent;
    margin-bottom: 0 !important;
    pointer-events: none;
}

body.single-tribe_events .event-body::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 40px;
    opacity: .06;
    background: #000;
}

body.single-tribe_events .event-panel {
    position: relative;
    z-index: 5;
    max-width: 760px;
    margin: 0 auto;
    padding: 48px;
    border-radius: 32px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, .16),
        0 8px 24px rgba(0, 0, 0, .08),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    overflow: hidden;
    pointer-events: auto;
}

body.single-tribe_events .event-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f6c74c 0%, #e0b22c 40%, #f6c74c 70%, #d39b00 100%);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, .12),
        0 0 12px rgba(246, 199, 76, .35);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

body.single-tribe_events .event-panel-title {
    font-size: clamp(26px, 2.4vw, 34px);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

body.single-tribe_events .event-panel-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin-top: 12px;
    background: linear-gradient(90deg, #f6c74c, #e0b22c, #f6c74c);
    border-radius: 3px;
}

body.single-tribe_events .event-details {
    list-style: none;
    margin: 10px 0 24px;
    padding: 0;
    display: grid;
    gap: 8px;
}

body.single-tribe_events .event-details li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(250, 250, 250, .96));
    border: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .04);
}

body.single-tribe_events .event-detail-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: linear-gradient(180deg, rgba(122, 0, 26, .08), rgba(122, 0, 26, .14));
    border: 1px solid rgba(122, 0, 26, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}

body.single-tribe_events .event-detail-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

body.single-tribe_events .event-detail-copy strong {
    margin: 0;
    min-width: 0;
    color: var(--maroon);
    font-weight: 900;
    letter-spacing: .01em;
    line-height: 1.1;
}

body.single-tribe_events .event-detail-copy>span {
    color: rgba(15, 23, 42, .78);
    font-weight: 600;
    line-height: 1.35;
}

body.single-tribe_events .event-detail-copy .tribe-address {
    display: inline;
}

body.single-tribe_events .event-panel-content {
    margin: 14px 0 18px;
    color: rgba(15, 23, 42, .8);
    font-weight: 650;
}

body.single-tribe_events .event-empty {
    margin-top: 14px;
    font-style: italic;
    opacity: .75;
}

body.single-tribe_events .event-panel-foot .btn.btn-primary {
    padding: 14px 26px;
    box-shadow: 0 18px 40px rgba(90, 0, 17, .25);
}

body.single-tribe_events footer,
body.single-tribe_events .site-footer {
    margin-top: 0 !important;
}

body.single-tribe_events .event-body,
body.single-tribe_events .event-panel {
    border-bottom: none !important;
}


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

@media (max-width: 1100px) {

    :where(body.page-template-page-events-php, section.events) .event-grid,
    section.events .event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-template-page-events-php .event-card.is-featured {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    body.page-template-page-events-php .event-card.is-featured {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    body.page-template-page-events-php .events-page {
        padding: 42px 0 76px;
    }

    body.page-template-page-events-php .events-intro-body {
        grid-template-columns: 1fr;
    }

    body.page-template-page-events-php .events-intro-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-template-page-events-php .events-intro {
        margin-bottom: 34px;
    }

    body.page-template-page-events-php .events-filters {
        margin: 0 0 16px;
    }

    body.page-template-page-events-php .section-head.split {
        padding: 26px 0 18px;
    }

    body.page-template-page-events-php .hero {
        background-position: center 25% !important;
    }

    body.page-template-page-events-php .event-card h3,
    body.page-template-page-events-php .event-meta,
    body.page-template-page-events-php .events-card-actions,
    section.events .event-card h3,
    section.events .event-meta,
    section.events .events-card-actions {
        margin-left: 14px;
        margin-right: 14px;
    }

    body.page-template-page-events-php .events-card-actions,
    section.events .events-card-actions {
        flex-wrap: wrap;
    }

    body.single-tribe_events .hero.event-hero {
        background-position: center 25%;
    }

    body.single-tribe_events .event-body {
        margin-top: -80px;
        padding-top: 20px !important;
    }

    body.single-tribe_events .event-panel {
        padding: 28px 20px;
        border-radius: 20px;
    }

    body.single-tribe_events .event-details li {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 12px;
        padding: 13px 14px;
    }

    body.single-tribe_events .event-detail-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    :where(body.page-template-page-events-php, section.events) .event-media .event-tag,
    :where(body.page-template-page-events-php, section.events) .event-media .event-badge-today,
    section.events .event-media .event-tag,
    section.events .event-media .event-badge-today {
        min-height: 32px;
        padding: 7px 11px;
        font-size: 10px;
        letter-spacing: .09em;
    }
}

@media (max-width: 720px) {

    body.page-template-page-events-php .events-intro-stats {
        grid-template-columns: 1fr;
    }

    :where(body.page-template-page-events-php, section.events) .event-grid,
    section.events .event-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    body.page-template-page-events-php .event-card.is-featured .event-media,
    section.events .event-card.is-featured .event-media {
        height: 240px;
    }
}



