/* =========================================================
   Our Specialities — responsive snap carousel
   One source of truth (avoid conflicting vw/mobile overrides)
========================================================= */

.our-conditions {
    padding: clamp(72px, 8vw, 120px) 0 !important;
    overflow: hidden;
}

.our-conditions .container {
    overflow: visible;
}

.our-conditions .services-section-header {
    margin-bottom: clamp(22px, 3.5vw, 40px) !important;
    row-gap: 14px;
    align-items: flex-end !important;
}

.our-conditions .services-section-intro {
    max-width: 420px;
    margin-left: auto;
    text-align: left;
}

.our-conditions .services-section-intro p {
    margin-bottom: 16px !important;
    color: rgba(255, 255, 255, 0.78) !important;
}

.our-conditions .services-section-intro .section-btn {
    text-align: left !important;
    margin-top: 0 !important;
}

/* Track + arrow gutters */
.our-conditions .service-carousel-wrapper,
.service-carousel-wrapper {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 56px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.specialitySwiper,
.specialitySwiper.is-marquee,
.specialitySwiper.is-snap,
.specialitySwiper.is-infinite {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding: 8px 2px 18px !important;
    margin: 0 !important;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    box-sizing: border-box !important;
}

.specialitySwiper:active,
.specialitySwiper.is-dragging {
    cursor: grabbing;
}

.specialitySwiper.is-snap .swiper-wrapper,
.specialitySwiper.is-marquee .swiper-wrapper,
.specialitySwiper.is-infinite .swiper-wrapper {
    display: flex !important;
    align-items: stretch !important;
    gap: 20px !important;
    width: max-content !important;
    transform: translate3d(0, 0, 0);
    transition: none;
    will-change: transform;
    box-sizing: border-box !important;
}

.specialitySwiper .swiper-slide,
.specialitySwiper.is-snap .swiper-slide,
.specialitySwiper.is-marquee .swiper-slide,
.specialitySwiper.is-infinite .swiper-slide {
    height: auto !important;
    display: flex !important;
    align-items: stretch !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    /* JS sets exact width; keep a sane fallback only */
    width: 320px;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.specialitySwiper .service-item-prime {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    overflow: hidden !important;
}

.specialitySwiper .service-item-image-prime {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.specialitySwiper .service-item-image-prime > a,
.specialitySwiper .service-item-image-prime figure {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

.specialitySwiper .service-item-image-prime figure {
    aspect-ratio: 16 / 11 !important;
    height: auto !important;
    max-height: 220px !important;
    margin: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #e8eef5;
}

.specialitySwiper .service-item-image-prime figure img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}

.specialitySwiper .service-item-content-prime {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 16px 6px 4px !important;
    text-align: left !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.specialitySwiper .service-item-content-prime h2 {
    margin: 0 0 8px !important;
    padding: 0 !important;
    font-size: clamp(16px, 1.4vw, 19px) !important;
    line-height: 1.3 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    text-align: left !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.specialitySwiper .service-item-content-prime h2 a {
    display: inline !important;
    color: inherit !important;
    text-decoration: none !important;
}

.specialitySwiper .service-item-content-prime p {
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    text-align: left !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden !important;
}

.specialitySwiper .service-learn-more {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding-top: 4px !important;
    align-self: flex-start !important;
    min-height: 20px !important;
    line-height: 1.2 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    color: var(--brand-secondary, #43992a) !important;
}

.specialitySwiper .service-learn-more i {
    font-size: 12px !important;
    line-height: 1 !important;
}

.specialitySwiper .service-index,
.specialitySwiper .service-item-image-prime .icon-box {
    display: none !important;
}

.service-carousel-wrapper > .speciality-prev,
.service-carousel-wrapper > .speciality-next {
    position: absolute !important;
    top: 50% !important;
    bottom: auto !important;
    margin: 0 !important;
    width: 46px !important;
    height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--heading-color, #0a2548) !important;
    border: 1.5px solid rgba(2, 95, 190, 0.14) !important;
    box-shadow: 0 10px 24px rgba(18, 58, 92, 0.12) !important;
    transform: translateY(-50%) !important;
    z-index: 30 !important;
    cursor: pointer;
    padding: 0 !important;
}

.service-carousel-wrapper > .speciality-prev {
    left: 4px !important;
    right: auto !important;
}

.service-carousel-wrapper > .speciality-next {
    right: 4px !important;
    left: auto !important;
}

.service-carousel-wrapper > .speciality-prev:hover,
.service-carousel-wrapper > .speciality-next:hover {
    background: var(--primary-color, #025fbe) !important;
    color: #fff !important;
    border-color: var(--primary-color, #025fbe) !important;
    transform: translateY(-50%) scale(1.05) !important;
}

/* ---------- Large desktop ---------- */
@media (min-width: 1400px) {
    .our-conditions .service-carousel-wrapper,
    .service-carousel-wrapper {
        padding: 0 60px !important;
    }

    .specialitySwiper.is-snap .swiper-wrapper,
    .specialitySwiper.is-marquee .swiper-wrapper,
    .specialitySwiper.is-infinite .swiper-wrapper {
        gap: 24px !important;
    }
}

/* ---------- Laptop ---------- */
@media (max-width: 1199px) {
    .our-conditions .service-carousel-wrapper,
    .service-carousel-wrapper {
        padding: 0 52px !important;
    }

    .specialitySwiper.is-snap .swiper-wrapper,
    .specialitySwiper.is-marquee .swiper-wrapper,
    .specialitySwiper.is-infinite .swiper-wrapper {
        gap: 16px !important;
    }

    .specialitySwiper .service-item-image-prime figure {
        max-height: 190px !important;
        aspect-ratio: 16 / 10 !important;
    }
}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
    .our-conditions {
        padding: 64px 0 !important;
    }

    .our-conditions .services-section-header {
        align-items: flex-start !important;
        margin-bottom: 22px !important;
        row-gap: 12px;
    }

    .our-conditions .section-title h2 {
        font-size: clamp(26px, 4.4vw, 34px) !important;
        line-height: 1.2 !important;
    }

    .our-conditions .services-section-intro {
        max-width: 100% !important;
        margin: 4px 0 0 !important;
    }

    .our-conditions .services-section-intro p {
        margin-bottom: 14px !important;
        font-size: 15px !important;
    }

    .our-conditions .service-carousel-wrapper,
    .service-carousel-wrapper {
        padding: 0 48px !important;
    }

    .service-carousel-wrapper > .speciality-prev,
    .service-carousel-wrapper > .speciality-next {
        width: 42px !important;
        height: 42px !important;
    }

    .specialitySwiper .service-item-prime {
        padding: 12px !important;
        border-radius: 18px !important;
    }

    .specialitySwiper .service-item-image-prime figure {
        max-height: 168px !important;
        aspect-ratio: 16 / 10 !important;
        border-radius: 12px !important;
    }

    .specialitySwiper .service-item-content-prime {
        padding: 14px 4px 2px !important;
    }

    .specialitySwiper .service-item-content-prime h2 {
        font-size: 17px !important;
        margin-bottom: 6px !important;
    }

    .specialitySwiper .service-item-content-prime p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 10px !important;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .our-conditions {
        padding: 56px 0 72px !important;
    }

    .our-conditions .services-section-header {
        margin-bottom: 18px !important;
    }

    .our-conditions .section-title h2 {
        font-size: clamp(24px, 7vw, 30px) !important;
    }

    .our-conditions .services-section-intro,
    .our-conditions .services-section-intro p {
        max-width: 100% !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    /* Arrow gutters that fit narrow phones without clipping the card */
    .our-conditions .service-carousel-wrapper,
    .service-carousel-wrapper {
        padding: 0 44px !important;
        max-width: 100% !important;
    }

    .specialitySwiper,
    .specialitySwiper.is-marquee,
    .specialitySwiper.is-snap,
    .specialitySwiper.is-infinite {
        padding: 4px 0 14px !important;
    }

    .specialitySwiper.is-snap .swiper-wrapper,
    .specialitySwiper.is-marquee .swiper-wrapper,
    .specialitySwiper.is-infinite .swiper-wrapper {
        gap: 12px !important;
    }

    .specialitySwiper .swiper-slide,
    .specialitySwiper.is-snap .swiper-slide,
    .specialitySwiper.is-marquee .swiper-slide,
    .specialitySwiper.is-infinite .swiper-slide {
        /* Let JS set exact track width — never use 100vw here */
        width: 100% !important;
        max-width: 100% !important;
    }

    .service-carousel-wrapper > .speciality-prev,
    .service-carousel-wrapper > .speciality-next {
        width: 38px !important;
        height: 38px !important;
        z-index: 30 !important;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18) !important;
    }

    .service-carousel-wrapper > .speciality-prev {
        left: 2px !important;
    }

    .service-carousel-wrapper > .speciality-next {
        right: 2px !important;
    }

    .specialitySwiper .service-item-prime {
        padding: 12px !important;
        border-radius: 16px !important;
    }

    .specialitySwiper .service-item-image-prime figure {
        aspect-ratio: 16 / 10 !important;
        max-height: 160px !important;
        border-radius: 12px !important;
    }

    .specialitySwiper .service-item-content-prime {
        padding: 14px 4px 2px !important;
    }

    .specialitySwiper .service-item-content-prime h2 {
        font-size: 16px !important;
        margin-bottom: 6px !important;
    }

    .specialitySwiper .service-item-content-prime p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 8px !important;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .specialitySwiper .service-learn-more {
        font-size: 12px !important;
        padding-top: 2px !important;
    }
}

/* ---------- Small phones ---------- */
@media (max-width: 575px) {
    .our-conditions {
        padding: 48px 0 80px !important; /* room above floating contact FABs */
    }

    .our-conditions .service-carousel-wrapper,
    .service-carousel-wrapper {
        padding: 0 40px !important;
    }

    .service-carousel-wrapper > .speciality-prev,
    .service-carousel-wrapper > .speciality-next {
        width: 36px !important;
        height: 36px !important;
    }

    .specialitySwiper .service-item-prime {
        padding: 10px !important;
    }

    .specialitySwiper .service-item-image-prime figure {
        max-height: 140px !important;
        aspect-ratio: 16 / 10 !important;
    }

    .specialitySwiper .service-item-content-prime {
        padding: 12px 2px 0 !important;
    }

    .specialitySwiper .service-item-content-prime h2 {
        font-size: 15px !important;
    }

    .specialitySwiper .service-item-content-prime p {
        font-size: 12.5px !important;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        margin-bottom: 6px !important;
    }
}

@media (max-width: 380px) {
    .our-conditions .service-carousel-wrapper,
    .service-carousel-wrapper {
        padding: 0 36px !important;
    }

    .service-carousel-wrapper > .speciality-prev,
    .service-carousel-wrapper > .speciality-next {
        width: 34px !important;
        height: 34px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .specialitySwiper .service-item-prime,
    .specialitySwiper .service-learn-more,
    .service-carousel-wrapper > .speciality-prev,
    .service-carousel-wrapper > .speciality-next {
        transition: none !important;
    }
}
