/* =====================================================
   MEDICAL TEST BUTTONS
   ===================================================== */

.mtb-actions {
    width: 100%;
}
.mtb-know-more a {
    text-decoration: none !important;
    color: inherit;
}

.mtb-action-btn {
    display: block;
    width: 50%;
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}


/* =====================================================
   BOOK NOW = BLUE
   ===================================================== */

.mtb-action-btn.mtb-btn-book {
    background: #0d6efd !important;
    color: #ffffff !important;
}

.mtb-action-btn.mtb-btn-book:hover {
    background: #0b5ed7 !important;
    color: #ffffff !important;
}


/* =====================================================
   REMOVE = RED
   ===================================================== */

.mtb-action-btn.mtb-btn-remove {
    background: #dc3545 !important;
    color: #ffffff !important;
}

.mtb-action-btn.mtb-btn-remove:hover {
    background: #bb2d3b !important;
    color: #ffffff !important;
}


/* =====================================================
   LOADING
   ===================================================== */

.mtb-action-btn.mtb-is-loading {
    opacity: 0.7;
    cursor: wait;
}


/* =====================================================
   DISABLED
   ===================================================== */

.mtb-action-btn:disabled {
    pointer-events: none;
}
/*===========================================================2============================================================================*/
/* =====================================================
   MEDICAL TEST NAVIGATION
   ===================================================== */

.medical-nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;

    margin: 0;
    padding: 0;

    list-style: none;
}


/* =====================================================
   MAIN MENU ITEM
   ===================================================== */

.medical-nav-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
}


/* =====================================================
   MAIN MENU LINK
   ===================================================== */

.medical-nav-menu > li > a {
    position: relative;

    display: inline-block;

    padding: 8px 0 !important;

    color: #ffffff !important;
    text-decoration: none !important;

    font-size: 16px;
    font-weight: 500;

    transition: color 0.2s ease;
}


/* =====================================================
   MAIN MENU WHITE UNDERLINE
   ===================================================== */

.medical-nav-menu > li > a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: #ffffff;

    transition: width 0.25s ease;
}


/* Hover underline */

.medical-nav-menu > li:hover > a::after {
    width: 100%;
}


/* Active menu */

.medical-nav-menu > li.current-menu-item > a::after,
.medical-nav-menu > li.current-menu-ancestor > a::after {
    width: 100%;
}


/* =====================================================
   SUB MENU / DROPDOWN
   ===================================================== */

.medical-nav-menu .sub-menu {
    position: absolute;

    top: 100%;
    left: 0;

    min-width: 210px;

    margin: 0;
    padding: 8px 0;

    list-style: none;

    background: #ffffff;

    border-radius: 6px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);

    z-index: 9999;

    /* Hidden initially */
    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}


/* =====================================================
   SHOW SUB MENU ON HOVER
   ===================================================== */

.medical-nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* =====================================================
   SUB MENU ITEMS
   ===================================================== */

.medical-nav-menu .sub-menu li {
    position: relative;

    margin: 0;
    padding: 0;

    list-style: none;
}


/* =====================================================
   SUB MENU LINKS
   ===================================================== */

.medical-nav-menu .sub-menu li a {
    display: block;

    padding: 10px 18px;

    color: #222222 !important;

    background: transparent;

    text-decoration: none !important;

    font-size: 15px;
    font-weight: 500;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


/* Submenu hover */

.medical-nav-menu .sub-menu li a:hover {
    color: #ffffff !important;
    background: #0d6efd;
}


/* =====================================================
   SUB-SUB MENU
   ===================================================== */

.medical-nav-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;

    margin-left: 2px;
}


/* =====================================================
   DROPDOWN ARROW
   ===================================================== */

.medical-nav-menu
> li.menu-item-has-children
> a::before {

    content: "▾";

    margin-left: 7px;

    font-size: 12px;
}


/* Submenu arrow */

.medical-nav-menu
.sub-menu
li.menu-item-has-children
> a::after {

    content: "›";

    float: right;

    margin-left: 15px;

    font-size: 16px;
}


/* =====================================================
   CART
   ===================================================== */

.medical-cart-btn {
    white-space: nowrap;
}


/* =====================================================
   MOBILE NAVIGATION
   ===================================================== */

@media (max-width: 991.98px) {

    .medical-nav-menu {

        display: block;

        width: 100%;

        margin-top: 15px;

        gap: 0;
    }


    .medical-nav-menu > li {
        width: 100%;
    }


    .medical-nav-menu > li > a {

        display: block;

        width: 100%;

        padding: 10px 0 !important;
    }


    /* Mobile submenu */

    .medical-nav-menu .sub-menu {

        position: static;

        width: 100%;
        min-width: 0;

        padding: 5px 0 5px 15px;

        background: transparent;

        border-radius: 0;

        box-shadow: none;

        opacity: 1;
        visibility: visible;

        transform: none;

        display: none;
    }


    /*
     * Mobile par parent menu ko hover
     * karne ke bajaye submenu visible
     */

    .medical-nav-menu li:hover > .sub-menu {
        display: block;
    }


    .medical-nav-menu .sub-menu li a {

        padding: 9px 12px;

        color: #ffffff !important;
    }


    .medical-nav-menu .sub-menu li a:hover {

        color: #ffffff !important;

        background: rgba(255, 255, 255, 0.15);
    }


    .medical-cart-btn {

        margin-top: 12px;

        margin-left: 0 !important;
    }
}
/* =====================================================
   MEDICAL TEST PAGINATION
   ===================================================== */

.mtb-pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 45px 0 30px;
}

.mtb-pagination-wrap ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Previous / Next + Numbers */
.mtb-pagination-wrap a,
.mtb-pagination-wrap span {
    width: 60px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: 0;
    border-radius: 16px;

    background: #f0f0f0;
    color: #2563eb;

    text-decoration: none;

    font-size: 16px;
    font-weight: 500;

    transition: all 0.2s ease;
}

/* Previous / Next buttons */
.mtb-pagination-wrap .prev,
.mtb-pagination-wrap .next {
    width: 50px;
    border-radius: 50%;
    font-size: 30px;
    color: #111;
}

/* Disabled Previous */
.mtb-pagination-wrap .prev {
    color: #c7c7c7;
}

/* Current page */
.mtb-pagination-wrap .current {
    background: #3678d9;
    color: #fff;
}

/* Hover */
.mtb-pagination-wrap a:hover {
    background: #e4e4e4;
    color: #2563eb;
}

/* Current page hover */
.mtb-pagination-wrap .current:hover {
    background: #3678d9;
    color: #fff;
}

/* Dots */
.mtb-pagination-wrap .dots {
    width: 60px;
    background: #f0f0f0;
    color: #2563eb;
}

/* Mobile */
@media (max-width: 576px) {

    .mtb-pagination-wrap {
        margin-top: 30px;
    }

    .mtb-pagination-wrap ul {
        gap: 6px;
    }

    .mtb-pagination-wrap a,
    .mtb-pagination-wrap span {
        width: 48px;
        height: 44px;
        border-radius: 14px;
    }

    .mtb-pagination-wrap .prev,
    .mtb-pagination-wrap .next {
        width: 44px;
    }

}

/* Special Programs Section */
.special-program-section {
    position: relative;
    background: #f7f9fc;
    overflow: hidden;
}

.special-program-title {
    color: #474040;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

/* Program Card */
.program-card {
    display: block;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: #0b6f9f;
    border-radius: 14px;
    padding: 25px 12px 0;
    height: 100%;
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
    overflow: hidden;
}

.program-card:hover {
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

/* Circular Image */
.program-image {
    width: 115px;
    height: 115px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #fff;
    padding: 8px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.6);
}

.program-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Program Name */
.program-card h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 -12px;
    padding: 14px 8px;
    min-height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #07577f;
    border-radius: 0 0 14px 14px;
}

/* Carousel Spacing */
#specialProgramCarousel {
    padding: 0 45px 15px;
}

#specialProgramCarousel .carousel-item {
    padding: 10px 0;
}

/* Navigation Arrows */
#specialProgramCarousel .carousel-control-prev,
#specialProgramCarousel .carousel-control-next {
    width: 38px;
    height: 38px;
    top: 50%;
    transform: translateY(-50%);
    background: #07577f;
    border-radius: 50%;
    opacity: 1;
}

#specialProgramCarousel .carousel-control-prev {
    left: 0;
}

#specialProgramCarousel .carousel-control-next {
    right: 0;
}

#specialProgramCarousel .carousel-control-prev-icon,
#specialProgramCarousel .carousel-control-next-icon {
    width: 18px;
    height: 18px;
}

/* Mobile */
@media (max-width: 767.98px) {
    .special-program-title {
        font-size: 25px;
    }

    .program-card {
        padding: 18px 8px 0;
    }

    .program-image {
        width: 85px;
        height: 85px;
        margin-bottom: 14px;
    }

    .program-card h3 {
        font-size: 13px;
        min-height: 52px;
        padding: 10px 5px;
        margin: 0 -8px;
    }

    #specialProgramCarousel {
        padding: 0 28px 10px;
    }

    #specialProgramCarousel .carousel-control-prev,
    #specialProgramCarousel .carousel-control-next {
        width: 28px;
        height: 28px;
    }

    #specialProgramCarousel .carousel-control-prev-icon,
    #specialProgramCarousel .carousel-control-next-icon {
        width: 13px;
        height: 13px;
    }
}

.mtb-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;

}


/* =========================================================
   SEARCH
========================================================= */

.mtb-search-form {
    position: relative;

    width: 100%;

    max-width: 350px;

    z-index: 9999;

}

.mtb-search-box {

    position: relative;

    width: 100%;

}


.mtb-search-input {

    width: 100%;

    height: 46px;

    padding: 0 48px 0 16px;

    border: 1px solid #ddd;

    border-radius: 8px;

    background: #fff;

    font-size: 14px;

    outline: none;

    transition: 0.2s ease;

}


.mtb-search-input:focus {

    border-color: #198754;

    box-shadow:
        0 0 0 3px rgba(25, 135, 84, 0.08);

}


.mtb-search-icon {

    position: absolute;

    right: 15px;

    top: 50%;

    transform: translateY(-50%);

    color: #777;

    pointer-events: none;

    display: flex;

    align-items: center;

}


/* =========================================================
   SEARCH RESULTS
========================================================= */

.mtb-search-results {

    position: absolute;

    left: 0;

    right: 0;

    top: calc(100% + 5px);

    background: #fff;

    border: 1px solid #e5e5e5;

    border-radius: 8px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.10);

    max-height: 320px;

    overflow-y: auto;

    display: none;

    z-index: 99999;

}


.mtb-search-result-item {

    display: block;

    padding: 12px 15px;

    color: #222;

    text-decoration: none;

    font-size: 14px;

    border-bottom: 1px solid #f1f1f1;

    transition: 0.15s ease;

}


.mtb-search-result-item:last-child {

    border-bottom: none;

}


.mtb-search-result-item:hover {

    background: #f7f7f7;

    color: #198754;

}


.mtb-no-result {

    padding: 15px;

    text-align: center;

    color: #777;

    font-size: 14px;

}


/* =========================================================
   BANNER SLIDER
========================================================= */

.mtb-banner-slider {

    position: relative;

    width: 100%;

    margin: 0 0 35px;

    overflow: hidden;

    border-radius: 14px;

    /*background: #f5f5f5;*/

}


.mtb-slider-track {

    display: flex;

    width: 100%;

    transition: transform 0.5s ease-in-out;

}


.mtb-slide {

    min-width: 100%;

    width: 100%;

    position: relative;

}


.mtb-slide a {

    display: block;

    width: 100%;

}


.mtb-slide img {

    display: block;

    width: 100%;

    height: auto;

    aspect-ratio: 1200 / 350;

    object-fit: cover;

}


/* =========================================================
   SLIDER DOTS
========================================================= */

.mtb-slider-dots {

    position: absolute;

    left: 50%;

    bottom: 12px;

    transform: translateX(-50%);

    display: flex;

    gap: 7px;

    z-index: 5;

}


.mtb-slider-dot {

    width: 9px;

    height: 9px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.65);

    cursor: pointer;

    transition: 0.2s ease;

}


.mtb-slider-dot.active {

    width: 24px;

    border-radius: 10px;

    background: #fff;

}


/* =========================================================
   MOBILE SLIDER
========================================================= */

@media (max-width: 767px) {

    .mtb-header {

        flex-direction: column;

        align-items: stretch;

        gap: 20px;

    }


    .mtb-title {

        text-align: center;

        font-size: 24px;

    }


    .mtb-search-form {

        max-width: 100%;

    }


    .mtb-banner-slider {

        margin-bottom: 25px;

        border-radius: 10px;

    }


    .mtb-slide img {

        aspect-ratio: 800 / 500;

        object-fit: cover;

    }


    .mtb-slider-btn {

        width: 32px;

        height: 32px;

        font-size: 18px;

        line-height: 32px;

    }


    .mtb-slider-prev {

        left: 8px;

    }


    .mtb-slider-next {

        right: 8px;

    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .mtb-title {

        font-size: 21px;

    }


    .mtb-slide img {

        aspect-ratio: 700 / 450;

    }

}


/* =========================================================
   PRODUCT AREA
========================================================= */

.mtb-card {

    overflow: hidden;

}

 * {
            box-sizing: border-box;
        }

        .health-section {
            padding: 60px 0;
            background: #f5f9fc;
            overflow: hidden;
        }

        .health-heading {
            color: #173b57;
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 12px;
        }

        .health-subtitle {
            color: #738496;
            margin-bottom: 38px;
        }

        /* Slider */
        .package-slider {
            width: 100%;
            overflow: hidden;
        }

        .package-track {
            display: flex;
            gap: 20px;
            transition: transform 0.5s ease;
            will-change: transform;
        }

        /* Desktop: 3 cards */
        .package-item {
            flex: 0 0 calc((100% - 40px) / 3);
            min-width: 0;
        }

        /* Card */
        .package-card {
            height: 100%;
            padding: 30px 22px;
            text-align: center;
            background: #ffffff;
            border: 1px solid #e4edf3;
            border-radius: 18px;
            box-shadow: 0 5px 20px rgba(22, 58, 84, 0.06);
            transition: transform 0.3s ease,
                        box-shadow 0.3s ease;
        }

        .package-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 28px rgba(22, 58, 84, 0.12);
        }

        /* Icon */
        .package-icon {
            width: 78px;
            height: 78px;
            margin: 0 auto 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 22px;
            font-size: 32px;
        }

        .icon-allergy {
            background: #e4f5ff;
            color: #1683bd;
        }

        .icon-pregnancy {
            background: #fff0f5;
            color: #dc5b91;
        }

        .icon-onco {
            background: #f0eaff;
            color: #7954c7;
        }

        .icon-swasth {
            background: #e5f8ed;
            color: #239b62;
        }

        .icon-diabetic {
            background: #fff2df;
            color: #e39424;
        }

        /* Text */
        .package-card h4 {
            color: #173b57;
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 14px;
        }

        .package-card p {
            color: #758595;
            font-size: 14px;
            line-height: 1.8;
            min-height: 76px;
            margin-bottom: 22px;
        }

        /* Button */
        .package-btn {
            display: inline-block;
            padding: 11px 22px;
            border-radius: 8px;
            background: #087f8c;
            color: #ffffff;
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
            transition: background 0.3s ease;
        }

        .package-btn:hover {
            background: #075e69;
            color: #ffffff;
        }

        /* No arrows */
        .slider-controls {
            display: none !important;
        }

        /* Tablet: 2 cards */
        @media (max-width: 991px) {
            .package-item {
                flex-basis: calc((100% - 20px) / 2);
            }
        }

        /* Mobile: 1 card */
        @media (max-width: 575px) {
            .health-section {
                padding: 40px 0;
            }

            .health-heading {
                font-size: 26px;
            }

            .package-item {
                flex-basis: 100%;
            }

            .package-card {
                padding: 26px 20px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .package-track {
                transition: none;
            }

            .package-card {
                transition: none;
            }
        }
        
.card-slider {
    --gap: 1rem;
    --per-view: 1;
    --speed: 30s;               /* time for one full loop; increase to slow down */
    overflow: hidden;
    container-type: inline-size;
    padding: .5rem 0;
  }
  @media (min-width: 768px) { .card-slider { --per-view: 2; } }
  @media (min-width: 992px) { .card-slider { --per-view: 3; } }

  .card-track {
    display: flex;
    width: max-content;
    animation: slide var(--speed) linear infinite;
  }
  .card-slider:hover .card-track,
  .card-slider:focus-within .card-track { animation-play-state: paused; }

  .card-group {
    display: flex;
    gap: var(--gap);
    padding-right: var(--gap);
  }
  .card-group > .card {
    flex: 0 0 calc((100cqw - var(--gap) * (var(--per-view) - 1)) / var(--per-view));
  }

  @keyframes slide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  @media (prefers-reduced-motion: reduce) {
    .card-slider { overflow-x: auto; }
    .card-track { animation: none; }
  }

