/* ========================================================================== 
   site.css - Updated for: desktop-default hero + media-query mobile/tablet overrides
   ========================================================================== */

/* ---------- Root variables ---------- */
:root {
    --primary: #007bff;
    --accent: #687aff;
    --muted: #6c757d;
    --bg: #ffffff;
    --card-shadow: 0 6px 18px rgba(23,34,56,0.06);
    --radius-lg: 18px;
    --radius-md: 12px;
}

/* ---------- Base ---------- */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f7faf4;
    color: #222;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
}

/* ---------- Links & buttons base ---------- */
a {
    color: var(--primary);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.btn {
    border-radius: 50px;
    padding: 10px 22px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

/* ---------- Navbar ---------- */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 12px 30px;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary) !important;
}

.navbar-nav .nav-link {
    font-size: 1rem;
    margin: 0 8px;
    color: #333 !important;
    font-weight: 500;
}

    .navbar-nav .nav-link:hover {
        color: var(--primary) !important;
    }

.navbar .btn-success {
    padding: 6px 18px;
    font-size: 0.95rem;
}

/* ---------- Hero Section (desktop default) ---------- */
/* Desktop-first: keep your desired desktop size by default */
.hero-section {
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
    border-radius: 12px;
    padding: 60px 40px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

    .hero-section h1 {
        font-size: 2.8rem;
        line-height: 1.3;
        margin-bottom: .5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
        color: var(--muted);
        margin: 0;
    }

/* HERO WRAP - DESKTOP default (>=992px behavior is the default now) */
.hero-wrap {
    height: calc(100vh - 20vh) !important;
    min-height: 420px;
    /* padding: 2.5rem 0; */
    overflow: hidden;
}

    .hero-wrap .carousel {
        height: 500px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: var(--card-shadow);
    }

        .hero-wrap .carousel .carousel-inner,
        .hero-wrap .carousel .carousel-item {
            height: 100%;
            width: 100%;
            overflow: hidden;
        }

            .hero-wrap .carousel .carousel-item img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }

/* Fancy hero border effect - safe usage */
#heroCarousel .carousel-inner {
    padding: 5px;
    border: 5px solid transparent;
    background: linear-gradient(#131219, #131219) padding-box, linear-gradient(var(--angle, 0deg), red, orange, yellow, green, blue, indigo, violet, red) border-box;
    animation: rotate-angle 8s linear infinite;
}

@keyframes rotate-angle {
    to {
        --angle: 360deg;
    }
}

/* ---------- Service Cards ---------- */
.card {
    border-radius: 16px;
    transition: all 0.3s ease-in-out;
    border: none;
    background: #fff;
    box-shadow: var(--card-shadow);
}

    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }

    .card h5, .card h3, .card h4 {
        margin-bottom: 12px;
    }

    .card p {
        font-size: 0.95rem;
        color: var(--muted);
    }

/* ---------- Health Packages ---------- */
.package-card {
    border: 2px solid rgba(0,0,0,0.04);
    border-radius: 18px;
    padding: 20px;
    transition: all 0.3s ease-in-out;
    background: #fff;
}

    .package-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    }

    .package-card h3 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .package-card ul {
        padding-left: 0;
        list-style: none;
    }

    .package-card li {
        margin-bottom: 8px;
        font-size: 0.95rem;
    }

/* ---------- Filters ---------- */
.filters-wrapper {
    margin-top: 1.25rem;
    text-align: center;
}

    .filters-wrapper .nav-pills .nav-link {
        border-radius: 30px;
        padding: .45rem 1rem;
        border: 1px solid rgba(0,123,255,0.18);
        color: var(--primary);
        background: transparent;
    }

        .filters-wrapper .nav-pills .nav-link.active, .filters-wrapper .filter-link.active-filter {
            background: var(--primary);
            color: #fff;
            box-shadow: 0 8px 20px rgba(16,94,255,0.12);
        }

    .filters-wrapper .filter-link {
        display: inline-block;
        margin: .35rem .4rem;
    }


.service-card {
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    background: #fff;
    padding: 16px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap: 18px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 6px 14px;
    border: 1.5px solid #2b9df4;
    color: #2b9df4;
    background: transparent;
    text-decoration: none;
    font-weight: 500;
}

    .pill:hover {
        background: rgba(43,157,244,0.06);
    }

    .pill.active {
        background: #2b9df4;
        color: #fff;
    }

    .pill .count-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 26px;
        height: 20px;
        padding: 0 6px;
        border-radius: 999px;
        background: #fff;
        color: #2b9df4;
        border: 1px solid #cfe9ff;
        font-size: 12px;
        font-weight: 600;
    }

    .pill.active .count-badge {
        background: rgba(255,255,255,0.15);
        color: #fff;
        border-color: rgba(255,255,255,0.2);
    }

.autocomplete-suggestions {
    position: absolute;
    z-index: 2000;
    background: #fff;
    border: 1px solid #ddd;
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
    border-radius: 6px;
}

.autocomplete-item {
    padding: 8px 10px;
    cursor: pointer;
}

    .autocomplete-item.active {
        background: #e9f5ff;
    }

mark {
    background: #ffd54f;
    padding: 0 2px;
    border-radius: 2px;
}

.search-wrap {
    position: relative;
}
/* ---------- Team grid ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1rem;
}

.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto .5rem;
}

@media (max-width: 991.98px) {
    .team-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 575.98px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Equipment cards ---------- */
.equipment-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

/* ---------- Badges, Helpers ---------- */
.badge {
    border-radius: 16px;
    padding: .35rem .6rem;
    font-size: .78rem;
}

.alert-info {
    background: #eef6ff;
    color: #225;
}

.text-muted {
    color: var(--muted);
}

.center {
    text-align: center;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    gap: .25rem;
    padding-left: 0;
    border-radius: .25rem;
}

.page-link {
    color: var(--primary);
    border-radius: .35rem;
    padding: .45rem .65rem;
    border: 1px solid rgba(0,0,0,0.04);
}

.page-item.active .page-link {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---------- Modal: DESKTOP enhanced, mobile default ---------- */
/* Default (desktop-first) behavior kept: desktop modal is centered and body scrolls */
/* Avoid forcing 100% heights globally */
.modal, .modal-dialog, .modal-content {
    height: auto;
    min-height: 0;
}

/* Desktop & up: centered, header/footer fixed, body scrolls */
@media (min-width: 992px) {
    .modal-dialog {
        max-width: 1000px;
        margin: 30px auto;
        display: flex;
        height: calc(100vh - 60px);
        align-items: center;
    }

    .modal-content {
        display: flex;
        flex-direction: column;
        height: 100%;
        max-height: 100%;
        overflow: hidden;
        border-radius: 12px;
    }

    .modal-header, .modal-footer {
        flex: 0 0 auto;
        padding: .75rem 1rem;
    }

    .modal-body {
        flex: 1 1 auto;
        padding: 1rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal {
        overflow: visible;
    }
}

/* Mobile & tablet: bootstrap defaults / overrides for better spacing */
@media (max-width: 991.98px) {
    .modal-dialog {
        max-width: 540px;
        margin: 1.75rem auto;
    }

    .modal-content {
        height: auto;
        max-height: none;
    }

    .modal-body {
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }

    .modal-header {
        padding: 8px 12px;
    }

    .modal-footer {
        padding: 8px 12px;
        display: flex;
        gap: .5rem;
        justify-content: flex-end;
    }
}

/* small-screen footer stacking */
@media (max-width:420px) {
    .modal-footer {
        flex-direction: column;
        gap: .5rem;
        align-items: stretch;
    }
}

.modal-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Small helpers ---------- */
.hover-shadow:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    transition: all 0.3s ease-in-out;
}

.transition {
    transition: all 0.3s ease-in-out;
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-md {
    border-radius: var(--radius-md);
}

.loading-overlay {
    position: relative;
}

    .loading-overlay.loading::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0.7);
        backdrop-filter: blur(2px);
        z-index: 50;
    }

/* ---------- Footer ---------- */
footer {
    background: #0b132b;
    color: #d1d5db;
    padding: 50px 0 20px;
    margin-top: 0;
}

    footer h5 {
        color: #fff;
        font-weight: 600;
        margin-bottom: 18px;
    }

    footer ul {
        list-style: none;
        padding: 0;
    }

        footer ul li {
            margin-bottom: 8px;
        }

            footer ul li a {
                color: #d1d5db;
                text-decoration: none;
                font-size: 0.95rem;
            }

                footer ul li a:hover {
                    color: #fff;
                }

    footer .contact-info p, footer .contact-info a {
        font-size: 0.95rem;
        margin-bottom: 6px;
        color: #d1d5db;
    }

    footer .social-icons a {
        display: inline-block;
        margin-right: 12px;
        font-size: 1.2rem;
        color: #d1d5db;
        transition: .3s;
    }

        footer .social-icons a:hover {
            color: #fff;
        }

    footer .copyright {
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
        font-size: 0.85rem;
        color: #aaa;
    }

/* Accessibility focus */
a:focus, button:focus, input:focus, .btn:focus {
    outline: 3px solid rgba(0,123,255,0.12);
    outline-offset: 2px;
}

/* ---------- MOBILE & TABLET HERO OVERRIDES (max-width: 991.98px) ---------- */
/* These override the desktop default and make hero & carousel appropriate for smaller screens */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 32px 20px;
        margin-bottom: 36px;
    }

        .hero-section h1 {
            font-size: 1.8rem;
        }

    .hero-wrap {
        height: auto !important; /* remove forced vh */
        min-height: 320px;
        padding: 2rem 0;
    }

        .hero-wrap .carousel {
            height: 360px;
        }

            .hero-wrap .carousel .carousel-inner,
            .hero-wrap .carousel .carousel-item {
                height: 100%;
                width: 100%;
                overflow: hidden;
            }

                .hero-wrap .carousel .carousel-item img {
                    height: 100%;
                    object-fit: cover;
                    display: block;
                }
}

/* ---------- MOBILE HERO OVERRIDES (max-width: 575.98px) ---------- */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 24px 14px;
        margin-bottom: 30px;
    }

        .hero-section h1 {
            font-size: 1.6rem;
        }

    .hero-wrap {
        min-height: 240px;
        padding: 1.5rem 0;
    }

        .hero-wrap .carousel {
            height: 260px;
        }
}
.autocomplete-dropdown {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 2000;
    max-height: 260px;
    overflow: auto;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.autocomplete-item {
    padding: 8px 10px;
    cursor: pointer;
}

    .autocomplete-item.active, .autocomplete-item:hover {
        background: #f7f7f7;
    }

.highlight {
    background: #ffeb3b;
    padding: 0 2px;
    border-radius: 2px;
}

.test-name {
    display: block;
}

.dept-btn.active, .spec-btn.active {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}
/* minimal, self-contained styles so no other css changes kavali */
.hm-contact {

}

.hm-contact__wrap {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.hm-contact__left {
    flex: 1 1 420px;
    min-width: 280px;
}

.hm-contact__right {
    flex: 1 1 520px;
    min-width: 280px;
    box-sizing: border-box;
}

.hm-contact h2 {
    color: #07a;
    font-size: 36px;
    margin: 0 0 18px;
}

.hm-contact .contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 18px 0;
}

    .hm-contact .contact-item .icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #f3f9ff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 0 1px rgba(10,10,10,0.02) inset;
        flex-shrink: 0;
    }

        .hm-contact .contact-item .icon svg {
            width: 20px;
            height: 20px;
            fill: #077;
        }

    .hm-contact .contact-item .info {
        color: #333;
        font-size: 15px;
        line-height: 1.4;
    }

        .hm-contact .contact-item .info a {
            color: #077;
            text-decoration: none;
        }

.hm-contact__map {
    width: 100%;
    height: 360px;
    border: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

@media (max-width:880px) {
    .hm-contact {
        padding: 20px;
    }

        .hm-contact h2 {
            font-size: 28px;
        }

    .hm-contact__right {
        order: -1;
    }
    /* map on top for small screens (optional) */
}

.hm-lab,
.hm-contact-section {
    background: #ffffff;
    color: #222;
}

    .hm-lab .section-title,
    .hm-contact-section .section-title {
        color: #0b5ed7;
    }
    /* heading blue */
    .hm-lab .small, .hm-lab div, .hm-contact-section .small, .hm-contact-section .fw-semibold, .hm-contact-section a {
        color: #222 !important;
    }

    .hm-lab .icon-wrap {
        width: 64px;
        height: 64px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: #f3f6ff;
        margin: 0 auto 8px;
    }

    .hm-lab img {
        filter: none;
    }

@media (max-width:880px) {
    .hm-lab .section-title {
        font-size: 26px;
    }
}

/* Equal-height cards + 3-line truncation */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    align-items: stretch; /* make children stretch vertically */
}

/* Each card is a flex column so footer/button sticks to bottom */
.service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    /*min-height: 220px;*/ /* adjust if you want taller cards */
    transition: transform .12s ease, box-shadow .12s ease;
}

    /* optional hover uplift */
    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }

/* Content area grows to push button to bottom */
.card-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* Title styling */
.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.25;
}

/* 3-line clamp for description with ellipsis */
.card-desc {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.35;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* show 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

/* Ensure the action area (button) is at bottom */
.card-actions {
    margin-top: auto; /* pushes to bottom */
    display: flex;
    gap: 8px;
}

/* Button smaller */
.btn-more {
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 999px;
}
#serviceDescription {
    word-break: break-word;
}
/* End of site.css */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e6e6e6;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1100;
    border-radius: 8px;
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
}

    .autocomplete-item:hover, .autocomplete-item.active {
        background: #f5fbff;
    }

.autocomplete-title {
    font-weight: 600;
    color: #1f2937;
}

.autocomplete-also {
    font-size: .92rem;
    color: #6b7280;
    margin-top: 3px;
}

.autocomplete-desc {
    font-size: .85rem;
    color: #9ca3af;
    margin-top: 6px;
}

.d-none {
    display: none !important;
}

.search-wrap {
    position: relative;
}

.gallery-container {
    padding: 2rem 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    transition: .2s;
}

    .gallery-item:hover {
        transform: scale(1.02);
        cursor: pointer;
    }

.gallery-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.gallery-meta {
    text-align: center;
    padding: .5rem;
    display:none;
}

    .gallery-meta .title {
        font-weight: 600;
        color: #111827;
        font-size: .95rem;
    }

    .gallery-meta .date {
        font-size: .85rem;
        color: #6b7280;
    }

@media(max - width:576px) {
    .gallery-thumb {
        height: 120px;
    }
}

/* ===== Fullscreen viewer ===== */
#fsModal {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0,0,0,.95);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

    #fsModal img {
        max-width: 95vw;
        max-height: 90vh;
        object-fit: contain;
        border-radius: 6px;
    }

    #fsModal .close {
        position: absolute;
        top: 15px;
        right: 25px;
        color: #fff;
        font-size: 2rem;
        cursor: pointer;
    }

    #fsModal .arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2.5rem;
        color: #fff;
        cursor: pointer;
        user-select: none;
        opacity: .8;
        transition: .2s;
    }

        #fsModal .arrow:hover {
            opacity: 1;
        }

    #fsModal .prev {
        left: 30px;
    }

    #fsModal .next {
        right: 30px;
    }

    #fsModal .caption {
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        text-align: center;
        color: #e5e7eb;
        font-size: 1rem;
    }
