/* ──────────────────────────────────────────────────────────────────
   Events Carousel Styles
   ────────────────────────────────────────────────────────────────── */

.er-events-carousel-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.er-events-swiper {
    width: 100%;
    height: 70vh;
    /* Good default height for full width carousel */
    min-height: 500px;
    background-color: #111;
}

.er-events-slide {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
}

/* Gradient overlay at bottom 20% */
.er-events-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    /* Start fade slightly higher to ensure 20% is dark enough */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 10%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

.er-events-slide-content {
    position: relative;
    z-index: 2;
    padding: 60px 80px;
    max-width: 1200px;
}

/* Date/Time Pill (Gray Box) */
.er-events-slide-datetime {
    display: inline-block;
    background-color: rgba(128, 128, 128, 0.7);
    /* Gray transparent */
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.er-events-slide-datetime .time-pink {
    color: #FF8DA1;
    /* Pink highlight for the time */
}

/* Title (Pink) */
h3.er-events-slide-title {
    color: #FF8DA1;
    /* Pink */
    font-size: 35px !important;
    font-weight: 400;
    /* Regular weight based on the image */
    margin: 0;
    line-height: 1.2;
    font-family: inherit;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    /* subtle shadow for legibility */
}

/* Swiper Navigation Customization */
.er-events-swiper .er-swiper-btn-next,
.er-events-swiper .er-swiper-btn-prev {
    color: #FF8DA1;
    /* Pink arrows */
    transition: transform 0.3s ease;
    transform: scale(0.8);
    /* Slightly smaller arrows */
}

.er-events-swiper .er-swiper-btn-next:hover,
.er-events-swiper .er-swiper-btn-prev:hover {
    transform: scale(1);
}

@media (max-width: 768px) {
    .er-events-swiper {
        height: 60vh;
        min-height: 400px;
    }

    .er-events-slide-content {
        padding: 15px 20px;
    }

    h3.er-events-slide-title {
        font-size: clamp(28px, 6vw, 30px) !important;
    }

    .er-events-slide-datetime {
        font-size: 13px;
        padding: 6px 16px;
        margin-bottom: 12px;
    }

    /* Move arrows slightly inward on mobile */
    .er-events-swiper .er-swiper-btn-prev {
        left: 10px;
    }

    .er-events-swiper .er-swiper-btn-next {
        right: 10px;
    }
}