/* AACS Events archive hero - full-width banner above the TEC calendar. */
/* Remove TEC's top gap on both the main Events page and category archives. */
body:is(.post-type-archive-tribe_events, .tax-tribe_events_cat) .tribe-events-view .tribe-events-l-container:has(.aacs-events-hero) {
    padding-top: 0 !important;
}


/* Fallback if a TEC theme override outputs its own title despite the
   native header-title filter; keep the breadcrumbs and other controls. */
.tribe-events-view:has(.aacs-events-hero) .tribe-events-header__title {
    display: none;
}

/* Keep the calendar's Before HTML wrapper within its content width. */
.tribe-events-view .tribe-events-before-html:has(> .aacs-events-hero) {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.aacs-events-hero {
    --aacs-hero-ink: #1C1A19;
    --aacs-hero-green: #8AB336;
    box-sizing: border-box;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: none;
    margin-bottom: 40px !important;
}
.aacs-events-hero *,
.aacs-events-hero *::before,
.aacs-events-hero *::after {
    box-sizing: border-box;
}

.tribe-events-view .aacs-events-hero .aacs-events-hero__main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    padding: 0 5vw;
    overflow: hidden;
    background: linear-gradient(110deg, #1C1A19, #333D3B 65%, #87998B);
}
.tribe-events-view .aacs-events-hero .aacs-events-hero__image {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.aacs-events-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg,
        rgba(28,26,25,.96) 0%,
        rgba(28,26,25,.84) 26%,
        rgba(28,26,25,.4) 56%,
        rgba(28,26,25,.03) 100%);
}
.tribe-events-view .aacs-events-hero .aacs-events-hero__content {
    width: 100%;
    max-width: 1176px;
    margin: 0;
    padding: 80px 0;
}
.tribe-events-view .aacs-events-hero .aacs-events-hero__title {
    max-width: 100%;
    margin: 0 0 40px;
    padding: 0;
    color: #fff;
    /* Match the site-wide Divi heading font; no separate Google Fonts load. */
    font-family: var(--et_global_heading_font, 'Source Serif 4');
    font-size: clamp(50px, 5vw, 70px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
}
.tribe-events-view .aacs-events-hero .aacs-events-hero__title span {
    color: inherit;
    text-decoration-line: underline;
    text-decoration-color: var(--aacs-hero-green);
    text-decoration-style: solid;
    text-decoration-thickness: auto;
    text-underline-offset: 10px;
    text-decoration-skip-ink: none;
}
.tribe-events-view .aacs-events-hero .aacs-events-hero__description {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

@media (max-width: 767px) {
    /* Override the important desktop margin without changing TEC spacing. */
    .aacs-events-hero { margin-bottom: 20px !important; }
    .aacs-events-hero__overlay {
        background: linear-gradient(90deg,
            rgba(28,26,25,.95), rgba(28,26,25,.64) 80%, rgba(28,26,25,.42));
    }
    .tribe-events-view .aacs-events-hero .aacs-events-hero__content {
        padding: 54px 0;
    }
    .tribe-events-view .aacs-events-hero .aacs-events-hero__title {
        line-height: 1.2;
    }
}
