.slider-container {
    position: relative;
    max-width: 1700px;
    margin: 28px auto 0;
    padding: 0 15px;
}

/* top progress line */
.slide-progress {
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
    border-radius: 999px;
    position: relative;
    z-index: 9;
    margin: 0 0 14px;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

/* --- Slide card --- */
.item {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: #fff;

    /* ✅ прибрали сірі “уголки” */
    border: none;

    box-shadow:
            0 10px 30px rgba(15, 23, 42, 0.08),
            0 2px 10px rgba(15, 23, 42, 0.04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.slide-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* --- Image block --- */
.slide-image {
    width: 100%;
    height: 260px;              /* mobile/tablet keep the “premium” unified look */
    object-fit: cover;
    display: block;
    position: relative;
    filter: saturate(1.05) contrast(1.02);
}

/* subtle gradient overlay over image */
.item::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    height: 260px;
    background: linear-gradient(180deg, rgba(15,23,42,0.05) 0%, rgba(15,23,42,0.00) 55%, rgba(15,23,42,0.10) 100%);
    pointer-events: none;
    z-index: 1;
}

/* --- Content --- */
.slide-content {
    position: relative;
    z-index: 2;
    padding: 28px 26px 26px;
    background: #ffffff;
    font-family: 'Montserrat', sans-serif;
    text-align: left;
}

/* Title */
.slide-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.2;
    border: none;
    padding: 0;
}

.slide-title::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    border-radius: 999px;
    margin-top: 12px;
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
    opacity: 0.95;
}

.slide-text {
    font-size: 16px;
    color: #475569;
    line-height: 1.65;
    max-width: 720px;
    margin: 14px 0 18px;
}

.slide-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
    color: #fff;
    text-decoration: none;

    padding: 10px 16px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;

    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.22);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.slide-read-more:hover {
    filter: brightness(1.02);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
}

.slide-read-more::after {
    content: "→";
    font-weight: 900;
    opacity: 0.95;
}

.owl-theme .owl-dots {
    position: relative;
    top: 10px;
    text-align: center;
    margin-top: 10px;
}

.owl-theme .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    background: rgba(15,23,42,0.18);
    display: inline-block;
    margin: 0 6px;
    border-radius: 999px;
    transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.owl-dot.active span {
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
    width: 28px;
    transform: translateY(-1px);
}

.owl-carousel .owl-stage {
    padding-bottom: 8px;
}

/* ✅ ТІЛЬКИ ДЛЯ ПК: показати картинку повністю (без обрізання) */
@media (min-width: 768px) {
    .slide-image {
        height: auto;          /* ключове */
        object-fit: contain;   /* ключове */
        background: #fff;      /* щоб не було “порожніх” сірих зон */
    }

    /* бо overlay був під фіксовану висоту 260px */
    .item::before {
        display: none;
    }
}

/* --- Mobile --- */
@media only screen and (max-width: 767px) {
    .slider-container {
        margin-top: 18px;
        padding: 0 12px;
    }

    .slide-image {
        height: 210px;
    }

    .item::before {
        height: 210px;
    }

    .slide-content {
        text-align: left;
    }

    .slide-title {
        font-size: 20px;
    }

    .slide-text {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .slide-read-more {
        width: 90%;
        padding: 11px 14px;
        font-size: 15px;
    }

    .owl-theme .owl-dots {
        top: 6px;
        margin-top: 14px;
    }
}
