/* ── Wrapper ───────────────────────────────────────────────────────────── */
.services-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* ── Splide track ──────────────────────────────────────────────────────── */
.services-slider .splide__track {
    overflow: visible;
}

/* ── Slides ────────────────────────────────────────────────────────────── */

/* ── Card ──────────────────────────────────────────────────────────────── */
.service-card {
    display: block;
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}

/* ── Background image ──────────────────────────────────────────────────── */
.service-card__image {
    position: absolute;
    inset: 0;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.service-card__image--empty {
    background-color: #2a2a2a;
}

.service-card:hover .service-card__image {
    transform: scale(1.04);
}

/* ── Gradient overlay ──────────────────────────────────────────────────── */
.service-card__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.50) 100%);
    pointer-events: none;
}

/* ── Content layer ─────────────────────────────────────────────────────── */
.service-card__content {
    position: absolute;
    inset: 0;
    padding: 24px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    z-index: 1;
}

/* ── Bottom-left: icon + title ─────────────────────────────────────────── */
.service-card__bottom-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.service-card__icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 12px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 50px;
    padding: 19px;
}

.service-card__icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.service-card__title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ── Bottom-right: arrow button ────────────────────────────────────────── */
.service-card__bottom-right {
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
}

.service-card__arrow {
    width: 48px;
    height: 48px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.40);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.service-card:hover .service-card__arrow {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.70);
}

.service-card__arrow svg {
    display: block;
    flex-shrink: 0;
}

/* ── Progress bar pagination ───────────────────────────────────────────── */
.services-slider__pagination {
    max-width: 1240px;
    margin-top: 32px;
}

.services-slider__progress {
    position: relative;
    width: 100%;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    overflow: hidden;
}

.services-slider__progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #000000;
    border-radius: 999px;
    transition: width 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .service-card__title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .service-card__title {
        font-size: 16px;
    }

    .service-card__arrow {
        width: 40px;
        height: 40px;
    }
}
