/*
 Theme Name:   ESNA 2.0 - Astra Child
 Description:  Premium child theme for the Eastside Neighborhood Association 2.0.
 Author:       Antigravity
 Template:     astra
 Version:      2.0.0
 Last Updated: 2026-01-31
*/

/* ============================================
   VERIFICATION: If you see this, CSS is loading
   Last Updated: 2026-01-31 12:00:00
   ============================================ */

/* TEMPORARY TEST: Uncomment the line below to verify CSS is loading */
/* body { border-top: 10px solid red !important; background: yellow !important; } */

/* ================================
   ESNA 2.0 CORE VARIABLES
   ================================ */
:root {
    /* Brand Colors */
    --esna-red: #C41E3A;
    --esna-red-dark: #9A1830;
    --esna-green: #2E8B57;
    --esna-green-dark: #236B44;
    --esna-gold: #F8BE11;
    --esna-burgundy: #722F37;

    /* Neutrals */
    --esna-white: #FFFFFF;
    --esna-off-white: #FAF9F6;
    --esna-cream: #FFFEF5;
    --esna-gray-light: #F5F5F5;
    --esna-gray: #888888;
    --esna-gray-dark: #4A4A4A;
    --esna-black: #1A1A1A;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans Pro', -apple-system, sans-serif;
    --font-accent: 'Lora', Georgia, serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);

    /* Transitions */
    --transition: 0.3s ease;
}

/* ================================
   GLOBAL OVERRIDES
   ================================ */
html,
body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    width: 100% !important;
    position: relative !important;
    height: auto !important;
}

body {
    font-family: var(--font-body) !important;
    background-color: var(--esna-off-white) !important;
    color: var(--esna-gray-dark) !important;
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-heading {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    line-height: 1.3;
}

.hero-header {

    color: var(--esna-white) !important;
}

/* ================================
   HEADER STYLES
   ================================ */
body .site-header,
body .main-header-bar,
body .ast-primary-header-bar {
    background-color: transparent !important;
    background-image: none !important;
    background: transparent !important;
    /* CRITICAL: Prevent Customizer from adding gradient backgrounds */
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* ================================
   STICKY HEADER GLASS EFFECT
   Clean CSS-only approach - JavaScript just adds classes
   ================================ */

/* Main header containers - glass effect when sticky */
/* CRITICAL: These rules override Customizer-generated CSS */
body.esna-header-sticky .site-header,
body.esna-header-sticky .main-header-bar,
body.esna-header-sticky .ast-primary-header-bar,
body.esna-header-sticky .ast-primary-header,
body.esna-header-sticky .ast-primary-header-bar.ast-primary-header,
body.esna-header-sticky .ast-primary-header-bar.ast-primary-header.main-header-bar,
body.esna-header-sticky .ast-primary-header-bar.ast-primary-header.main-header-bar.site-header-focus-item,
body.esna-header-sticky div.ast-primary-header-bar.ast-primary-header.main-header-bar,
body.esna-header-sticky div.ast-primary-header-bar.ast-primary-header.main-header-bar.site-header-focus-item,
.site-header.esna-sticky,
.main-header-bar.esna-sticky,
.ast-primary-header-bar.esna-sticky,
.ast-primary-header.esna-sticky,
/* Override any Customizer-generated styles */
body.esna-header-sticky .site-header[style*="background"],
body.esna-header-sticky .main-header-bar[style*="background"],
body.esna-header-sticky .ast-primary-header-bar[style*="background"],
body.esna-header-sticky .site-header[style*="gradient"],
body.esna-header-sticky .main-header-bar[style*="gradient"],
body.esna-header-sticky .ast-primary-header-bar[style*="gradient"] {
    background-color: rgba(255, 255, 255, 0.95) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    background-image: none !important;
    /* CRITICAL: Override any gradient backgrounds from Customizer */
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(180%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    opacity: 1 !important;
}

/* Logo and navigation section containers - remove background so they inherit from parent */
body.esna-header-sticky .site-header-primary-section-left,
body.esna-header-sticky .site-header-primary-section-right,
body.esna-header-sticky .site-header-primary-section-center,
body.esna-header-sticky .ast-site-identity,
body.esna-header-sticky .site-branding,
body.esna-header-sticky .ast-builder-menu,
body.esna-header-sticky .ast-builder-header-row,
body.esna-header-sticky .ast-main-header-wrap,
.site-header-primary-section-left.esna-sticky,
.site-header-primary-section-right.esna-sticky,
.site-header-primary-section-center.esna-sticky,
.ast-site-identity.esna-sticky,
.site-branding.esna-sticky,
.ast-builder-menu.esna-sticky {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Add padding to page content to account for fixed header - only on desktop */
@media (min-width: 922px) {
    #page {
        padding-top: 80px !important;
    }
}

/* Boxed container for header content */
.ast-container,
.ast-primary-header-bar .site-container,
.main-header-bar .site-container,
.ast-primary-header-bar .ast-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
}

/* Make nav links visible on dark hero backgrounds */
.ast-nav-menu a {
    color: var(--esna-gold) !important;
}

/* Navigation links - black when sticky (white background) */
body.esna-header-sticky .ast-nav-menu a,
body.esna-header-sticky .ast-builder-menu a,
body.esna-header-sticky .ast-builder-menu .menu-item a,
body.esna-header-sticky .main-header-menu a,
body.esna-header-sticky .main-header-menu .menu-item a,
body.esna-header-sticky #ast-hf-menu-1 a,
body.esna-header-sticky #ast-hf-menu-1 .menu-item a {
    color: var(--esna-black) !important;
}

body.esna-header-sticky .ast-nav-menu a:hover,
body.esna-header-sticky .ast-builder-menu a:hover,
body.esna-header-sticky .ast-nav-menu .current-menu-item > a {
    color: var(--esna-red) !important;
}

/* Logo padding - reduced on mobile */
.ast-site-identity,
.site-branding {
    padding-left: 45px !important;
}

@media (max-width: 921px) {
    .ast-site-identity,
    .site-branding {
        padding-left: 15px !important;
    }
}

.ast-site-identity .site-title {
    font-family: var(--font-heading);
    color: var(--esna-black);
}

/* Primary Navigation */
.ast-nav-menu a {
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.9rem;
}

.ast-nav-menu a:hover,
.ast-nav-menu .current-menu-item>a {
    color: var(--esna-red) !important;
}

/* Mobile Toggle (Hamburger) */
.main-header-menu-toggle.ast-mobile-menu-trigger-minimal,
.ast-mobile-menu-buttons .ast-button-wrap .menu-toggle {
    color: var(--esna-red) !important;
    background: transparent !important;
}

/* CTA Button in Header */
.ast-header-button-1 a {
    background: var(--esna-red) !important;
    color: var(--esna-white) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.ast-header-button-1 a:hover {
    background: var(--esna-red-dark) !important;
    transform: translateY(-2px);
}

/* ================================
   HERO SECTION
   ================================ */
.esna-hero,
.wp-block-group.is-style-esna-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--esna-black);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--esna-white) !important;
    padding: 100px 20px !important;
}

/* Allow background-image to show when set via inline style */
.wp-block-group.is-style-esna-hero[style*='background-image'],
.esna-hero[style*='background-image'],
.esna-events-hero[style*='background-image'] {
    background-color: transparent !important;
}

.esna-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(26, 26, 26, 0.7) 0%,
            rgba(114, 47, 55, 0.6) 100%);
}

.esna-hero-content,
.wp-block-group.is-style-esna-hero>* {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px !important;
    margin: 0 auto !important;
}

.esna-hero h1,
.is-style-esna-hero h1,
.is-style-esna-hero-title {
    color: var(--esna-white) !important;
    font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 20px !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.esna-hero p,
.is-style-esna-hero p {
    color: var(--esna-cream) !important;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    max-width: 700px;
    margin: 0 auto var(--space-md);
    font-family: var(--font-accent);
}

/* ================================
   BUTTON STYLES
   ================================ */
.wp-block-button__link,
.esna-btn-primary,
.elementor-button.esna-btn-primary {
    background: var(--esna-red) !important;
    color: var(--esna-white) !important;
    padding: 1rem 2rem !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none !important;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

.wp-block-button__link:hover,
.esna-btn-primary:hover {
    background: var(--esna-red-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.esna-btn-secondary,
.elementor-button.esna-btn-secondary,
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    color: var(--esna-white) !important;
    border: 2px solid var(--esna-white) !important;
    padding: 0.875rem 1.875rem !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.esna-btn-secondary:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--esna-white) !important;
    color: var(--esna-red) !important;
}

.esna-btn-green {
    background: var(--esna-green) !important;
}

.esna-btn-green:hover {
    background: var(--esna-green-dark) !important;
}

/* ================================
   EVENT BANNER/TICKER
   ================================ */
.esna-event-banner {
    background: linear-gradient(135deg, var(--esna-red) 0%, var(--esna-burgundy) 100%);
    color: var(--esna-white);
    padding: var(--space-sm) var(--space-md);
    text-align: center;
}

.esna-event-banner p {
    margin: 0;
    font-size: 1rem;
}

.esna-event-banner strong {
    font-weight: 700;
}

.esna-event-banner a {
    color: var(--esna-gold);
    text-decoration: underline;
    font-weight: 600;
}

/* ================================
   EVENT CARD STYLES
   ================================ */
.esna-event-card {
    background: var(--esna-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.esna-event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.esna-event-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.esna-event-card-content {
    padding: var(--space-md);
}

.esna-event-date {
    display: inline-block;
    background: var(--esna-red);
    color: var(--esna-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.esna-event-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--esna-white);
}

.esna-event-location {
    color: var(--esna-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ================================
   TEAM/BOARD MEMBER STYLES
   ================================ */
.esna-team-card {
    text-align: center;
    padding: var(--space-md);
}

.esna-team-photo,
.esna-bio-img img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--esna-gold);
    margin: 0 auto var(--space-sm);
    transition: var(--transition);
}

.esna-team-card:hover .esna-team-photo {
    border-color: var(--esna-red);
    transform: scale(1.05);
}

.esna-team-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--esna-black);
    margin-bottom: 0.25rem;
}

.esna-team-role {
    color: var(--esna-green);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* ================================
   SECTION STYLES
   ================================ */
.esna-section {
    padding: var(--space-xl) 0;
}

.esna-section-alt {
    background: var(--esna-cream);
}

.esna-section-dark {
    background: var(--esna-black);
    color: var(--esna-white);
}

.esna-section-dark h2 {
    color: var(--esna-white);
}

.esna-section-title,
.entry-content h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
    display: inline-block;
}

.entry-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--esna-gold);
    border-radius: 2px;
}

/* ================================
   FOCUS AREA GRID
   ================================ */
.esna-focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.esna-focus-item {
    background: var(--esna-white);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.esna-focus-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--esna-gold);
}

.esna-focus-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.esna-focus-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.esna-focus-item p {
    font-size: 0.95rem;
    color: var(--esna-gray);
}

/* ================================
   GALLERY STYLES
   ================================ */
.esna-gallery-grid,
.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-sm);
}

.esna-gallery-item,
.wp-block-gallery .wp-block-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.esna-gallery-item img,
.wp-block-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.esna-gallery-item:hover img,
.wp-block-gallery .wp-block-image:hover img {
    transform: scale(1.1);
}

/* ================================
   CTA BANNER
   ================================ */
.esna-cta-banner {
    background: linear-gradient(135deg, var(--esna-green) 0%, var(--esna-green-dark) 100%);
    padding: var(--space-lg);
    text-align: center;
    border-radius: var(--radius-xl);
}

.esna-cta-banner h2 {
    color: var(--esna-white) !important;
    margin-bottom: var(--space-sm);
}

.esna-cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto var(--space-md);
    font-size: 1.1rem;
}

/* ================================
   FOOTER STYLES
   ================================ */
/* Remove any gaps/margins above footer */
.site-content,
#primary,
.ast-container,
.entry-content {
    margin-bottom: 0 !important;
}

/* Ensure content above footer has no bottom margin */
.elementor-location-footer,
.site-main>*:last-child,
.entry-content>*:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Footer full width - remove any container constraints */

/* Remove gray bar/gap between sections */
.site-footer-primary-section-1,
.site-footer-primary-section-2,
.site-above-footer-wrap,
.site-primary-footer-wrap,
.ast-builder-footer-grid-columns,
.site-footer>*:first-child {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
}

/* Footer main background — solid ESNA Gold, NO background image or texture */
.ast-footer,
.site-footer,
footer.site-footer,
footer#colophon {
    background: #FFEF00 !important;
    background-color: #FFEF00 !important;
    background-image: none !important;
    position: relative;
}

/* Remove the old SVG texture overlay */
.ast-footer::before,
.site-footer::before {
    display: none !important;
    content: none !important;
}

/* Footer content container */
.ast-footer .ast-container,
.site-footer .ast-container,
.ast-footer-overlay-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* All footer text — BLACK on yellow background */
.ast-footer,
.ast-footer p,
.ast-footer span,
.ast-footer li,
.site-footer,
.site-footer p,
.site-footer span,
.site-footer li,
.ast-small-footer,
.ast-footer-copyright {
    color: #000000 !important;
}

/* Footer links — black with red hover */
.ast-footer a,
.site-footer a,
.ast-small-footer a,
.ast-footer-copyright a {
    color: #000000 !important;
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.ast-footer a:hover,
.site-footer a:hover,
.ast-small-footer a:hover {
    color: var(--esna-red) !important;
    border-bottom-color: var(--esna-red);
}

/* Footer headings — black */
.ast-footer h4,
.ast-footer h3,
.ast-footer .widget-title,
.site-footer .widget-title {
    color: #000000 !important;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer social icons */
.esna-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.08);
    border: 2px solid #000000;
    border-radius: 50%;
    margin-right: 0.75rem;
    transition: var(--transition);
    color: #000000 !important;
}

.esna-footer-social a:hover {
    background: #000000;
    color: #FFEF00 !important;
    transform: translateY(-3px);
}

/* Copyright / small footer bar */
.ast-small-footer,
.site-below-footer-wrap {
    background: rgba(0, 0, 0, 0.08) !important;
    padding: 20px 0 !important;
    margin-top: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    color: #000000 !important;
}

/* Footer widgets spacing */
.ast-footer .widget,
.footer-widget-area .widget {
    margin-bottom: 30px;
}

.ast-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ast-footer ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.ast-footer ul li:last-child {
    border-bottom: none;
}

/* Footer logo — render black on yellow background */
.ast-footer .custom-logo,
.ast-footer .custom-logo-link img,
.ast-footer .ast-footer-logo img,
.ast-footer img.custom-logo,
.site-footer .custom-logo,
.site-footer .custom-logo-link img,
.site-footer .ast-footer-logo img,
.site-footer img.custom-logo {
    filter: brightness(0) !important;
    -webkit-filter: brightness(0) !important;
}

/* ================================
   FOOTER MISSION STATEMENT RIBBON
   ================================ */
.esna-mission-ribbon {
    background: #000000;
    color: #FFEF00;
    width: 100%;
    padding: 40px 0;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.esna-mission-ribbon .esna-mission-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.esna-mission-ribbon .esna-mission-heading {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #FFEF00;
    margin-bottom: 16px;
    opacity: 0.75;
}

.esna-mission-ribbon .esna-mission-text {
    font-family: var(--font-accent);
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    line-height: 1.85;
    color: #FFEF00;
    max-width: 900px;
    margin: 0 auto;
    font-style: italic;
}

@media (max-width: 768px) {
    .esna-mission-ribbon {
        padding: 30px 0;
        margin-top: 20px;
    }
    .esna-mission-ribbon .esna-mission-inner {
        padding: 0 20px;
    }
}

/* ================================
   FORM STYLES (WPForms)
   ================================ */
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container textarea,
.wpforms-container select {
    border: 2px solid var(--esna-gray-light) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.875rem 1rem !important;
    font-family: var(--font-body) !important;
    transition: var(--transition);
}

.wpforms-container input:focus,
.wpforms-container textarea:focus {
    border-color: var(--esna-green) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1) !important;
}

.wpforms-submit-container button,
.wpforms-submit {
    background: var(--esna-red) !important;
    color: var(--esna-white) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    cursor: pointer;
}

.wpforms-submit-container button:hover,
.wpforms-submit:hover {
    background: var(--esna-red-dark) !important;
    transform: translateY(-2px);
}

/* ================================
   EVENTS CALENDAR OVERRIDES
   ================================ */
.tribe-events .tribe-events-calendar-list__event-title-link {
    color: var(--esna-black);
    font-family: var(--font-heading);
}

.tribe-events .tribe-events-calendar-list__event-title-link:hover {
    color: var(--esna-red);
}

.tribe-events .tribe-events-c-view-selector__button,
.tribe-events .tribe-events-c-subscribe-dropdown__button {
    background: var(--esna-red) !important;
}

/* ================================
   LAYOUT FIXES
   ================================ */
#page,
.ast-container,
.site-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.entry-content>*,
.esna-content-wrapper {
    max-width: 1200px !important;
    width: 90% !important;
    margin: 40px auto !important;
    padding: 0 !important;
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

/* ================================
   UTILITY CLASSES
   ================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--space-xs);
}

.mb-2 {
    margin-bottom: var(--space-sm);
}

.mb-3 {
    margin-bottom: var(--space-md);
}

.mb-4 {
    margin-bottom: var(--space-lg);
}

/* ================================
   NEWSLETTER SECTION (STAY CONNECTED)
   ================================ */
/* Target the newsletter section wrapper */
.wp-block-group.has-background,
[class*="newsletter"],
.esna-newsletter,
.stay-connected-section {
    position: relative;
}

/* Newsletter section with dark/red background - ensure white text */
.wp-block-group.has-background h2,
.wp-block-group.has-background h3,
.wp-block-group.has-background h4,
.wp-block-group.has-background p,
.wp-block-group.has-background span,
.wp-block-group.has-background label,
[class*="newsletter"] h2,
[class*="newsletter"] h3,
[class*="newsletter"] p,
[class*="newsletter"] span,
[class*="newsletter"] label {
    color: var(--esna-white) !important;
}

/* Specifically target STAY CONNECTED heading */
.wp-block-heading:has(+ .wpforms-container),
.wp-block-group:has(.wpforms-container) h2,
.wp-block-group:has(.wpforms-container) h3,
.wp-block-group:has(.wpforms-container) h4,
.wp-block-group:has(.wpforms-container) p:not(.wpforms-description) {
    color: var(--esna-white) !important;
}

/* WPForms in newsletter section */
.wp-block-group:has(.wpforms-container) .wpforms-container,
.wp-block-group.has-background .wpforms-container {
    color: var(--esna-white) !important;
}

.wp-block-group:has(.wpforms-container) .wpforms-field-label,
.wp-block-group.has-background .wpforms-field-label,
.wp-block-group:has(.wpforms-container) .wpforms-field-description,
.wp-block-group.has-background .wpforms-field-description {
    color: var(--esna-white) !important;
}

/* Newsletter form inputs - light style for dark background */
.wp-block-group:has(.wpforms-container) input[type="text"],
.wp-block-group:has(.wpforms-container) input[type="email"],
.wp-block-group.has-background input[type="text"],
.wp-block-group.has-background input[type="email"] {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: var(--esna-black) !important;
    border-radius: var(--radius-md) !important;
    padding: 1rem !important;
}

.wp-block-group:has(.wpforms-container) input::placeholder,
.wp-block-group.has-background input::placeholder {
    color: var(--esna-gray) !important;
}

/* Newsletter submit button - gold accent */
.wp-block-group:has(.wpforms-container) .wpforms-submit,
.wp-block-group.has-background .wpforms-submit {
    background: var(--esna-gold) !important;
    color: var(--esna-black) !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 1rem 2.5rem !important;
    border-radius: var(--radius-md) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.wp-block-group:has(.wpforms-container) .wpforms-submit:hover,
.wp-block-group.has-background .wpforms-submit:hover {
    background: var(--esna-white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Newsletter wrapper styling for better visual integration */
.wp-block-group:has(.wpforms-container) {
    padding: var(--space-lg) var(--space-md) !important;
    text-align: center;
}

/* Fix for the light gray container around newsletter */
.wp-block-group:has(.wp-block-group:has(.wpforms-container)) {
    background: transparent !important;
    padding: 0 !important;
}

/* ================================
   ELEMENTOR NEWSLETTER SECTION
   ================================ */
/* Elementor sections with background gradient (newsletter) */
.elementor-section[data-settings*="gradient"] h2,
.elementor-section[data-settings*="gradient"] h3,
.elementor-section[data-settings*="gradient"] p,
.elementor-section[data-settings*="gradient"] .elementor-heading-title,
.elementor-section[data-settings*="gradient"] .elementor-text-editor,
[class*="elementor-element"] .elementor-widget-container:has(.wpforms-container)~* h2,
[class*="elementor-element"]:has(.wpforms-container) h2,
[class*="elementor-element"]:has(.wpforms-container) h3,
[class*="elementor-element"]:has(.wpforms-container) p,
[class*="elementor-element"]:has(.wpforms-container) .elementor-heading-title,
[class*="elementor-element"]:has(.wpforms-container) .elementor-text-editor {
    color: var(--esna-white) !important;
}

/* Elementor containers with red/dark backgrounds */
.elementor-section:has(.wpforms-container) .elementor-heading-title,
.elementor-section:has(.wpforms-container) .elementor-text-editor,
.elementor-section:has(.wpforms-container) .elementor-widget-heading h2,
.elementor-section:has(.wpforms-container) p,
.elementor-container:has(.wpforms-container) h2,
.elementor-container:has(.wpforms-container) h3,
.elementor-container:has(.wpforms-container) p,
.elementor-container:has(.wpforms-container) .elementor-heading-title,
.elementor-container:has(.wpforms-container) .elementor-text-editor {
    color: var(--esna-white) !important;
}

/* Direct targeting of any h2 before wpforms in Elementor */
.elementor-widget-heading+.elementor-widget-wpforms~.elementor-widget-heading h2,
.elementor-widget-heading:has(+ .elementor-widget)~.elementor-widget-wpforms h2,
.elementor-column:has(.wpforms-container) .elementor-heading-title,
.elementor-column:has(.wpforms-container) .elementor-widget-heading h2 {
    color: var(--esna-white) !important;
}

/* Force white text on any element within Elementor section containing WPForms */
.elementor-element:has(.wpforms-container) h2.elementor-heading-title,
.elementor-element:has(.wpforms-container) .elementor-heading-title,
.elementor *:has(> .wpforms-container) h2,
.elementor *:has(> .wpforms-container) p {
    color: var(--esna-white) !important;
}

/* Fallback: target common Elementor newsletter class patterns */
[class*="elementor"][style*="background"],
.elementor-section[style*="gradient"] h2,
.elementor-section[style*="gradient"] p,
.elementor-section-boxed:has(.wpforms-container) h2,
.elementor-section-boxed:has(.wpforms-container) p,
.elementor-inner:has(.wpforms-container) h2,
.elementor-inner:has(.wpforms-container) p {
    color: var(--esna-white) !important;
}

/* Nuclear option: Any heading in a section with red background */
.elementor-section.elementor-section-boxed:has(.wpforms-container) h2,
.elementor-section.elementor-section-boxed:has(.wpforms-container) h2 *,
.elementor-section-full_width:has(.wpforms-container) h2,
.elementor-section-full_width:has(.wpforms-container) h2 * {
    color: var(--esna-white) !important;
}

/* ================================
   NEWSLETTER-FOOTER SEAMLESS CONNECTION
   ================================ */
/* Remove gray gap between newsletter and footer */
.elementor-section:has(.wpforms-container),
.elementor-section:has(.wpforms-container)+*,
.elementor-section:has(.esna-form),
[class*="elementor"]:has(.wpforms-form) {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Make newsletter section full-width like footer */
.elementor-section:has(.wpforms-container),
.elementor-section:has(.esna-form) {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* Remove rounded corners from newsletter if it's supposed to be full-width */
.elementor-section:has(.wpforms-container)>.elementor-container,
.elementor-section:has(.wpforms-container) .elementor-section-wrap {
    border-radius: 0 !important;
    max-width: 100% !important;
}

/* Remove the body/page background color that shows between elements */
body.page,
body.home,
#page,
.site-content>*,
.ast-plain-container,
.ast-page-builder-template main,
.site-main,
#primary {
    background: transparent !important;
}

/* Background for the main area should extend to newsletter */
.entry-content,
.site-main .entry-content {
    background: var(--esna-off-white) !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Remove margins from Elementor sections at bottom of page */
.elementor-section:last-of-type,
.elementor-section+footer,
main>*:last-child,
.entry-content>*:last-child {
    margin-bottom: 0 !important;
}

/* Ensure footer connects seamlessly - use negative margin to overlap */
footer.site-footer,
.site-footer {
    margin-top: -40px !important;
    padding-top: 60px !important;
    position: relative;
    z-index: 1;
}

/* Newsletter section extend down with extra padding to overlap footer */
.elementor-section:has(.wpforms-container),
.elementor-section:has(.esna-form),
.elementor-location-single .elementor-section:last-of-type,
.elementor .elementor-section:has([class*="wpform"]) {
    padding-bottom: 60px !important;
    margin-bottom: -20px !important;
    position: relative;
    z-index: 2;
}

/* Remove any wrapper padding around the page content */
.ast-separate-container .ast-article-inner,
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
    background: transparent !important;
    padding-bottom: 0 !important;
}

/* Hide the gap by extending newsletter section background */
.elementor-section:has(.wpforms-container)::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: inherit;
    z-index: -1;
}

/* Footer extends to fill page bottom - no gray gap */
footer.site-footer,
.site-footer {
    min-height: 100px;
}

/* Ensure page background doesn't show gaps below footer */
body.page,
body.home,
body.single,
body.archive {
    background-color: var(--esna-off-white) !important;
}

/* Keep light gray background on single event pages - prevent red on scroll */
body.single,
body.single-post,
body.single.has-category-events {
    background-color: var(--esna-off-white) !important;
    background: var(--esna-off-white) !important;
}

body.single #page,
body.single-post #page,
body.single .site-content,
body.single-post .site-content,
body.single .ast-separate-container,
body.single-post .ast-separate-container {
    background-color: var(--esna-off-white) !important;
    background: var(--esna-off-white) !important;
}

/* ================================
   FOOTER GAP FIX - Remove gray space
   ================================ */
/* Remove any gap/margin between sections and footer */
.elementor-location-footer,
.site-footer,
footer.site-footer,
footer#colophon {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove bottom margin/padding from last content section before footer */
.elementor-section:last-of-type,
.elementor-element:last-child .elementor-section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove the gray gap between content and footer - target ALL possible containers */
.site-content,
#content,
.ast-container,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-plain-container,
.ast-page-builder-template .site-content>.ast-container,
.elementor-template-full-width .site-content>.ast-container,
.ast-separate-container .site-content>.ast-container,
.ast-separate-container.ast-page-builder-template .site-content>.ast-container,
div.ast-container,
main.site-main,
article.post,
.entry-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure page wrapper has no gap at bottom */
#page,
body.elementor-page,
body.page-template-elementor_header_footer {
    background-color: transparent !important;
}

/* Keep light gray background for single event pages */
body.single .ast-separate-container,
body.single-post .ast-separate-container {
    background-color: var(--esna-off-white) !important;
    background: var(--esna-off-white) !important;
}

/* Remove any gap from Elementor page container */
.elementor-page .site-content>.ast-container,
.elementor .site-content,
.elementor-template-full-width .site-content {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* ================================
   NEWSLETTER FORM - Email Input Fix
   ================================ */
/* Target Elementor forms for the newsletter section */
.elementor-form,
.elementor-form-fields-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Make email input field wider and properly sized */
.elementor-field-type-email,
.elementor-field-group-email {
    flex: 1 1 350px !important;
    max-width: 450px !important;
    min-width: 300px !important;
}

.elementor-field-type-email input,
.elementor-field-group-email input,
.elementor-field-textual {
    width: 100% !important;
    min-width: 300px !important;
    padding: 14px 20px !important;
    font-size: 1.1rem !important;
    border-radius: 4px !important;
    color: #000 !important;
}

/* Placeholder text - black color */
.elementor-field-type-email input::placeholder,
.elementor-field-group-email input::placeholder,
.elementor-field-textual::placeholder {
    color: #000 !important;
    opacity: 1 !important;
}

/* Webkit browsers placeholder */
.elementor-field-type-email input::-webkit-input-placeholder,
.elementor-field-group-email input::-webkit-input-placeholder {
    color: #000 !important;
    opacity: 1 !important;
}

/* Firefox placeholder */
.elementor-field-type-email input::-moz-placeholder,
.elementor-field-group-email input::-moz-placeholder {
    color: #000 !important;
    opacity: 1 !important;
}

/* IE/Edge placeholder */
.elementor-field-type-email input:-ms-input-placeholder,
.elementor-field-group-email input:-ms-input-placeholder {
    color: #000 !important;
}

/* Subscribe button - inline and properly sized */
.elementor-field-type-submit,
.elementor-field-group-submit {
    flex: 0 0 auto !important;
}

.elementor-field-type-submit button,
.elementor-button[type="submit"] {
    padding: 12px 24px !important;
    font-size: 1rem !important;
    min-width: 120px !important;
}

/* WPForms support (if used) */
.wpforms-container .wpforms-form {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    align-items: center !important;
    justify-content: center !important;
}

.wpforms-container .wpforms-field {
    flex: 1 1 300px !important;
    max-width: 400px !important;
    margin-bottom: 0 !important;
}

.wpforms-container .wpforms-field input[type="email"],
.wpforms-container .wpforms-field input[type="text"] {
    width: 100% !important;
    min-width: 250px !important;
    padding: 12px 16px !important;
}

.wpforms-container .wpforms-submit-container {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hide field labels in newsletter forms */
.elementor-field-label,
.wpforms-field-label {
    display: none !important;
}

/* WPForms Newsletter Input - Bigger field with black placeholder */
.wpforms-form input[type="email"],
.wpforms-field-container input[type="email"],
input.wpforms-field-medium {
    min-width: 300px !important;
    width: 300px !important;
    padding: 14px 18px !important;
    font-size: 1rem !important;
    color: #000 !important;
}

.wpforms-form input[type="email"]::placeholder,
.wpforms-field-container input[type="email"]::placeholder {
    color: #000 !important;
    opacity: 1 !important;
}

/* ================================
   DESKTOP NAVIGATION (min-width: 922px)
   ================================ */
@media (min-width: 922px) {

    /* Desktop nav - transparent background by default */
    .ast-primary-header,
    .ast-primary-header-bar,
    .main-header-bar,
    .ast-main-header-wrap,
    .ast-builder-menu,
    .ast-builder-header-row,
    .site-header-primary-section-left,
    .site-header-primary-section-center,
    .site-header-primary-section-right {
        background: transparent !important;
        background-color: transparent !important;
    }
    
    /* Override transparent when sticky - only on main header containers, not section containers */
    body.esna-header-sticky .ast-primary-header,
    body.esna-header-sticky .ast-primary-header-bar,
    body.esna-header-sticky .main-header-bar {
        background: rgba(255, 255, 255, 0.95) !important;
        background-color: rgba(255, 255, 255, 0.95) !important;
        background-image: none !important;
    }
    
    /* Section containers - remove background so they inherit from parent */
    body.esna-header-sticky .ast-main-header-wrap,
    body.esna-header-sticky .ast-builder-menu,
    body.esna-header-sticky .ast-builder-header-row,
    body.esna-header-sticky .site-header-primary-section-left,
    body.esna-header-sticky .site-header-primary-section-center,
    body.esna-header-sticky .site-header-primary-section-right,
    body.esna-header-sticky .ast-site-identity,
    body.esna-header-sticky .site-branding {
        background: none !important;
        background-color: transparent !important;
        background-image: none !important;
    }

    /* CRITICAL: Target the exact element with ALL classes combined - highest specificity */
    body.ast-header-sticky-active .ast-primary-header-bar.ast-primary-header.main-header-bar,
    body.ast-header-sticky-active .ast-primary-header-bar.ast-primary-header.main-header-bar.site-header-focus-item,
    body.ast-header-sticky-active div.ast-primary-header-bar.ast-primary-header.main-header-bar,
    body.ast-header-sticky-active div.ast-primary-header-bar.ast-primary-header.main-header-bar.site-header-focus-item,
    .ast-primary-header-bar.ast-primary-header.main-header-bar.esna-sticky,
    .ast-primary-header-bar.ast-primary-header.main-header-bar.site-header-focus-item.esna-sticky,
    .ast-primary-header-bar.ast-primary-header.main-header-bar.ast-sticky-active,
    .ast-primary-header-bar.ast-primary-header.main-header-bar.site-header-focus-item.ast-sticky-active,
    div.ast-primary-header-bar.ast-primary-header.main-header-bar.esna-sticky,
    div.ast-primary-header-bar.ast-primary-header.main-header-bar.site-header-focus-item.esna-sticky,
    div.ast-primary-header-bar.ast-primary-header.main-header-bar.ast-sticky-active,
    div.ast-primary-header-bar.ast-primary-header.main-header-bar.site-header-focus-item.ast-sticky-active {
        background: rgba(255, 255, 255, 0.95) !important;
        background-color: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(10px) saturate(180%) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        opacity: 1 !important;
    }

    /* Desktop Nav links - White default, Gold bold on hover */
    .ast-builder-menu .menu-item a,
    .main-header-menu .menu-item a,
    .ast-nav-menu .menu-item a,
    #ast-hf-menu-1 .menu-item a {
        color: #fff !important;
    }

    .ast-builder-menu .menu-item a:hover,
    .main-header-menu .menu-item a:hover,
    .ast-nav-menu .menu-item a:hover,
    #ast-hf-menu-1 .menu-item a:hover {
        color: var(--esna-gold) !important;
        font-weight: 700 !important;
    }
    
    /* CRITICAL: Override white nav links when sticky - must be inside media query for higher specificity */
    body.esna-header-sticky .ast-builder-menu .menu-item a,
    body.esna-header-sticky .main-header-menu .menu-item a,
    body.esna-header-sticky .ast-nav-menu .menu-item a,
    body.esna-header-sticky .ast-nav-menu a,
    body.esna-header-sticky .ast-builder-menu a,
    body.esna-header-sticky #ast-hf-menu-1 .menu-item a,
    body.esna-header-sticky #ast-hf-menu-1 a {
        color: var(--esna-black) !important;
    }
    
    body.esna-header-sticky .ast-builder-menu .menu-item a:hover,
    body.esna-header-sticky .main-header-menu .menu-item a:hover,
    body.esna-header-sticky .ast-nav-menu .menu-item a:hover,
    body.esna-header-sticky .ast-nav-menu a:hover,
    body.esna-header-sticky .ast-nav-menu .current-menu-item > a {
        color: var(--esna-red) !important;
    }
}

/* ================================
   RESPONSIVE ADJUSTMENTS
   ================================ */
@media (max-width: 768px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
    }

    .esna-hero,
    .wp-block-group.is-style-esna-hero {
        min-height: 70vh;
        padding: 60px 20px !important;
    }

    .is-style-esna-hero h1,
    .is-style-esna-hero-title {
        font-size: 2.5rem !important;
    }

    .esna-team-photo,
    .esna-bio-img img {
        width: 150px;
        height: 150px;
    }

    .esna-focus-grid {
        grid-template-columns: 1fr;
    }

    .entry-content>*,
    .esna-content-wrapper {
        width: 95% !important;
        margin: 20px auto !important;
    }
}

/* ================================
   MOBILE NAVIGATION FIXES (Astra Header Builder)
   ================================ */
@media (max-width: 921px) {

    /* Force proper containment to prevent horizontal overflow */
    html,
    body {
        overflow-x: hidden !important;
    }

    /* Mobile header - fixed width and proper containment */
    .site-header,
    #masthead,
    #ast-mobile-header,
    .ast-mobile-header-wrap,
    .ast-primary-header-bar {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    /* CRITICAL: Force the exact header bar element to respect viewport */
    div.ast-primary-header-bar.ast-primary-header.main-header-bar.site-primary-header-wrap,
    .ast-primary-header-bar.main-header-bar,
    .main-header-bar {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Header container - ensure flex layout keeps toggle in view */
    #ast-mobile-header .ast-row,
    .ast-mobile-header-wrap .ast-row,
    .ast-primary-header-bar .ast-row,
    .ast-builder-grid-row-layout-default,
    .ast-builder-grid-row-tablet-layout-default,
    .ast-builder-grid-row-mobile-layout-default,
    .site-primary-header-wrap,
    .ast-builder-grid-row {
        width: 100% !important;
        max-width: 100vw !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 15px 0 10px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }


    /* Force the grid columns to fit within viewport */
    .ast-builder-grid-row-layout-default>.site-header-primary-section-left,
    .ast-builder-grid-row-layout-default>.site-header-primary-section-center {
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }

    /* Position the toggle section on the right - ALL possible selectors */
    .ast-builder-grid-row-layout-default > .site-header-primary-section-right,
    .ast-builder-grid-row > .site-header-primary-section-right,
    .site-header-primary-section-right,
    .ast-grid-right-section,
    [data-section="section-header-mobile-trigger"] {
        margin-left: auto !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }

    /* Toggle button - positioned in header on the right */
    .menu-toggle,
    .ast-button-wrap .menu-toggle,
    .ast-mobile-menu-buttons .menu-toggle,
    [data-section="section-header-mobile-trigger"] .menu-toggle {
        position: relative !important;
        color: var(--esna-red) !important;
        background: rgba(255, 255, 255, 0.95) !important;
        padding: 8px 10px !important;
        border-radius: 6px !important;
        display: flex !important;
        cursor: pointer !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* Make toggle button wrapper smaller */
    .ast-button-wrap,
    .ast-mobile-menu-buttons,
    [data-section="section-header-mobile-trigger"] {
        padding: 0 !important;
        margin: 0 !important;
    }

    .ast-mobile-svg,
    .ast-icon.icon-menu-bars svg {
        fill: var(--esna-red) !important;
        width: 24px !important;
        height: 24px !important;
    }
}





/* ================================
   CUSTOM MOBILE MENU DRAWER (#esna-mobile-menu-drawer)
   ================================ */

/* Overlay — deeper, more premium blur */
#esna-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999990;
    display: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

#esna-mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Drawer — premium black panel */
#esna-mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: #0A0A0A;
    z-index: 999999;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
    transition: right 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 239, 0, 0.15);
}

#esna-mobile-menu-drawer.active {
    right: 0;
}

/* Only prevent scroll when menu is actually open */
body.esna-menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* Ensure scrolling works when menu is closed */
body:not(.esna-menu-open) {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: relative !important;
}

/* Drawer Header — gold accent bar */
.esna-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    background: #0A0A0A;
    border-bottom: 2px solid #FFEF00;
}

.esna-menu-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #FFEF00;
}

/* Close button */
#esna-menu-close {
    background: none;
    border: 2px solid rgba(255, 239, 0, 0.3);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

#esna-menu-close:hover {
    background: #FFEF00;
    border-color: #FFEF00;
    color: #000000;
}

#esna-menu-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Menu Content — solid black */
.esna-mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    background: #0A0A0A !important;
}

/* Scrollbar styling */
.esna-mobile-menu-content::-webkit-scrollbar {
    width: 3px;
}
.esna-mobile-menu-content::-webkit-scrollbar-track {
    background: #111;
}
.esna-mobile-menu-content::-webkit-scrollbar-thumb {
    background: #FFEF00;
    border-radius: 2px;
}

.esna-mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.esna-mobile-nav-list li {
    margin: 0;
}

.esna-mobile-nav-list a {
    display: block;
    padding: 16px 28px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 3px solid transparent;
    transition: all 0.25s ease;
}

.esna-mobile-nav-list a:hover,
.esna-mobile-nav-list .current-menu-item > a {
    background: rgba(255, 239, 0, 0.06);
    border-left-color: #FFEF00;
    color: #FFEF00;
    padding-left: 34px;
}

/* Submenus */
.esna-mobile-nav-list .sub-menu {
    background: rgba(255, 239, 0, 0.03);
    border-left: 3px solid rgba(255, 239, 0, 0.2);
    margin-left: 0;
    display: none;
}

.esna-mobile-nav-list .sub-menu a {
    font-size: 0.9rem;
    padding-left: 36px;
    letter-spacing: 0.02em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.6);
}

.esna-mobile-nav-list .sub-menu a:hover {
    color: #FFEF00;
    padding-left: 42px;
}

/* Fallback page list styles */
.esna-mobile-menu-content ul {
    list-style: none;
    padding: 0;
}

.esna-mobile-menu-content ul a {
    display: block;
    padding: 16px 28px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 3px solid transparent;
    transition: all 0.25s ease;
}

.esna-mobile-menu-content ul a:hover {
    background: rgba(255, 239, 0, 0.06);
    border-left-color: #FFEF00;
    color: #FFEF00;
    padding-left: 34px;
}

/* REMOVED: Duplicate sticky header rules - now using clean CSS approach above */

/* Remove any gradient backgrounds on sticky */
.ast-sticky-active .site-header::before,
.ast-sticky-active .main-header-bar::before,
.ast-header-sticky-active .site-header::before,
.ast-header-sticky-active .main-header-bar::before,
.esna-sticky .site-header::before,
.esna-sticky .main-header-bar::before {
    display: none !important;
}

/* Force white background - override any inline styles or higher specificity */
body.ast-header-sticky-active .site-header[style*="background"],
body.ast-header-sticky-active .main-header-bar[style*="background"],
body.ast-header-sticky-active .ast-primary-header-bar[style*="background"],
.ast-sticky-active .site-header[style*="background"],
.ast-sticky-active .main-header-bar[style*="background"],
.ast-sticky-active .ast-primary-header-bar[style*="background"],
.esna-sticky .site-header[style*="background"],
.esna-sticky .main-header-bar[style*="background"],
.esna-sticky .ast-primary-header-bar[style*="background"] {
    background: rgba(255, 255, 255, 0.95) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    background-image: none !important;
    opacity: 1 !important;
    backdrop-filter: blur(10px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(180%) !important;
}

/* Target header wrapper elements */
.ast-sticky-active #masthead,
.ast-header-sticky-active #masthead,
.esna-sticky #masthead,
.ast-sticky-active .ast-header-wrap,
.ast-header-sticky-active .ast-header-wrap,
.esna-sticky .ast-header-wrap {
    background: rgba(255, 255, 255, 0.95) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    background-image: none !important;
    opacity: 1 !important;
    backdrop-filter: blur(10px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(180%) !important;
}

/* Nav links - black when sticky - VERY SPECIFIC */
.ast-sticky-active .ast-nav-menu a,
.ast-header-sticky-active .ast-nav-menu a,
.esna-sticky .ast-nav-menu a,
.ast-sticky-active .ast-nav-menu .menu-item a,
.ast-header-sticky-active .ast-nav-menu .menu-item a,
.esna-sticky .ast-nav-menu .menu-item a,
body.ast-header-sticky-active .ast-nav-menu a,
body.ast-header-sticky-active .ast-nav-menu .menu-item a,
body.ast-header-sticky-active .main-header-menu a,
body.ast-header-sticky-active .main-header-menu .menu-item a,
.ast-sticky-active .main-header-menu a,
.ast-sticky-active .main-header-menu .menu-item a,
.esna-sticky .main-header-menu a,
.esna-sticky .main-header-menu .menu-item a,
.ast-sticky-active .ast-builder-menu a,
.ast-sticky-active .ast-builder-menu .menu-item a,
.ast-header-sticky-active .ast-builder-menu a,
.ast-header-sticky-active .ast-builder-menu .menu-item a,
.esna-sticky .ast-builder-menu a,
.esna-sticky .ast-builder-menu .menu-item a,
.ast-sticky-active #ast-hf-menu-1 a,
.ast-sticky-active #ast-hf-menu-1 .menu-item a,
.ast-header-sticky-active #ast-hf-menu-1 a,
.ast-header-sticky-active #ast-hf-menu-1 .menu-item a,
.esna-sticky #ast-hf-menu-1 a,
.esna-sticky #ast-hf-menu-1 .menu-item a {
    color: var(--esna-black) !important;
}

/* Nav links hover - red when sticky */
.ast-sticky-active .ast-nav-menu a:hover,
.ast-header-sticky-active .ast-nav-menu a:hover,
.esna-sticky .ast-nav-menu a:hover,
.ast-sticky-active .ast-nav-menu .current-menu-item > a,
.ast-header-sticky-active .ast-nav-menu .current-menu-item > a,
.esna-sticky .ast-nav-menu .current-menu-item > a {
    color: var(--esna-red) !important;
}

/* Logo - grayscale/black when sticky */
body.esna-header-sticky .custom-logo,
body.esna-header-sticky .custom-logo-link img,
body.esna-header-sticky .ast-site-identity img,
body.esna-header-sticky .site-logo img,
body.esna-header-sticky .ast-header-wrap .ast-site-logo img {
    filter: grayscale(100%) brightness(0) !important;
    -webkit-filter: grayscale(100%) brightness(0) !important;
    opacity: 1 !important;
    transition: filter 0.3s ease !important;
}

/* Site title - black when sticky */
body.esna-header-sticky .ast-site-identity .site-title,
body.esna-header-sticky .ast-site-identity .site-title a {
    color: var(--esna-black) !important;
}

/* Mobile menu toggle - black when sticky */
body.esna-header-sticky .main-header-menu-toggle,
body.esna-header-sticky .ast-mobile-menu-trigger-minimal,
body.esna-header-sticky .menu-toggle,
body.esna-header-sticky .ast-mobile-svg,
body.esna-header-sticky .ast-icon.icon-menu-bars svg,
body.esna-header-sticky .menu-toggle svg {
    color: var(--esna-black) !important;
    fill: var(--esna-black) !important;
}

/* CTA button - keep red but adjust for visibility on white */
.ast-sticky-active .ast-header-button-1 a,
.ast-header-sticky-active .ast-header-button-1 a,
.esna-sticky .ast-header-button-1 a {
    background: var(--esna-red) !important;
    color: var(--esna-white) !important;
}

/* Old styles removed - now using black logo and text on white background when sticky */

/* REMOVED: Conflicting white link rules - now using black links on white background */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ================================
   PRINT STYLES
   ================================ */
@media print {

    .ast-primary-header-bar,
    .ast-footer,
    .esna-event-banner {
        display: none;
    }

    body {
        font-size: 12pt;
        color: black;
    }
}

/* ================================
   ESNA CUSTOM EVENTS LAYOUT
   ================================ */

.esna-events-archive-header {
    background: var(--esna-black);
    color: var(--esna-white);
    padding: 60px 0;
    margin-bottom: 50px;
}

.esna-events-archive-header h1 {
    color: var(--esna-white) !important;
    margin-bottom: 10px;
}

.esna-archive-subtitle {
    font-family: var(--font-accent);
    font-style: italic;
    opacity: 0.8;
}

/* Events Page Hero - Consistent with other pages */
.esna-events-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--esna-black);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: var(--esna-white) !important;
    padding: 100px 20px !important;
    margin-bottom: 0;
}

/* Allow background-image to show through when set */
.esna-events-hero[style*='background-image'] {
    background-color: transparent !important;
}

.esna-events-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(26, 26, 26, 0.7) 0%,
            rgba(114, 47, 55, 0.6) 100%);
    z-index: 0;
}

.esna-events-hero .ast-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
}

.esna-events-hero h1 {
    color: var(--esna-white) !important;
    font-size: clamp(2.5rem, 6vw, 4rem) !important;
    margin: 0 auto 20px auto !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%;
}

.esna-events-hero .esna-archive-subtitle {
    color: var(--esna-cream) !important;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-family: var(--font-accent);
    font-style: italic;
    opacity: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: block;
}

/* Events Page - Primary Content Area */
body.page-template-page-events #primary.content-area.primary,
body.page-template-page-events #primary,
.page-template-page-events #primary.content-area.primary,
.page-template-page-events #primary,
#primary.content-area.primary[style*='padding-bottom'] {
    padding-bottom: 200px !important;
}

/* Events Content Container */
.esna-events-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 60px 30px !important;
}

.esna-events-content .site-main {
    width: 100%;
    margin: 0;
    padding: 0;
}

.esna-events-section {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.esna-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
    width: 100%;
    align-items: stretch;
    justify-items: center;
}

.esna-event-card {
    background: var(--esna-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    margin: 0;
    width: 100%;
    max-width: 100%;
}

.esna-event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.esna-event-image-wrapper {
    position: relative;
    overflow: hidden;
}

.esna-event-thumbnail {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.esna-event-card:hover .esna-event-thumbnail {
    transform: scale(1.05);
}

.esna-event-data {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.esna-event-meta-top {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.esna-event-date {
    display: inline-block;
    background: var(--esna-red);
    color: var(--esna-white) !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.esna-event-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
    font-family: var(--font-heading);
    font-weight: 700;
}

.esna-event-title a {
    color: var(--esna-black);
    text-decoration: none;
    transition: var(--transition);
}

.esna-event-title a:hover {
    color: var(--esna-red);
}

.esna-event-excerpt {
    font-size: 0.95rem;
    color: var(--esna-gray-dark);
    margin-bottom: 20px;
    line-height: 1.7;
    flex-grow: 1;
}

.esna-event-footer {
    margin-top: auto;
}

.esna-event-cta {
    display: inline-block;
    background: var(--esna-red);
    color: var(--esna-white) !important;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: var(--transition);
    width: 100%;
}

.esna-event-cta:hover {
    background: var(--esna-red-dark);
    color: var(--esna-white) !important;
}

/* Latest Events Block Overrides */
.esna-latest-events-wrapper {
    margin: 20px 0;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .esna-events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .esna-events-content {
        padding: 50px 25px !important;
    }
}

@media (max-width: 767px) {
    .esna-events-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 100%;
    }
    
    .esna-events-content {
        padding: 40px 20px !important;
    }
    
    .esna-event-thumbnail {
        height: 200px;
    }
    
    .esna-event-data {
        padding: 20px;
    }
    
    .esna-event-title {
        font-size: 1.3rem;
    }
}

/* ================================
   SINGLE EVENT POST TEMPLATE
   ================================ */

/* Single Event Hero */
.esna-single-event-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--esna-black);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: var(--esna-white) !important;
    padding: 100px 20px !important;
    margin-bottom: 0;
}

.esna-single-event-hero[style*='background-image'] {
    background-color: transparent !important;
}

.esna-single-event-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(26, 26, 26, 0.7) 0%,
            rgba(114, 47, 55, 0.6) 100%);
    z-index: 0;
}

.esna-single-event-hero .ast-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.esna-single-event-hero .esna-event-meta-top {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.esna-single-event-hero .esna-event-date {
    margin-bottom: 0;
    display: inline-block;
}

.esna-single-event-hero h1 {
    color: var(--esna-white) !important;
    font-size: clamp(2.5rem, 6vw, 4rem) !important;
    margin: 0 auto !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* Single Event Content */
.esna-single-event-content {
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 60px 30px 150px 30px !important;
    background: var(--esna-off-white) !important;
}

/* Override Astra's default margin for single event pages - MUST be very specific */
body.single .ast-separate-container #primary,
body.single-post .ast-separate-container #primary,
body.single.has-category-events .ast-separate-container #primary,
body.single .ast-separate-container.ast-left-sidebar #primary,
body.single .ast-separate-container.ast-right-sidebar #primary,
body.single-post .ast-separate-container.ast-left-sidebar #primary,
body.single-post .ast-separate-container.ast-right-sidebar #primary,
.ast-separate-container #primary.single-event-primary,
.ast-separate-container.ast-left-sidebar #primary.single-event-primary,
.ast-separate-container.ast-right-sidebar #primary.single-event-primary {
    margin: 0 !important;
    padding: 0 !important;
}

/* Also target the primary container directly */
.esna-single-event-content #primary,
.esna-single-event-content .content-area.primary,
body.single #primary,
body.single-post #primary {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure footer has proper spacing on single event pages */
body.single .site-footer,
body.single-post .site-footer {
    margin-top: 0 !important;
    padding-top: 60px !important;
}

.esna-single-event {
    background: transparent !important;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.esna-single-event-featured-image {
    width: 100%;
    overflow: hidden;
}

.esna-single-event-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.esna-single-event-body {
    padding: 0;
    background: var(--esna-white);
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-lg) !important;
    border-top-left-radius: var(--radius-lg) !important;
    border-top-right-radius: var(--radius-lg) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 
                0 2px 8px rgba(0, 0, 0, 0.04),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin-bottom: 200px;
    transition: all 0.3s ease;
}

.esna-single-event-body:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 
                0 4px 12px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.esna-single-event-body .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--esna-text);
    margin-bottom: 0;
    padding: 50px 50px 40px 50px;
}

.esna-single-event-body .entry-content p {
    margin-bottom: 1.5rem;
}

.esna-single-event-body .entry-content h2,
.esna-single-event-body .entry-content h3,
.esna-single-event-body .entry-content h4 {
    color: var(--esna-black);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.esna-single-event-body .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

/* Event Meta Information */
.esna-single-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px 50px;
    background: var(--esna-off-white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0;
}

.esna-event-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.esna-event-meta-item strong {
    color: var(--esna-red);
    font-weight: 700;
}

.esna-event-meta-item a {
    color: var(--esna-text);
    text-decoration: none;
}

.esna-event-meta-item a:hover {
    color: var(--esna-red);
}

/* Post Navigation */
.esna-post-navigation {
    margin: 0;
    padding: 40px 50px;
    background: var(--esna-white) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.esna-post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.esna-post-navigation .nav-previous,
.esna-post-navigation .nav-next {
    padding: 20px;
    background: var(--esna-off-white);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.esna-post-navigation .nav-previous:hover,
.esna-post-navigation .nav-next:hover {
    background: var(--esna-cream);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.esna-post-navigation a {
    display: block;
    text-decoration: none;
    color: var(--esna-text);
}

.esna-post-navigation .nav-subtitle {
    display: block;
    font-size: 0.85rem;
    color: var(--esna-red);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.esna-post-navigation .nav-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--esna-black);
    line-height: 1.4;
}

.esna-post-navigation .nav-next {
    text-align: right;
}

/* Back to Events Link */
.esna-back-to-events {
    text-align: center;
    margin: 0;
    padding: 30px 50px;
    background: var(--esna-off-white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.esna-back-to-events .esna-btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--esna-red);
    color: var(--esna-white) !important;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}

.esna-back-to-events .esna-btn-primary:hover {
    background: var(--esna-red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 768px) {
    .esna-single-event-hero {
        min-height: 40vh;
        padding: 60px 20px !important;
    }
    
    .esna-single-event-content {
        padding: 40px 20px 80px 20px !important;
    }
    
    .esna-single-event-body .entry-content {
        padding: 30px 25px 30px 25px;
    }
    
    .esna-single-event-meta {
        padding: 25px;
    }
    
    .esna-post-navigation {
        padding: 30px 25px;
    }
    
    .esna-back-to-events {
        padding: 25px;
    }
    
    .esna-single-event-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .esna-post-navigation .nav-links {
        grid-template-columns: 1fr;
    }
    
    .esna-post-navigation .nav-next {
        text-align: left;
    }
}

/* ============================================
   FINAL OVERRIDE: STICKY HEADER GLASS EFFECT
   ============================================
   These rules MUST come at the end of the file
   to override all previous rules, including:
   - body .site-header (line 96)
   - Desktop media query rules (line 1381)
   - WordPress Customizer-generated CSS
   - Any inline styles or gradient backgrounds
   ============================================ */

/* CRITICAL: Override body .site-header rule - Maximum specificity, loaded last */
/* Also overrides Customizer-generated CSS and inline styles */
body.ast-header-sticky-active body .site-header,
body.ast-header-sticky-active body .main-header-bar,
body.ast-header-sticky-active body .ast-primary-header-bar,
body.ast-header-sticky-active .site-header,
body.ast-header-sticky-active .main-header-bar,
body.ast-header-sticky-active .ast-primary-header-bar,
body.ast-header-sticky-active .ast-primary-header,
body.ast-header-sticky-active .ast-primary-header-bar.ast-primary-header,
body.ast-header-sticky-active .ast-primary-header-bar.ast-primary-header.main-header-bar,
body.ast-header-sticky-active .ast-primary-header-bar.ast-primary-header.main-header-bar.site-header-focus-item,
body.ast-header-sticky-active div.ast-primary-header-bar.ast-primary-header.main-header-bar,
body.ast-header-sticky-active div.ast-primary-header-bar.ast-primary-header.main-header-bar.site-header-focus-item,
body .site-header.esna-sticky,
body .site-header.ast-sticky-active,
body .main-header-bar.esna-sticky,
body .main-header-bar.ast-sticky-active,
body .ast-primary-header-bar.esna-sticky,
body .ast-primary-header-bar.ast-sticky-active,
body .ast-primary-header.esna-sticky,
body .ast-primary-header.ast-sticky-active,
body .ast-primary-header-bar.ast-primary-header.esna-sticky,
body .ast-primary-header-bar.ast-primary-header.ast-sticky-active,
body .ast-primary-header-bar.ast-primary-header.main-header-bar.esna-sticky,
body .ast-primary-header-bar.ast-primary-header.main-header-bar.ast-sticky-active,
body div.ast-primary-header-bar.ast-primary-header.main-header-bar.esna-sticky,
body div.ast-primary-header-bar.ast-primary-header.main-header-bar.site-header-focus-item.esna-sticky,
body div.ast-primary-header-bar.ast-primary-header.main-header-bar.ast-sticky-active,
body div.ast-primary-header-bar.ast-primary-header.main-header-bar.site-header-focus-item.ast-sticky-active,
/* Override Customizer inline styles and gradients */
body.esna-header-sticky .site-header[style*="gradient"],
body.esna-header-sticky .main-header-bar[style*="gradient"],
body.esna-header-sticky .ast-primary-header-bar[style*="gradient"],
body.esna-header-sticky .site-header[style*="background"],
body.esna-header-sticky .main-header-bar[style*="background"],
body.esna-header-sticky .ast-primary-header-bar[style*="background"] {
    background-color: rgba(255, 255, 255, 0.95) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    background-image: none !important;
    /* Force override any gradient from Customizer */
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(180%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    opacity: 1 !important;
}

/* Desktop media query override - also at the end */
@media (min-width: 922px) {
    body.ast-header-sticky-active .ast-primary-header,
    body.ast-header-sticky-active .ast-primary-header-bar,
    body.ast-header-sticky-active .main-header-bar,
    body.ast-header-sticky-active .ast-main-header-wrap,
    body.ast-header-sticky-active .ast-primary-header-bar.ast-primary-header,
    body.ast-header-sticky-active .ast-primary-header-bar.ast-primary-header.main-header-bar,
    body.ast-header-sticky-active .ast-primary-header-bar.ast-primary-header.main-header-bar.site-header-focus-item,
    body.ast-header-sticky-active div.ast-primary-header-bar.ast-primary-header.main-header-bar,
    body.ast-header-sticky-active div.ast-primary-header-bar.ast-primary-header.main-header-bar.site-header-focus-item,
    .ast-primary-header.esna-sticky,
    .ast-primary-header-bar.esna-sticky,
    .main-header-bar.esna-sticky,
    .ast-primary-header-bar.ast-primary-header.esna-sticky,
    .ast-primary-header-bar.ast-primary-header.main-header-bar.esna-sticky,
    .ast-primary-header-bar.ast-primary-header.main-header-bar.site-header-focus-item.esna-sticky,
    .ast-primary-header.ast-sticky-active,
    .ast-primary-header-bar.ast-sticky-active,
    .main-header-bar.ast-sticky-active,
    .ast-primary-header-bar.ast-primary-header.ast-sticky-active,
    .ast-primary-header-bar.ast-primary-header.main-header-bar.ast-sticky-active,
    .ast-primary-header-bar.ast-primary-header.main-header-bar.site-header-focus-item.ast-sticky-active,
    div.ast-primary-header-bar.ast-primary-header.main-header-bar.esna-sticky,
    div.ast-primary-header-bar.ast-primary-header.main-header-bar.site-header-focus-item.esna-sticky,
    div.ast-primary-header-bar.ast-primary-header.main-header-bar.ast-sticky-active,
    div.ast-primary-header-bar.ast-primary-header.main-header-bar.site-header-focus-item.ast-sticky-active {
        background: rgba(255, 255, 255, 0.95) !important;
        background-color: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(10px) saturate(180%) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        opacity: 1 !important;
    }
}

#ast-hf-mobile-menu{
    display:none;
    }
    #astra-footer-menu a{
        color:#000000 !important;
    }
    #ast-scroll-top {
        background-color: var(--esna-gold);
        font-size: 15px;
        border-radius:5px;
        color:#000000 !important;
    }