.ecs-slider-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
}

.ecs-slider-track-wrap {
    overflow: hidden;
    width: 100%;
}

.ecs-slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    gap: 20px;
    will-change: transform;
}

.ecs-card {
    flex: 0 0 calc((100% - 40px) / 3);
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
}

.ecs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 4:3 Aspect Ratio Container with White Resizing Borders */
.ecs-image-container-43 {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio (3 / 4 = 0.75) */
    background-color: #ffffff;
    overflow: hidden;
}

.ecs-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain; /* Maintain ratio without distortion with white margins */
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff;
}

/* Text details styling */
.ecs-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
    position: relative;
    z-index: 2;
}

.ecs-date {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #ff5a5f;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.ecs-title {
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.ecs-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ecs-title a:hover {
    color: #ff5a5f;
}

.ecs-button {
    margin-top: auto;
    display: inline-block;
    background: #111111;
    color: #ffffff;
    text-align: center;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    cursor: pointer;
}

.ecs-button:hover {
    background: #ff5a5f;
    color: #ffffff;
}

.ecs-nav {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    z-index: 10;
    user-select: none;
}

.ecs-nav:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.ecs-no-events {
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
    color: #666;
    border: 2px dashed #ddd;
    border-radius: 12px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .ecs-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (max-width: 600px) {
    .ecs-card {
        flex: 0 0 100%;
    }
}
