/* --- Events Hero --- */
.events-hero {
    height: 80vh;
    background-image: url('https://images.unsplash.com/photo-1511795409834-ef04bbd61622?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    /* Dynamically blends into either the Light or Dark mode background color */
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), var(--bg-primary));
    transition: background 0.4s ease;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}
.events-hero h1 {
    font-size: 5.5rem;
    color: #ffffff !important; /* Force white text over image */
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- Editorial Sticky Layout --- */
.editorial-events {
    position: relative;
    width: 100%;
}

.event-block {
    display: flex;
    min-height: 100vh;
    position: relative;
    border-top: 1px solid var(--border-color);
    transition: border-color 0.4s ease;
}

.reverse-block {
    flex-direction: row-reverse;
}

/* The Image Side */
.sticky-visual {
    width: 50%;
    position: sticky;
    top: 0;
    height: 100vh; /* Fits exactly to viewport */
    overflow: hidden;
}
.sticky-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: filter 0.5s ease;
}
.event-block:hover .sticky-visual img {
    filter: brightness(1);
}

/* The Text Side */
.scroll-content {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 8%;
    background-color: var(--bg-primary);
    transition: background-color 0.4s ease;
}
.content-inner {
    max-width: 500px;
}

.event-eyebrow {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-weight: 600;
}
.content-inner h2 {
    font-size: 4rem;
    line-height: 1.1;
    color: var(--text-heading);
    margin-bottom: 30px;
    transition: color 0.4s ease;
}
.event-desc {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 40px;
    transition: color 0.4s ease;
}
.event-features {
    list-style: none;
    margin-bottom: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    transition: border-color 0.4s ease;
}
.event-features li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.4s ease;
}

.event-btn {
    background-color: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 15px 40px;
}
.event-btn:hover {
    background-color: var(--gold);
    color: var(--bg-primary); /* Swaps dynamically in dark/light mode */
}

/* --- Event CTA --- */
.event-cta {
    padding: 150px 5%;
    text-align: center;
    background-color: var(--bg-primary);
    transition: background-color 0.4s ease;
}
.cta-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background: radial-gradient(circle at center, rgba(220,179,88,0.05) 0%, transparent 100%);
    transition: border-color 0.4s ease;
}
.cta-box h2 {
    font-size: 3rem;
    color: var(--text-heading);
    margin-bottom: 20px;
    transition: color 0.4s ease;
}
.cta-box p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
    transition: color 0.4s ease;
}

/* --- Animations --- */
.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE DESIGN (Events Specific)
   ========================================= */
@media (max-width: 968px) {
    .event-block, .reverse-block {
        flex-direction: column;
    }
    .sticky-visual {
        width: 100%;
        height: 60vh;
        position: relative; /* Remove sticky behavior on mobile */
    }
    .scroll-content {
        width: 100%;
        padding: 80px 5%;
    }
    .content-inner h2 {
        font-size: 3rem;
    }
    .events-hero h1 {
        font-size: 3.5rem;
    }
}