.service-details-section {
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 0;
}

.service-details-swiper {
    max-width: 1300px;
    width: 100%;
    height: 850px;
    border-radius: 10px;
}

.service-detail-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.service-content-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 60px 40px;
    z-index: 10;
    min-height: 500px;
    display: flex;
    align-items: center;
    margin-left: 50px;
}

/* The complex shape from the reference image */
.service-content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../assets/images/services/shape-img.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: -1;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

/* Using the shape-img from assets as an overlay or frame if needed */
.shape-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    z-index: -1;
    pointer-events: none;
    opacity: 1;
}

.shape-bg img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    /* Allows the shape to stretch to the container */
}

.content-inner {
    text-align: center;
    width: 100%;
}

.service-tag {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-primary-dark);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.service-title {

    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 5px;
    color: var(--brand-primary-dark);
}

.service-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-primary);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.divider {
    width: 50px;
    height: 3px;
    background: var(--brand-primary);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.service-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}

.service-features li {
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li i {
    color: var(--brand-primary);
}

.btn-learn-more {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid var(--brand-primary);
    border-radius: 50px;
    color: var(--brand-primary);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-learn-more:hover {
    background: var(--brand-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Swiper Navigation */
.swiper-nav-container {
    position: absolute;
    bottom: 250px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: none;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    justify-content: space-between;
    pointer-events: none;
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--brand-primary);
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    pointer-events: auto;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
    background: var(--brand-primary);
    color: #fff;
}

/* Thumbnails */
.service-thumbnails {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    z-index: 100;
}

.service-thumbnails .row {
    flex-direction: column;
    gap: 15px;
}

.thumb-item {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    width: 120px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.thumb-item.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    transform: scale(1.1);
}

.thumb-icon {
    font-size: 20px;
    color: var(--brand-primary);
    margin-bottom: 8px;
    transition: all 0.3s;
}

.thumb-item.active .thumb-icon {
    color: #fff;
}

.t-title {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #333;
    transition: all 0.3s;
    line-height: 1.2;
}

.thumb-item.active .t-title {
    color: #fff;
}

@media (max-width: 991px) {
    .service-details-swiper {
        height: auto;
    }

    .service-content-card {
        margin: 50px auto;
        /* Reset desktop margin-left */
        padding: 50px 25px;
        width: 95%;
        max-width: 400px;
        min-height: 450px;
        display: flex;
        align-items: center;
    }

    .service-title {
        font-size: 30px;
    }

    .service-detail-slide {
        padding-bottom: 150px;
    }

    .service-thumbnails {
        display: none;
    }

    .service-thumbnails .row {
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 0 20px;
        display: flex;
        justify-content: flex-start;
        margin: 0;
        gap: 0px;
    }

    .thumb-item {
        min-width: 120px;
        transform: none !important;
        scale: 1 !important;
        /* Reset desktop active scale */
    }

    .swiper-nav-container {
        display: flex;
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        width: 100%;
        padding: 0 20px;
        justify-content: space-between;
        bottom: 50%;
        transform: translateY(50%);
        pointer-events: none;
    }

    .swiper-button-prev-custom,
    .swiper-button-next-custom {
        pointer-events: auto;
        width: 30px;
        height: 30px;
        background: rgba(255, 255, 255, 0.9);
    }
}

@media (max-width: 576px) {
    .service-content-card {
        padding: 30px 20px;
        max-width: 280px;
        min-height: 360px;
        margin: 30px auto;
    }

    .service-tag {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .service-title {
        font-size: 20px;
    }

    .service-subtitle {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .divider {
        margin: 0 auto 15px;
        width: 30px;
    }

    .service-desc {
        font-size: 12px;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .service-features li {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .btn-learn-more {
        display: none;
    }
}