/********** Template CSS **********/
:root {
    --primary: #13C5DD;
    --secondary: #354F8E;
    --light: #EFF5F9;
    --dark: #1D2A4D;
}

.btn {
    font-weight: 700;
    transition: .5s;
}

.btn:hover {
    -webkit-box-shadow: 0 8px 6px -6px #555555;
    -moz-box-shadow: 0 8px 6px -6px #555555;
   box-shadow: 0 6px 12px rgba(0,0,0,0.15);

}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px; /* Changed from 0 to 30px to see the rounded bottom */
    border-radius: 50%; /* This makes it a perfect circle */
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Roboto', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}
section {
    padding: 80px 0;
}


@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

.hero-header {
    background: url(../img/hero.jpg) top right no-repeat;
    background-size: cover;
}

.service-item {
    position: relative;
    height: 500px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    transform: rotate(-14deg);
    
}

.service-item .service-icon i {
    transform: rotate(15deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}

.price-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: var(--primary);
    border-radius: 8px 8px 50% 50%;
    z-index: -1;
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next{
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

@media (min-width: 576px) {
    .team-item .row {
        height: 350px;
    }
}

.team-carousel .owl-nav {
    position: absolute;
    padding: 0 45px;
    width: 100%;
    height: 45px;
    top: calc(50% - 22.5px);
    left: 0;
    display: flex;
    justify-content: space-between;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}
.about-img {
    object-fit: cover;
}

.about-image-col {
    min-height: 480px;
}

.about-img {
    object-fit: cover;
}

/* Portfolio / Medical Solutions ONLY */
.portfolio-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 8px;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.portfolio-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}
/* Product Category Cards */
.product-card {
    background: #ffffff;
    border-radius: 16px;
    padding-bottom: 18px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px 16px 0 0; /* top only */
    display: block;
}


.product-card h5 {
    margin: 18px 10px 12px;
    font-weight: 600;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* Scroll Container */
.scroll-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Arrow Buttons */
.scroll-btn {
    background: #ffffff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 2;
}

.scroll-btn.left { margin-right: 10px; }
.scroll-btn.right { margin-left: 10px; }

.scroll-btn i {
    color: var(--primary);
    font-size: 18px;
}

/* Horizontal Scroll */
.product-scroll-wrapper {
    overflow-x: auto;
    flex: 1;
    scroll-behavior: smooth;
}

.product-scroll {
    display: flex;
    gap: 24px;
    padding: 10px 4px;
    scroll-snap-type: x mandatory;
}

/* Cards */
.product-card {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 16px; /* Changed from 16px 16px 0 0 */
    padding-bottom: 16px;
    text-align: center;
    position: relative;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    scroll-snap-align: start;
    transition: transform 0.3s ease;
    overflow: hidden; /* Important: keeps internal content inside the rounded corners */
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px 16px 0 0; /* top only */
    display: block;
}

.product-card h5 {
    margin: 16px 10px 12px;
    font-weight: 600;
}

.product-card:hover {
    transform: translateY(-8px);
}

/* Tags */
.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    border-radius: 20px;
}

.product-tag.new {
    background: #28a745;
}

.product-tag.featured {
    background: #ff9800;
}
/* FORCE HORIZONTAL CARD LAYOUT (ALL TABS) */
.product-scroll {
  display: flex;
}
.product-card {
  min-width: 280px;
  flex-shrink: 0;
}
/* ========================================= */
/* FINAL FIX – PRODUCT SCROLL (ALL CATEGORIES) */
/* ========================================= */

.product-scroll-section {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Scrollable wrapper */
.product-scroll-wrapper {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

/* Hide scrollbar (still scrollable) */
.product-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* FORCE horizontal layout */
.product-scroll {
    display: flex !important;
    flex-direction: row !important;
    gap: 24px;
    width: max-content !important;
    padding: 16px 4px;
}

/* FORCE fixed-width cards */
.product-card {
    min-width: 280px !important;
    max-width: 280px !important;
    flex-shrink: 0 !important;
    position: relative;
}

/* Arrow buttons */
.scroll-btn {
    background: #ffffff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 5;
}

.scroll-btn i {
    color: var(--primary);
    font-size: 18px;
}
/* Horizontal product scroll – mobile + desktop */
.product-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;

    /* Mobile scrolling */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.product-scroll::-webkit-scrollbar {
    display: none; /* Chrome / Safari */
}

.product-card {
    min-width: 260px;
    max-width: 260px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
}
@media (max-width: 576px) {
    .product-card {
        min-width: 220px;
        max-width: 220px;
    }
}
.product-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@media (max-width: 768px) {
    .nav-pills {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .nav-pills .nav-link {
        font-size: 14px;
        padding: 8px 14px;
    }
}

@media (max-width: 576px) {
    .product-category .btn-lg {
        width: 100%;
        max-width: 280px;
    }
}
@media (max-width: 768px) {
    .scroll-arrow {
        display: none;
    }
}
/* Mobile Compatibility Fixes */
@media (max-width: 768px) {
    /* Adjust the Hero/Header section for smaller screens */
    .page-header {
        padding: 40px 0;
        margin-bottom: 20px;
    }

    .page-header h1 {
        font-size: 28px !important;
    }

    /* Make table text smaller so more fits on screen */
    .table {
        font-size: 14px;
    }

    /* Ensure images in the service section scale correctly */
    .service-item img {
        height: auto !important;
        width: 100%;
    }

    /* Adjust the sidebar (Brochure download) to stack correctly */
    .sidebar {
        margin-top: 30px;
    }

    /* Make buttons full-width for easier tapping */
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Extra small devices (Phones) */
@media (max-width: 480px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .table th, .table td {
        padding: 8px 5px;
    }
}
/* =============================== */
/* PRODUCT CATEGORY NAV PILLS */
/* =============================== */

#productTabs .nav-link {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 30px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    margin: 6px;
    transition: all 0.3s ease;
}

/* Hover */
#productTabs .nav-link:hover {
    background: var(--primary);
    color: #ffffff;
}

/* Active button */
#productTabs .nav-link.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(19,197,221,0.35);
}

/* Remove Bootstrap blue outline */
#productTabs .nav-link:focus {
    box-shadow: none;
}

/* Mobile layout */
@media (max-width: 576px) {
    #productTabs {
        flex-wrap: wrap;
    }

    #productTabs .nav-link {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}


