@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.ecs-wrapper, .ecs-wrapper *, .ecs-wrapper *::before, .ecs-wrapper *::after {
    box-sizing: border-box; margin: 0; padding: 0;
}
.ecs-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
}

.ecs-carousel { position: relative; }

.ecs-slides {
    display: flex;
    gap: 16px;
    overflow: hidden;
}

.ecs-slide {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 0;
}

.ecs-item {
    display: block;
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: #f5f5f5;
}

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

/* ─── Arrows — inside carousel, transparent bg, black border ─── */
.ecs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #0a0a0a;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 0;
}

.ecs-arrow--prev { left: 16px; }
.ecs-arrow--next { right: 16px; }

.ecs-arrow svg {
    width: 14px; height: 14px;
    stroke: #0a0a0a;
    transition: stroke 0.2s ease;
}

.ecs-arrow:hover { background: #0a0a0a; }
.ecs-arrow:hover svg { stroke: #fff; }

/* ═══ TABLET ═══ */
@media (max-width: 1024px) {
    .ecs-item { height: 400px; }
}

/* ═══ MOBILE: 2 visible ═══ */
@media (max-width: 768px) {
    .ecs-slide { flex: 0 0 calc((100% - 12px) / 2); }
    .ecs-slides { gap: 12px; }
    .ecs-item { height: 350px; border-radius: 10px; }
    .ecs-arrow { width: 30px; height: 30px; }
    .ecs-arrow--prev { left: 10px; }
    .ecs-arrow--next { right: 10px; }
    .ecs-arrow svg { width: 12px; height: 12px; }
}

@media (max-width: 480px) {
    .ecs-item { height: 280px; border-radius: 8px; }
    .ecs-arrow { width: 26px; height: 26px; border-width: 1.5px; }
    .ecs-arrow--prev { left: 8px; }
    .ecs-arrow--next { right: 8px; }
    .ecs-arrow svg { width: 10px; height: 10px; }
}
