/* --- Events Page Specific Styling --- */

:root {
    --gold: #c5a059;
    --primary-orange: #ff8c00;
    --dark: #1a1a1a;
}

.events-page {
    background-color: #f9f9f7;
    font-family: 'Inter', sans-serif;
}

/* --- Hero Section with your Image --- */
.events-hero {
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Path updated to your local file structure */
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('../assets/Events/Events.webp') center/cover no-repeat;
    animation: heroZoom 20s infinite alternate ease-in-out;
}

.hero-content {
    background: rgba(255, 140, 0, 0.12); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 50px 80px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #fff;
    margin: 0;
}

.hero-content h1 span {
    color: #fff;
    position: relative;
}

.hero-content h1 span::after {
    content: "";
    position: absolute;
    left: 0; bottom: 5px;
    width: 100%; height: 3px;
    transform: scaleX(1);
}

.subtitle {
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 0.9rem;
    color: var(--gold);
    display: block;
    margin-bottom: 15px;
}

/* --- Intro Section --- */
.events-intro {
    text-align: center;
    padding: 100px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.intro-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
}

.divider-gold {
    width: 80px; height: 2px;
    background: var(--gold);
    margin: 40px auto;
}

/* --- Event Cards --- */
.events-container {
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.event-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease;
}

.event-card:hover {
    transform: translateY(-10px);
}

.event-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.event-info {
    padding: 30px;
    text-align: center;
}

.event-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.event-info p {
    color: #666;
    line-height: 1.7;
}

/* --- Animations --- */
@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .events-grid { grid-template-columns: 1fr; }
}


/* Class to hide the loader via JS */
#loading-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}