/* Shared service carousel (diagnostics + IV drips) */
.hc-diag-carousel-head {
    display: block;
    margin-bottom: 32px;
}
.hc-diag-carousel-head-text {
    max-width: 720px;
}
.hc-diag-carousel-nav {
    display: none;
}
.vy-carousel-shell {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.vy-carousel-main {
    flex: 1;
    min-width: 0;
}
.hc-diag-carousel-head-text .hc-h2,
.hc-diag-carousel-head-text .h2-title {
    margin-bottom: 12px;
    text-align: left;
}
.hc-diag-carousel-head-text .section-subtext,
.hc-diag-carousel-head-text .text-gray.carousel-subtext {
    color: #555;
    font-size: 1rem;
    line-height: 1.75;
    margin: 0;
    text-align: left;
}
.vy-carousel-shell .hc-diag-carousel-btn {
    flex-shrink: 0;
}
.hc-diag-carousel-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(14, 37, 61, 0.14);
    background: #fff;
    color: #0e253d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(14, 37, 61, 0.06);
    padding: 0;
}
.hc-diag-carousel-btn:hover {
    background: #ee7f1a;
    border-color: #ee7f1a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(238, 127, 26, 0.28);
}
.hc-diag-carousel-btn svg {
    width: 18px;
    height: 18px;
}
.hc-diag-carousel-wrap {
    position: relative;
}
.hc-diag-carousel.swiper-container,
.drips-carousel.swiper-container {
    width: 100%;
    overflow: hidden;
    padding: 15px;
}
.hc-diag-carousel .swiper-wrapper,
.drips-carousel .swiper-wrapper {
    align-items: stretch;
}
.hc-diag-carousel .swiper-slide,
.drips-carousel .swiper-slide {
    height: auto;
    background: transparent;
    padding: 0;
    box-sizing: border-box;
    box-shadow: none;
}
.hc-diag-slide-card {
    background: #fff;
    border: 1px solid rgba(14, 37, 61, 0.08);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}
.hc-diag-slide-card:hover {
    transform: translateY(-6px);
}
.hc-diag-slide-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 160px;
    overflow: hidden;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    background: #1a3248;
    line-height: 0;
}
.hc-diag-slide-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(14, 37, 61, 0.35) 100%);
    pointer-events: none;
    z-index: 1;
}
.hc-diag-slide-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: left center;
    display: block;
    border-radius: 0;
    transform: scale(1.85);
    transform-origin: left center;
    transition: transform 0.5s ease;
}
.hc-diag-slide-card:hover .hc-diag-slide-cover {
    transform: scale(1.95);
}
.hc-diag-slide-index {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #ee7f1a;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    line-height: 1;
}
.hc-diag-slide-content {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: #fff;
}
.hc-diag-slide-content h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0e253d;
    margin: 0 0 4px;
    line-height: 1.35;
    width: 100%;
    min-height: 2.65em;
}
.hc-diag-slide-tag {
    color: #ee7f1a;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 8px;
    line-height: 1.35;
    width: 100%;
    min-height: 1.2em;
}
.hc-diag-slide-tag:empty {
    display: block;
    visibility: hidden;
}
.hc-diag-slide-desc {
    color: #555;
    font-size: 0.84rem;
    line-height: 1.6;
    margin: 0;
    flex: 1 1 auto;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hc-diag-slide-footer {
    margin-top: 14px;
    padding-top: 0;
}
.hc-diag-slide-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ee7f1a;
    color: #ee7f1a !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    transition: all 0.25s ease;
    background: transparent;
}
.hc-diag-slide-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}
.hc-diag-slide-link:hover {
    background: #ee7f1a;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(238, 127, 26, 0.25);
}
.hc-diag-slide-link:hover svg {
    transform: translateX(2px);
}
.hc-diag-carousel-pagination {
    position: relative !important;
    margin-top: 32px;
    text-align: center;
}
.hc-diag-carousel-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(14, 37, 61, 0.18);
    opacity: 1;
    margin: 0 5px !important;
    transition: all 0.25s ease;
}
.hc-diag-carousel-pagination .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 999px;
    background: #ee7f1a;
}
@media (min-width: 992px) {
    .hc-diag-slide-card {
        min-height: 100%;
    }
    .hc-diag-slide-content {
        min-height: 168px;
    }
}
@media (max-width: 991px) {
    .hc-diag-carousel-head {
        margin-bottom: 24px;
    }
    .vy-carousel-shell {
        gap: 8px;
    }
    .hc-diag-carousel-btn {
        width: 40px;
        height: 40px;
    }
}
@media (max-width: 767px) {
    .hc-diag-carousel-head {
        margin-bottom: 28px;
    }
    .hc-diag-slide-img {
        aspect-ratio: 16 / 11;
        min-height: 185px;
    }
    .hc-diag-slide-cover {
        transform: scale(1.55);
    }
    .hc-diag-slide-card:hover .hc-diag-slide-cover {
        transform: scale(1.62);
    }
    .hc-diag-slide-content {
        padding: 18px 18px 20px;
        min-height: 0;
    }
    .hc-diag-slide-content h3 {
        font-size: 1.05rem;
    }
    .hc-diag-slide-desc {
        font-size: 0.88rem;
    }
}

/* IV drips page overrides */
.iv-drip-carousel-section .hc-diag-carousel-head-text {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.iv-drip-carousel-section .hc-diag-carousel-head-text .h2-title,
.iv-drip-carousel-section .hc-diag-carousel-head-text .carousel-subtext {
    text-align: center;
}
.iv-drip-carousel-section .hc-diag-slide-cover {
    object-position: center center;
    transform: scale(1.15);
    transform-origin: center center;
}
.iv-drip-carousel-section .hc-diag-slide-card:hover .hc-diag-slide-cover {
    transform: scale(1.22);
}
@media (max-width: 767px) {
    .iv-drip-carousel-section .hc-diag-slide-cover {
        transform: scale(1.1);
    }
    .iv-drip-carousel-section .hc-diag-slide-card:hover .hc-diag-slide-cover {
        transform: scale(1.15);
    }
}
