/* Site-wide responsive fixes on top of the theme (style.css / responsive.css). */

/* Health center / provider cards: style.css caps the card at max-height:45vmin with
   overflow:hidden on phones, which clipped the center name and area under the logo. */
@media (max-width: 767px) {
    .feature-block-one .inner-box.inner-hc {
        min-height: 0 !important;
        max-height: none !important;
        height: 100%;
        padding: 16px 10px;
    }
    .feature-block-one .inner-box.inner-hc h3 {
        font-size: 15px;
        margin-top: 10px;
        margin-bottom: 4px;
        white-space: normal;
    }
    .feature-block-one .inner-box.inner-hc p {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* Home app-download banner: two matching cards (QR + label + store badge). */
.cta-section .app-download {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.cta-section .app-download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 200px;
    padding: 20px 18px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
}
.cta-section .app-download-qr {
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    line-height: 0;
}
.cta-section .app-download-qr img,
.cta-section .app-download-qr canvas {
    position: static !important;
    width: 140px !important;
    height: 140px !important;
}
.cta-section .app-download-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    letter-spacing: 0.3px;
}
.cta-section .app-download-badge img {
    position: static !important;
    display: block;
    height: 42px;
    width: auto;
}
@media (max-width: 575px) {
    .cta-section .app-download { gap: 12px; }
    .cta-section .app-download-card { width: calc(50% - 6px); padding: 14px 10px; }
    .cta-section .app-download-qr img,
    .cta-section .app-download-qr canvas { width: 112px !important; height: 112px !important; }
    .cta-section .app-download-badge img { height: 36px; }
}

/* Test cards (listing, home "Common Tests", health-center tests): equal height per row,
   with the tag buttons pinned to the bottom of each card. */
.team-block:has(> .team-block-three.test) {
    display: flex;
    flex-direction: column;
}
.team-block > .team-block-three.test,
.team-block-three.test > .inner-box,
.team-block-three.test .lower-content.ind-test-box {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0; /* flex children default to min-width:auto and could push the card wider than its column */
    max-width: 100%;
}
.team-block-three.test .lower-content.ind-test-box > .featured-info {
    flex: 1 1 auto;
}

/* Packages page: card grid in the style of the partner cards. */
.package-grid { row-gap: 24px; }
.package-grid-item { display: flex; }
.package-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border: 1px solid #eef2f5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 78, 117, 0.06);
    transition: transform 250ms ease, box-shadow 250ms ease;
}
.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 78, 117, 0.12);
}
.package-card-media {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f6fb;
    color: #00A0A3;
    font-size: 42px;
}
.package-card-media img { width: 100%; height: 100%; object-fit: cover; }
.package-card-body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 18px 18px 16px; }
.package-card-title { font-size: 17px; line-height: 1.35; font-weight: 600; color: #004E75; margin: 0 0 8px; }
.package-card-desc { font-size: 14px; line-height: 1.5; color: #6c7a89; margin: 0 0 12px; }
.package-card-meta { font-size: 13px; color: #00A0A3; font-weight: 500; margin-bottom: 14px; }
.package-card-meta i { margin-right: 6px; }
.package-card-footer {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #eef2f5;
}
.package-card-price { display: flex; flex-direction: column; line-height: 1.3; }
.package-card-price del { font-size: 13px; color: #9aa6b2; }
.package-card-price strong { font-size: 18px; color: #004E75; }
.package-card-cta { font-size: 14px; font-weight: 600; color: #00A0A3; white-space: nowrap; }
.package-card:hover .package-card-cta { color: #004E75; }

/* Home page sections: same vertical spacing everywhere, alternating plain / tinted backgrounds.
   nth-of-type counts only <section>s, so sections hidden by @if keep the alternation intact. */
.home-sections > section {
    padding-top: 90px !important;
    padding-bottom: 90px !important;
    margin: 0 !important;
    background-color: #fff !important;
}
.home-sections > section:nth-of-type(even) { background-color: #f3f3f9 !important; }
.home-sections > section > .pattern-layer { display: none; }
/* Theme title blocks add their own bottom margin; keep it consistent */
.home-sections > section .sec-title { margin-bottom: 40px; }

/* App download keeps its original full-width dark band with the phones overlapping its edges (3D look).
   It is a <div>, so nth-of-type(section) alternation skips it. The phones stick out ~45px above and
   below the band, so the neighbouring sections get that much extra space to keep the visible gap equal. */
@media (min-width: 992px) {
    .home-sections > section:has(+ .cta-section) { padding-bottom: 135px !important; }
    .home-sections > .cta-section ~ section { padding-top: 135px !important; }
}
@media (max-width: 991px) {
    .home-sections > section { padding-top: 60px !important; padding-bottom: 60px !important; }
}

/* News cards (home + news page): white card, details arrow green by default and blue on hover
   like the site's buttons */
.news-block-one .inner-box { background: #fff; border-radius: 14px; overflow: hidden; }
.news-block-one .lower-content { background: #fff; }
.news-block-one .lower-content .link a {
    background: #00A0A3 !important;
    color: #fff !important;
    transition: background 200ms ease;
}
.news-block-one .inner-box:hover .lower-content .link a,
.news-block-one .lower-content .link a:hover { background: #004E75 !important; color: #fff !important; }

/* Package details: alternating backgrounds like the home page (details on white, tabs tinted)
   with the same section spacing */
.pkg-details-main, .pkg-details-tabs { padding: 90px 0 !important; }
.pkg-details-main { background: #fff; }
@media (max-width: 991px) {
    .pkg-details-main, .pkg-details-tabs { padding: 60px 0 !important; }
}

/* Package details: price + add/remove box */
.pkg-buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0 24px;
    padding: 18px 20px;
    background: #f7fafb;
    border: 1px solid #e6eef2;
    border-radius: 16px;
}
.pkg-buy-price { display: flex; flex-direction: column; line-height: 1.25; }
.pkg-buy-price del { font-size: 15px; color: #9aa6b2; }
.pkg-buy-price strong { font-size: 28px; font-weight: 700; color: #004E75; }
.pkg-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 190px;
    height: 50px;
    padding: 0 26px;
    border: 0;
    border-radius: 30px;
    background: #00A0A3;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 160, 163, 0.25);
    transition: background 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.pkg-buy-btn:hover { background: #004E75; box-shadow: 0 10px 24px rgba(0, 78, 117, 0.25); transform: translateY(-1px); }
.pkg-buy-btn i { font-size: 14px; color: inherit; margin: 0; }
.pkg-buy-btn .cart-icon-remove { display: none; }
.pkg-buy-btn.is-in-cart { background: #dc3545; box-shadow: 0 10px 24px rgba(220, 53, 69, 0.22); }
.pkg-buy-btn.is-in-cart:hover { background: #b02a37; }
.pkg-buy-btn.is-in-cart .cart-icon-add { display: none; }
.pkg-buy-btn.is-in-cart .cart-icon-remove { display: inline-block; }
.pkg-buy-btn.is-busy { opacity: 0.7; pointer-events: none; }
@media (max-width: 575px) {
    .pkg-buy-btn { width: 100%; }
}

/* Test card popups (description, biomarkers, methodology, conditions, known as, test groups) */
.modal.tests .modal-dialog { max-width: 520px; }
.modal.tests .modal-dialog.modal-lg { max-width: 760px; }
.modal.tests .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 40, 60, 0.25);
}
.modal.tests .modal-header {
    align-items: center;
    padding: 18px 22px;
    background: #fff;
    border-bottom: 1px solid #eef2f5;
}
.modal.tests .modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #004E75;
}
.modal.tests .modal-title > i {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: #e6f6f6; color: #00A0A3; font-size: 15px;
}
.modal-title-count {
    padding: 2px 9px; border-radius: 20px;
    background: #eef2f5; color: #4a5a6a; font-size: 12px; font-weight: 600;
}
.modal.tests .close {
    width: 36px; height: 36px; margin: 0 -4px 0 12px; padding: 0;
    border-radius: 50%; background: #eef2f5 !important; color: #4a5a6a !important;
    font-size: 22px; line-height: 1; opacity: 1; text-shadow: none;
    transition: background 200ms ease, color 200ms ease;
}
.modal.tests .close:hover { background: #004E75 !important; color: #fff !important; }
.modal.tests .close span { color: inherit !important; background: none !important; padding: 0 !important; width: auto !important; border-radius: 0 !important; font-size: 22px; line-height: 1; }
.modal.tests .modal-body { padding: 18px 22px 22px; color: #1d2c3b; }
.test-modal-hint { margin: 0 0 14px; font-size: 13px; color: #6c7a89; }
.test-modal-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.test-modal-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border: 1px solid #bfe7e7; border-radius: 30px;
    background: #f2fbfb; color: #00787a; font-size: 14px; font-weight: 500;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.test-modal-chip i { font-size: 11px; opacity: 0.7; }
.test-modal-chip:hover { background: #004E75; border-color: #004E75; color: #fff; }
.test-modal-list { list-style: none; margin: 0; padding: 0; }
.test-modal-list li {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; margin-bottom: 8px;
    border-radius: 10px; background: #f7fafb; font-size: 15px; color: #1d2c3b;
}
.test-modal-list li:last-child { margin-bottom: 0; }
.test-modal-list li i { color: #00A0A3; }
@media (max-width: 575px) {
    .modal.tests .modal-dialog { margin: 12px; }
}
.modal.tests .modal-body { max-height: 70vh; overflow-y: auto; }
.test-modal-group { padding: 14px; margin-bottom: 12px; border: 1px solid #eef2f5; border-radius: 12px; background: #f7fafb; }
.test-modal-group:last-child { margin-bottom: 0; }
.test-modal-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 15px; font-weight: 700; color: #004E75; }
.test-modal-group-head img { width: 28px; height: 28px; object-fit: contain; }
.test-modal-group-head > i { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #e6f6f6; color: #00A0A3; font-size: 13px; }
.test-modal-group-head .modal-title-count { margin-left: auto; }
.test-modal-tag { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 30px; background: #fff; border: 1px solid #e6eef2; color: #1d2c3b; font-size: 13px; }
.test-modal-list li img { width: 22px; height: 22px; object-fit: contain; }
.test-modal-desc { font-size: 15px; line-height: 1.7; color: #4a5a6a; }
.test-modal-desc p:last-child { margin-bottom: 0; }
.test-modal-desc ul { padding-left: 20px; }
.modal.tests .modal-title { line-height: 1.35; }

/* User dashboard side menu: the theme's panel and square toggle, with
   - the name/date header readable (white text was sitting on a white background)
   - toggle as a tab on the panel's right edge (see below) */
.patient-dashboard .nav_menu.left .upper-box {
    background: linear-gradient(135deg, #004E75 0%, #00A0A3 100%) !important;
    border-radius: 0 14px 0 0;
    padding: 22px 22px 18px !important;
}
.patient-dashboard .nav_menu.left .upper-box h3,
.patient-dashboard .nav_menu.left .upper-box p { color: #fff !important; }
.patient-dashboard .nav_menu.left .upper-box p { opacity: .85; }
/* Panel slides in from the screen edge; the toggle is a tab attached to the panel's right edge, so it
   sits on the screen edge when closed and travels with the panel when open. --ud-menu-offset is the
   distance from the screen edge to the panel's positioning box (set by side-menu.blade.php). */
.patient-dashboard .nav_menu.left { left: calc(-1 * (var(--ud-menu-width, 300px) + var(--ud-menu-offset, 0px))) !important; }
.patient-dashboard .nav_menu.left.active { left: calc(-1 * var(--ud-menu-offset, 0px)) !important; }
.patient-dashboard .nav_menu.left .btn {
    left: 100% !important;
    right: auto !important;
    top: 14px !important;
    margin: 0 !important;
    border-radius: 0 10px 10px 0 !important;
    box-shadow: 4px 6px 16px rgba(0, 40, 60, 0.18) !important;
}

.patient-dashboard .nav_menu.left .upper-box .title-box,
.patient-dashboard .nav_menu.left .upper-box .inner { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; }
.patient-dashboard .nav_menu.left .upper-box h3 { font-size: 18px; line-height: 1.35; margin-bottom: 6px !important; }
.patient-dashboard .nav_menu.left .btn { z-index: 5; }
/* open: the tab looks tucked under the panel edge (overlaps 12px, overlapping part clipped) */
.patient-dashboard .nav_menu.left.active .btn {
    left: calc(100% - 12px) !important;
    clip-path: inset(-24px -24px -24px 12px);
    padding-left: 32px !important;
}
/* the white menu box fills the panel, so the tab sits right against it (it was 285px inside a 300px panel) */
.patient-dashboard .nav_menu.left .profile-box { width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
