/* ==========================================================================
   codePresta.com · Slideshow — αρχική, αμέσως μετά το header, full width
   native swipe (scroll-snap) · κουκκίδες-μπάρες · βέλη μόνο σε desktop
   ========================================================================== */
.cp-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f7fb;
}

.cp-slider-track {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cp-slider-track::-webkit-scrollbar {
    display: none;
}

.cp-slide {
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.cp-slide-link {
    display: block;
}

.cp-slide picture,
.cp-slide-img {
    display: block;
    width: 100%;
}

.cp-slide-img {
    height: auto;
    aspect-ratio: 3 / 1; /* desktop: 1920×640 */
    object-fit: cover;
}

.cp-slide-legend {
    position: absolute;
    left: clamp(16px, 4vw, 56px);
    bottom: 48px;
    max-width: min(560px, 80%);
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .92);
    font-size: clamp(15px, 1.6vw, 20px);
    font-weight: 700;
    line-height: 1.3;
    color: #1f2937;
}

/* ── χειριστήρια: «χάπι» κάτω στο κέντρο με ‹ μπάρες προόδου › ── */
.cp-slider {
    --cp-interval: 5000ms;
}

.cp-slider-nav {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 2;
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .42);
    transform: translateX(-50%);
}

.cp-slider-arrow {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}

.cp-slider-arrow:hover,
.cp-slider-arrow:focus-visible {
    background: rgba(255, 255, 255, .18);
    outline: 0;
}

.cp-slider-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 0 6px;
}

/* κάθε slide = μπάρα· η ενεργή γεμίζει όσο τρέχει το autoplay */
.cp-slider-dot {
    position: relative;
    width: 28px;
    height: 4px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    transition: width .3s ease;
}

.cp-slider-dot::before {
    content: "";
    position: absolute;
    inset: -10px -2px;
}

.cp-slider-dot span {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left center;
}

.cp-slider-dot.is-active {
    width: 44px;
}

.cp-slider-dot.is-active span {
    animation: cp-slider-progress var(--cp-interval) linear forwards;
}

.cp-slider.is-paused .cp-slider-dot.is-active span {
    animation-play-state: paused;
}

/* χωρίς autoplay (reduced motion): η ενεργή απλώς γεμάτη */
.cp-slider.is-static .cp-slider-dot.is-active span {
    animation: none;
    transform: scaleX(1);
}

@keyframes cp-slider-progress {
    to { transform: scaleX(1); }
}

/* κινητό: μόνο οι μπάρες (swipe), πιο μικρό */
@media (max-width: 767px) {
    .cp-slide-img {
        aspect-ratio: 1 / 1; /* κινητό: 640×640 */
    }

    .cp-slide-legend {
        bottom: 40px;
        padding: 8px 12px;
        border-radius: 10px;
    }

    /* κάτω από την εικόνα: δεν σκεπάζει το κουμπί / κείμενο του banner */
    .cp-slider-nav {
        position: static;
        justify-content: center;
        padding: 12px 0 2px;
        background: none;
        transform: none;
    }

    .cp-slider-dot {
        background: rgba(28, 54, 115, .16);
    }

    .cp-slider-dot span {
        background: #1c3673;
    }

    .cp-slider-arrow {
        display: none;
    }

    .cp-slider-dot {
        width: 20px;
        height: 4px;
    }

    .cp-slider-dot.is-active {
        width: 34px;
    }
}

/* ── pager κάτω από την εικόνα: ‹ 01 ━━━ 04 › (στυλ: theme custom.css .cp-pc-*) ── */
.cp-slider-pager {
    margin-top: 22px;
    padding: 0 16px;
}

@media (max-width: 767px) {
    .cp-slider-pager {
        margin-top: 14px;
    }
}

/* λευκό φόντο (ενιαίο με την «Εύρεση μελανιού» και τις «Μάρκες» από κάτω) */
.cp-slider {
    background: #fff;
}
