/* ===========================================
   Events Carousel – events-carousel.css v1.1
   Matches the right-hand card layout exactly
   =========================================== */

/* ── Wrapper ── */
.ec-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* ── Swiper overrides ── */
.ec-swiper {
    padding-bottom: 48px !important;
}

/* ── Card ── */
.ec-card {
    background: #C9615A;
    border-radius: 20px;
    padding: 32px 32px 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;

    /* diagonal stripe texture like the original */
    background-image:
        repeating-linear-gradient(
            135deg,
            rgba(255,255,255,0.05) 0px,
            rgba(255,255,255,0.05) 1px,
            transparent 1px,
            transparent 22px
        );
}

/* ── Header: title left, date right ── */
.ec-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.ec-card__title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a1a;
    flex: 1;
    /* allow wrapping like in screenshot */
}

.ec-card__date-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    min-width: 160px;
}

.ec-card__date-label {
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
    opacity: 0.85;
    margin-bottom: 2px;
}

.ec-card__date-value {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
}

/* ── Route image — tall, full-width ── */
.ec-card__image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.18);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ec-card__image--placeholder svg {
    width: 40px;
    height: 40px;
    color: rgba(255,255,255,0.5);
}

/* ── Stats row: label above bold value, NO boxes ── */
.ec-card__stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.ec-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ec-stat__label {
    font-size: 13px;
    font-weight: 400;
    color: #1a1a1a;
    opacity: 0.85;
}

.ec-stat__value {
    font-size: 17px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
}

/* ── Button ── */
.ec-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    padding: 13px 26px;
    align-self: flex-start;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    margin-top: 4px;
}

.ec-card__btn svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.ec-card__btn:hover {
    background: #1a1a1a;
    color: #ffffff;
    transform: translateY(-1px);
}

.ec-card__btn:hover svg {
    transform: translateX(3px);
}

/* ── Swiper nav arrows — inside the swiper so Elementor can't clip them ── */
.ec-nav-prev,
.ec-nav-next {
    color: #1a1a1a !important;
    background: rgba(255, 255, 255, 0.92);
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    top: 42% !important;
    transform: translateY(-50%);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    z-index: 10;
}

.ec-nav-prev {
    left: 16px !important;
}

.ec-nav-next {
    right: 16px !important;
}

.ec-nav-prev::after,
.ec-nav-next::after {
    font-size: 14px !important;
    font-weight: 900;
}

.ec-nav-prev:hover,
.ec-nav-next:hover {
    background: #1a1a1a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.28);
}

/* ── Pagination dots ── */
.ec-pagination .swiper-pagination-bullet {
    background: #C9615A;
    opacity: 0.35;
    width: 8px;
    height: 8px;
    transition: opacity 0.2s, transform 0.2s;
}

.ec-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.3);
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .ec-card {
        padding: 24px 20px;
        border-radius: 14px;
        gap: 16px;
    }

    .ec-card__header {
        flex-direction: column;
        gap: 12px;
    }

    .ec-card__title {
        font-size: 19px;
    }

    .ec-card__date-value {
        font-size: 16px;
    }

    .ec-card__stats {
        gap: 20px;
    }

    .ec-card__btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Error state ── */
.ec-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #856404;
}
