/* ==========================================================================
   T2026 V2 Homepage Sections
   ========================================================================== */

/* --- Top-level nav overrides --- */
.top-level-nav-item {
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 0.375rem !important;
    padding-top: 0.25rem !important;
    font-size: 1.25rem !important;
    font-weight: 400 !important;
    color: var(--black) !important;
}

.border-skin-site-menu-active {
    border-color: var(--bg-site-menu-active) !important;
}

/* --- Choose the Right Care (kept: pseudo-element overlay & hover effect) --- */
.choose-care-img-wrap {
    box-shadow:
        0 2px 4px 0 rgba(0, 0, 0, 0.06),
        0 4px 6px 0 rgba(0, 0, 0, 0.1);
}

.choose-care-img-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

.choose-care-card-link:hover .choose-care-img {
    transform: scale(1.1);
}

/* --- Top Rated Centres Swiper --- */
.top-rated-centres-swiper .swiper-wrapper {
    align-items: stretch;
    will-change: transform;
}
.top-rated-slide {
    width: 85vw !important;
    height: auto !important;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.top-rated-slide > * {
    height: 100%;
}
.top-rated-centres-swiper .swiper-slide > div {
    height: 100%;
}

.choose-care-swiper .swiper-slide {
    width: 164px;
}
@media (min-width: 768px) {
    .choose-care-swiper .swiper-slide {
        width: 332px;
    }
    .top-rated-slide {
        width: 702px !important;
    }
}
.articles-swiper .swiper-slide {
    width: 550px;
}

@media (min-width: 1024px) {
    .top-rated-slide {
        width: 702px !important;
    }
}

.top-rated-slide > div,
.top-rated-slide > div > div.srp-centre-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.top-rated-centres-swiper .srp-centre-card > div {
    flex: 1;
}

/* CTA button hover */
.top-rated-centres-swiper .bg-fuchsia:hover,
.top-rated-centres-swiper .bg-berry:hover {
    opacity: 0.85;
    transition: opacity 0.2s;
}

/* Isolate nested swipers via touch-action */
.top-rated-centres-swiper .mySwiper {
    touch-action: pan-y !important;
}

/* Hide carousel until Swiper initializes to prevent layout flash */
.top-rated-centres-swiper:not(.swiper-initialized) {
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
}

/* Services section — accordion collapse/expand */
.top-rated-centres-swiper .service-extras-wrapper .service-extras-list {
    max-height: 132px;
    overflow-y: auto;
}
.top-rated-centres-swiper .mobile-service-extras-wrapper .mobile-service-extras-list {
    overflow-y: auto;
}

.top-rated-pagination .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #e3e1dd !important;
    opacity: 1 !important;
    margin: 0 !important;
}
.top-rated-pagination .swiper-pagination-bullet-active {
    background: #5a60ec !important;
}

/* Image slider prev/next buttons */
.top-rated-centres-swiper .custom-button-prev,
.top-rated-centres-swiper .custom-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    transition: opacity 0.2s;
}
.top-rated-centres-swiper .custom-button-prev {
    left: 10px;
}
.top-rated-centres-swiper .custom-button-next {
    right: 10px;
}
.top-rated-centres-swiper .custom-button-prev.swiper-button-disabled,
.top-rated-centres-swiper .custom-button-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* Desktop: hidden by default, appear on hover */
@media (min-width: 768px) {
    .top-rated-centres-swiper .custom-button-prev,
    .top-rated-centres-swiper .custom-button-next {
        opacity: 0;
    }
    .top-rated-centres-swiper .mySwiper:hover .custom-button-prev,
    .top-rated-centres-swiper .mySwiper:hover .custom-button-next {
        opacity: 1;
    }
    .top-rated-centres-swiper .mySwiper:hover .custom-button-prev.swiper-button-disabled,
    .top-rated-centres-swiper .mySwiper:hover .custom-button-next.swiper-button-disabled {
        opacity: 0.35;
        cursor: default;
        pointer-events: none;
    }
}

/* Mobile: always visible, disabled faded */
@media (max-width: 767px) {
    .top-rated-centres-swiper .custom-button-prev.swiper-button-disabled,
    .top-rated-centres-swiper .custom-button-next.swiper-button-disabled {
        opacity: 0.35;
        cursor: default;
        pointer-events: none;
    }
}

/* --- Proudly Section --- */
@media (max-width: 1200px) {
    .proudly-section-inner {
        padding: 0 80px !important;
    }
}

@media (max-width: 768px) {
    .proudly-section-inner {
        flex-direction: column !important;
        padding: 0 20px !important;
        gap: 32px !important;
    }

    .proudly-section-inner > div:last-child {
        width: 280px !important;
        height: auto !important;
    }
}

/* --- Testimonials --- */
.testimonials-section-inner {
    width: 100%;
}

.testimonials-clip-wrap {
    overflow: hidden;
    width: 100%;
}

.testimonials-swiper.swiper {
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    overflow: visible;
}

.testimonials-swiper .swiper-wrapper {
    display: flex;
    align-items: flex-start;
    /* side card wrappers are 401px, center card wrapper is 382px (set by JS) */
}

.testimonials-swiper .swiper-slide {
    flex-shrink: 0;
    box-sizing: border-box;
    width: 380px;
}

@media (min-width: 768px) and (max-width: 1439px) {
    .testimonials-swiper .swiper-slide {
        width: auto;
    }
}

@media (min-width: 1440px) {
    .testimonials-clip-wrap {
        max-width: 1250px;
        padding: 0 20px;
        margin: 0 auto;
    }

    .testimonials-swiper.swiper {
        max-width: 100% !important;
        margin: 0;
    }

    .testimonials-swiper .swiper-slide {
        width: auto;
    }
}

.testimonials-swiper .testimonial-rotate-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 401px;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.4s ease;
}

.testimonials-swiper .testimonial-card {
    height: 382px;
    width: 100%;
    min-width: 0;
    flex-shrink: 0;
}

.testimonials-swiper .testimonial-card > p {
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 2px;
    padding: 12px 0;
}

.testimonials-dots .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    border-radius: 999px !important;
    background: #e3e1dd !important;
    opacity: 1 !important;
}

.testimonials-dots .swiper-pagination-bullet-active {
    background: #5a60ec !important;
}

.t2-v2-testimonial-prev.swiper-button-disabled,
.t2-v2-testimonial-next.swiper-button-disabled {
    opacity: 0.4;
    pointer-events: none;
}
/* 
@media (max-width: 1200px) {
    .testimonials-section-inner {
        padding: 0 80px !important;
    }
} */

@media (max-width: 768px) {
    /* .testimonials-section-inner {
        padding: 0 20px !important;
    } */

    .testimonials-swiper .swiper-slide {
        width: 294px;
    }

    .testimonials-swiper .testimonial-card {
        height: 386px !important;
        width: 100% !important;
    }

    .testimonials-swiper .testimonial-card > p {
        font-size: 16px !important;
    }

    .testimonials-swiper .testimonial-rotate-wrapper {
        padding-top: 0;
    }
}
