/**
 * [STYLE: EVENT SLIDER]
 * Theme: Neo-Brutalist (Sharp edges, hard shadows, high contrast)
 */

.c-block-events {
    padding: 2rem 0 6rem 0; /* Tighter padding at the top */
    background-color: var(--color-mystic, #F1EEE9); 
    overflow: hidden;
}

.c-events-header { margin-bottom: 2rem; }
.c-events-headline {
    font-family: var(--font-headline);
    font-size: 2.5rem;
    color: var(--color-tiber, #003238);
    text-transform: uppercase;
    margin: 0;
}

/* --- TRACK SYSTEM --- */
.c-events-track-wrapper { width: 100%; }

.c-events-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
    padding-bottom: 2rem; 
    cursor: grab;
    
    /* THE FIX: This perfectly centers the 3 cards on desktop! */
    justify-content: center; 
}
.c-events-track::-webkit-scrollbar { display: none; }
.c-events-track.is-grabbing { cursor: grabbing; scroll-snap-type: none; }

/* --- THE CARD --- */
.c-event-card {
    flex: 0 0 340px; /* Made slightly wider to match the design's aspect ratio */
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    
    /* Thicker border and deeper shadow to match the harsh brutalist style */
    border: 2px solid var(--color-tiber, #003238); 
    background-color: white;
    box-shadow: 8px 8px 0px var(--color-tiber, #003238);
    transition: transform 0.2s, box-shadow 0.2s;
}

.c-event-card:hover {
    transform: translate(3px, 3px);
    box-shadow: 5px 5px 0px var(--color-tiber, #003238);
}

/* TOP ROOM: Dark Box */
.c-event-card__top {
    background-color: var(--color-tiber, #003238);
    padding: 1.5rem 1.5rem; 
    
    /* THE FIX: Force a uniform height for all cards and perfectly center the text vertically */
    height: 100px; 
    display: flex;
    flex-direction: column;
    justify-content: center; /* This centers the text so there is no awkward gap at the bottom */
    
    border-bottom: 2px solid var(--color-tiber, #003238);
}

.c-event-card__title {
    color: white;
    font-family: var(--font-headline);
    
    /* THE FIX: Slightly scaled down from 2.5rem so the text flows beautifully without orphaned words */
    font-size: 2.5rem; 
    line-height: 1; /* Tightened line height */
    letter-spacing: -0.01em;
    margin: 0;
    text-transform: uppercase;
    text-align: left;
}

/* BOTTOM ROOM: Light Box */
.c-event-card__bottom {
    background-color: var(--color-mystic, #F1EEE9);
    padding: 1rem 1.5rem; /* Tighter padding to squeeze the elements */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Dates */
.c-event-card__date {
    display: flex;
    flex-direction: row; 
    align-items: baseline;
    gap: 0.2rem; /* Closes the gap between Month and Day */
}

.c-event-month {
    font-family: var(--font-headline); 
    font-size: 1.2rem;
    color: var(--color-tiber, #003238);
    text-transform: uppercase;
}

.c-event-day {
    font-family: var(--font-headline);
    font-size: 3.2rem; /* MASSIVE day number */
    color: var(--color-tiber, #003238);
    line-height: 1;
    position: relative;
    z-index: 2;
}

/* The Yellow Highlighter Stroke */
.c-event-day::after {
    content: '';
    position: absolute;
    bottom: 5px; /* Shifted up slightly */
    left: -2px;
    right: -4px;
    height: 35%; /* Thinner highlighter stroke */
    background-color: var(--color-energy-yellow, #FFE161);
    z-index: -1;
}

/* Flat Red Ticket Button */
.c-event-btn {
    display: inline-block;
    background-color: var(--color-red-orange, #E63024);
    color: white;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.1rem; /* Larger button text */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.5rem; /* Beefier button padding */
    text-decoration: none;
    border: none; 
    box-shadow: none; 
    transition: opacity 0.2s ease;
}

.c-event-btn:hover {
    opacity: 0.85; 
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .c-events-track {
        justify-content: flex-start;
        padding-left: 1.5rem;
    }
    .c-event-card {
        flex: 0 0 85vw; 
    }
    .c-event-card__title {
        font-size: 2rem;
    }
}