/* Event Slider Styles */
.event-slider-container {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    position: relative;
}

/* Week header */
.event-slider-header {
    margin-bottom: 20px;
    text-align: center;
}

.week-title {
    font-size: 24px;
    color: #2271b1;
    margin: 0;
    font-weight: 600;
}

.event-slider-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.event-slider-inner {
    display: flex;
    transition: transform 0.4s ease-in-out;
    gap: 10px;
}

/* Slide Item */
.event-slide {
    flex: 0 0 calc(20% - 8px); /* 5 items per view by default */
    max-width: calc(20% - 8px);
    box-sizing: border-box;
}

/* Card styles - match the top image */
.event-card {
    position: relative;
    height: 470px; /* Fixed height like in the image */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Image styles */
.event-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

/* Overlay gradient */
.event-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.1) 40%,
        rgba(0,0,0,0.6) 80%,
        rgba(0,0,0,0.8) 100%
    );
    z-index: 1;
}

/* Content positioned at bottom */
.event-content {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    color: #fff;
}

.event-title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-title a {
    color: #fff;
    text-decoration: none !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    transition: opacity 0.3s ease;
    font-size: 20px;
}

.event-title a:hover {
    opacity: 0.9;
}

.event-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin: 0 0 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    font-weight: 400;
}

.event-location {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Date positioned at bottom */
.event-footer {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    z-index: 3;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.event-date {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    text-transform: lowercase;
}

/* No events message */
.no-events-week {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

.no-events-week h3 {
    margin: 0 0 10px;
    color: #333;
}

.no-events-week p {
    margin: 0;
    font-size: 14px;
}

/* Navigation controls */
.event-slider-controls {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 5px;
}

.slider-control {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    pointer-events: auto;
    color: #333;
}

.slider-control:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.slider-control:disabled,
.slider-control.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.slider-control svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Responsive */
@media (max-width: 1200px) {
    .event-slide {
        flex: 0 0 calc(25% - 8px);
        max-width: calc(25% - 8px);
    }
    
    .event-title {
        font-size: 15px;
    }
    
    .week-title {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .event-slide {
        flex: 0 0 calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
    }
    
    .event-title {
        font-size: 14px;
    }
    
    .event-card {
        height: 250px;
    }
    
    .week-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .event-slide {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
    
    .event-slider-container {
        padding: 0 10px;
    }
    
    .slider-control {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .event-slide {
        flex: 0 0 calc(100% - 8px);
        max-width: calc(100% - 8px);
    }
    
    .event-title {
        font-size: 16px;
    }
    
    .event-card {
        height: 280px;
    }
    
    .week-title {
        font-size: 16px;
    }
}