@use "../abstracts"as vars;

.service-section {
    background-color: #fff;
}

.service-card {
    position: relative;
    border-radius: vars.rem(20);
    overflow: hidden;
    height: vars.rem(450);
    transition: transform 0.3s ease;

    &:hover {
        transform: translateY(vars.rem(-10));

        .service-card__image {
            transform: scale(1.1);
        }
    }

    &__image-box {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;

        &::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 50%;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
        }
    }

    &__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    &__content-wrapper {
        position: absolute;
        bottom: vars.rem(30);
        left: 30px;
        right: 53px;
        width: 90%;
        z-index: 2;

        @media (max-width: 1024px) {
            left: 23px;
        }

        @media (max-width: 767px) {
            left: 7%;
        }
    }

    &__content {
        background-color: #fff;
        padding: vars.rem(20) vars.rem(30);
        border-radius: 100px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 vars.rem(10) vars.rem(30) rgba(0, 0, 0, 0.1);
        margin-right: 33px;
    }

    &__info {
        flex: 1;
    }

    &__subtitle {
        font-family: vars.$font-family-base;
        font-weight: 600;
        font-size: 12px;
        color: vars.$color-secondary;
        text-transform: uppercase;
        margin-bottom: vars.rem(5);
        display: block;
    }

    &__title {
        font-family: vars.$font-family-base;
        font-weight: 700;
        font-size: clamp(15px, 1vw + 1rem, 18px);
        color: vars.$footer-bg;
        margin: 0;
        text-transform: capitalize;
    }

    &__btn {
        width: vars.rem(70);
        height: vars.rem(48);
        background-color: vars.$footer-accent;
        color: #fff;
        border-radius: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: background-color 0.3s ease;
        margin-right: -55px;

        &:hover {
            background-color: vars.$footer-bg;
            color: #fff;
        }

        i {
            font-size: clamp(14px, 0.5vw + 0.75rem, 16px);
        }
    }
}

// Custom Swiper Pagination/Navigation
.service-slider {

    &__controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: vars.rem(20);
        margin-top: vars.rem(40);
        margin-bottom: vars.rem(-6);
    }

    &__pagination {
        position: static !important;
        width: auto !important;
        display: flex !important; // Force display even when locked
        align-items: center;
        justify-content: center;
        gap: vars.rem(2);
        font-family: vars.$font-family-base;
        font-weight: 700;
        font-size: clamp(15px, 1vw + 1rem, 18px);
        color: vars.$footer-bg;

        .swiper-pagination-bullet {
            background: none;
            opacity: 1;
            width: auto;
            height: auto;
            border-radius: 0;
            margin: 0 !important;
            transition: color 0.3s ease;

            &-active {
                color: vars.$footer-accent;
            }

            &:nth-child(n+4) {
                display: none !important;
            }
        }
    }

    &__prev,
    &__next {
        position: static !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        color: vars.$color-secondary !important;
        font-size: clamp(18px, 2vw + 0.5rem, 24px) !important;
        cursor: pointer;
        transition: color 0.3s ease;

        &:after {
            display: none; // Remove Swiper default icon
        }

        &:hover {
            color: vars.$footer-accent !important;
        }
    }

    .swiper-pagination-bullet-custom {
        padding: 0 vars.rem(5);
        cursor: pointer;

        @media (max-width:1199px) {
            font-size: vars.rem(14);
        }

        @media (max-width:991px) {
            font-size: vars.rem(12);
        }
    }
}