/* Shared HealthBhi polish, chatbot, and conversion helpers */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body.hb-modal-open {
    overflow: hidden;
}

footer {
    overflow-x: clip;
}

.hb-cta-link {
    text-decoration: none;
}

.hb-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.hb-modal-actions .btn,
.hb-modal-actions .book-btn {
    width: 100%;
    min-height: 44px;
}

.hb-modal-actions .hb-whatsapp-btn {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
}

.hb-modal-actions .hb-whatsapp-btn:hover {
    background: #1fb558;
    border-color: #1fb558;
    color: #fff;
}

.hb-detail-list {
    display: grid;
    gap: 8px;
    margin: 14px 0 18px;
}

.hb-detail-item {
    background: #f8fafc;
    border: 1px solid #e6eef7;
    border-radius: 12px;
    padding: 10px 12px;
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.55;
}

.hb-detail-item strong {
    display: block;
    color: #041B4D;
    margin-bottom: 3px;
}

.hb-doctor-profile {
    background: #ffffff;
    border: 1px solid #e5eef7;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(4, 27, 77, 0.06);
    overflow: hidden;
}

.hb-doctor-portrait {
    min-height: 100%;
    background: linear-gradient(135deg, #e0f2fe 0%, #eef3ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
}

.hb-doctor-photo-link {
    display: flex;
    min-height: 300px;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: linear-gradient(135deg, #e0f2fe 0%, #eef3ff 100%);
}

.hb-doctor-photo-link img {
    display: block;
    max-width: 100%;
    max-height: 440px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}

.hb-about-proof { background: #f8fbff; border: 1px solid #e3eef9; }
.hb-about-metric { min-height: 108px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.hb-about-metric strong { color: #0ea5e9; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1; }
.hb-about-metric span { color: #475569; font-size: .82rem; font-weight: 700; }
.hb-cashless-panel { background: #08265f; color: #fff; }
.hb-cashless-panel p { color: rgba(255,255,255,.72); }
.hb-insurer-list { display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); gap: 8px; min-width: min(100%, 360px); }
.hb-insurer-list span { display: grid; min-height: 42px; place-items: center; padding: 6px 10px; border-radius: 7px; background: #fff; color: #123267; font-size: .75rem; font-weight: 800; text-align: center; }

@media (max-width: 575px) {
    .hb-insurer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.hb-doctor-portrait .hb-avatar {
    width: min(240px, 70vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fff;
    color: #0ea5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(4rem, 12vw, 7rem);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.18);
}

.hb-profile-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hb-profile-meta .hb-meta-card {
    background: #f8fbff;
    border: 1px solid #e3eef9;
    border-radius: 14px;
    padding: 14px;
}

.hb-profile-meta span {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.hb-profile-meta strong {
    color: #041B4D;
    font-size: 0.92rem;
    line-height: 1.4;
}

.hb-doctor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.hb-partner-card {
    background: #fff;
    border: 1px solid #e4eaf5;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 28px rgba(4, 27, 77, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hb-partner-card:hover {
    transform: translateY(-4px);
    border-color: #0ea5e9;
    box-shadow: 0 16px 38px rgba(14, 165, 233, 0.12);
}

.hb-partner-card h3 {
    color: #041B4D;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.hb-partner-card .hb-specialty {
    color: #0ea5e9;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
}

.hb-partner-card p {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.55;
    margin-bottom: 8px;
}

.hb-chat-launcher {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: #0ea5e9;
    color: #fff;
    box-shadow: 0 16px 35px rgba(14, 165, 233, 0.34);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1070;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hb-chat-launcher:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(14, 165, 233, 0.42);
}

.hb-chat-launcher i {
    font-size: 1.35rem;
}

.hb-chatbot {
    position: fixed;
    right: 22px;
    bottom: 92px;
    width: min(390px, calc(100vw - 28px));
    max-height: min(680px, calc(100vh - 122px));
    background: #fff;
    border: 1px solid #dfeaf5;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(4, 27, 77, 0.22);
    z-index: 1071;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(0.98);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.hb-chatbot.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.hb-chat-head {
    background: linear-gradient(135deg, #041B4D 0%, #0ea5e9 100%);
    color: #fff;
    padding: 18px 18px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.hb-chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hb-chat-title .hb-chat-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255,255,255,0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hb-chat-title h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
}

.hb-chat-title p {
    color: rgba(255,255,255,0.78);
    font-size: 0.76rem;
    margin: 2px 0 0;
}

.hb-chat-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hb-chat-body {
    padding: 16px;
    overflow-y: auto;
    background: #f7fbff;
}

.hb-msg {
    max-width: 92%;
    border-radius: 16px;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-size: 0.84rem;
    line-height: 1.55;
}

.hb-msg.bot {
    background: #fff;
    color: #314155;
    border: 1px solid #e4edf7;
    border-bottom-left-radius: 6px;
}

.hb-msg.user {
    background: #0ea5e9;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 6px;
}

.hb-quick-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.hb-chip {
    border: 1px solid #cfe6f7;
    background: #fff;
    color: #041B4D;
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 0.78rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hb-chip:hover {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #fff;
}

.hb-lead-form {
    display: grid;
    gap: 9px;
    margin-top: 10px;
}

.hb-lead-form input,
.hb-lead-form textarea {
    width: 100%;
    border: 1px solid #dce8f4;
    border-radius: 12px;
    background: #fff;
    color: #041B4D;
    padding: 11px 12px;
    font-size: 0.84rem;
    outline: none;
}

.hb-lead-form textarea {
    min-height: 74px;
    resize: vertical;
}

.hb-lead-form input:focus,
.hb-lead-form textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.hb-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.hb-chat-primary,
.hb-chat-secondary {
    border: none;
    border-radius: 12px;
    padding: 11px 13px;
    font-weight: 800;
    font-size: 0.82rem;
}

.hb-chat-primary {
    background: #0ea5e9;
    color: #fff;
}

.hb-chat-secondary {
    background: #eaf3fb;
    color: #041B4D;
}

.hb-chat-inputbar {
    border-top: 1px solid #e3edf7;
    padding: 12px;
    display: flex;
    gap: 8px;
    background: #fff;
}

.hb-chat-inputbar input {
    flex: 1;
    border: 1px solid #dce8f4;
    border-radius: 999px;
    padding: 11px 14px;
    font-size: 0.84rem;
    outline: none;
}

.hb-chat-inputbar button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #0ea5e9;
    color: #fff;
}

@media (max-width: 576px) {
    .hb-chatbot {
        right: 12px;
        left: 12px;
        bottom: 84px;
        width: auto;
        max-height: min(620px, calc(100vh - 104px));
        border-radius: 18px;
    }

    .hb-chat-launcher {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }

    .hb-modal-actions,
    .hb-form-actions,
    .hb-profile-meta {
        grid-template-columns: 1fr;
    }

    .hb-chat-head {
        padding: 15px;
    }
}

.navbar.sticky-top {
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid #dbe7f2;
    min-height: 72px;
    padding-block: 4px !important;
    opacity: 1 !important;
}

.navbar.sticky-top > .container {
    min-height: 62px;
}

.navbar.sticky-top .navbar-brand img {
    display: block;
    width: 150px;
    max-width: 38vw;
    height: auto;
    background: transparent !important;
    mix-blend-mode: multiply;
}

.navbar.sticky-top .navbar-collapse {
    border-radius: 24px;
}

.navbar.sticky-top .nav-link {
    color: #182230 !important;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.35;
    transition: color .18s ease, background-color .18s ease;
}

.navbar.sticky-top .nav-link:hover,
.navbar.sticky-top .nav-link:focus-visible,
.navbar.sticky-top .nav-link.active,
.navbar.sticky-top .nav-link[aria-current="page"] {
    color: #1677f8 !important;
}

.navbar.sticky-top .hb-cta-link {
    font-size: 13px !important;
    white-space: nowrap;
}

.navbar.sticky-top .navbar-toggler {
    background-color: #fff !important;
}

@media (max-width: 991.98px) {
    .navbar.sticky-top .navbar-collapse {
        padding: 8px 0 12px;
    }
    .navbar.sticky-top .nav-link {
        padding-inline: 12px !important;
    }
}

.about-intro-section .hb-about-team-visual {
    margin-top: -18px;
    margin-bottom: 34px !important;
}

.about-intro-section .hb-about-team-visual img {
    display: block;
}

@media (max-width: 767.98px) {
    .about-intro-section .hb-about-team-visual {
        margin-top: -10px;
        margin-bottom: 26px !important;
    }
}

.hero-section,
.second-hero-section,
.professionals-section,
.process-section,
.testimonials-section,
.blog-section {
    overflow: clip;
}

.feature-card,
.doctor-card,
.review-card,
.blog-card,
.doctor-card-full,
.surgery-card,
.step-card,
.why-card,
.hb-partner-card {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.hb-surgery-icon-image {
    display: block;
    width: 34px !important;
    height: 34px !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
    object-position: center;
    flex: 0 0 auto;
    transform: none !important;
    filter: none !important;
}

.surg-icon .hb-surgery-icon-image {
    width: 66px !important;
    height: 66px !important;
    padding: 7px;
    box-sizing: border-box;
}

.hb-surgery-icon .hb-surgery-icon-image {
    width: 28px;
    height: 28px;
    margin: auto;
}

.feature-card:hover,
.doctor-card:hover,
.review-card:hover,
.blog-card:hover,
.doctor-card-full:hover {
    transform: translateY(-6px);
}

.why-choose-section .features-container {
    gap: 22px;
    align-items: stretch;
}

.why-choose-section .feature-card {
    min-height: 144px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.myDoctorSwiper,
.hb-review-swiper,
.hb-home-hero-swiper {
    overflow: hidden;
}

.myDoctorSwiper {
    padding-top: 10px !important;
    padding-bottom: 50px !important;
    margin-top: -10px !important;
}

.myDoctorSwiper .swiper-wrapper {
    align-items: stretch !important;
}

.myDoctorSwiper .swiper-slide {
    height: auto !important;
    display: flex !important;
}

.doctor-card {
    border: 1px solid #e1ebf5;
    height: 100% !important;
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
}

.doctor-card .d-flex.justify-content-between.align-items-center:last-child {
    margin-top: auto !important;
    padding-top: 14px;
}

.doctor-card .doc-img-wrapper {
    position: relative;
    isolation: isolate;
    border: 4px solid #e5eff9 !important;
    border-radius: 50% !important;
    background: #f7fbff !important;
    padding: 0;
}

.doctor-card .doc-img-wrapper img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-position: center !important;
}

.doctor-card .doc-img-wrapper img.doctor-photo-fill { display: none !important; }

.doctor-card .doc-img-wrapper img.doctor-photo-full {
    z-index: 1;
    object-fit: contain !important;
}

.hb-doctor-qualification,
.hb-doctor-procedure {
    font-size: 0.74rem;
    line-height: 1.65;
    color: #64748b;
}

.hb-process-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(46%) sepia(95%) saturate(1490%) hue-rotate(170deg) brightness(100%) contrast(97%);
}

.hb-process-fa {
    display: inline-flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #0ea5e9;
    font-size: 3rem;
}

.hexagon {
    background: linear-gradient(135deg, #eff8ff 0%, #ffffff 100%);
    border: 1px solid #dbe8f4;
}

.second-hero-section .bg-dark-blue {
    padding-bottom: 64px !important;
}

.form-overlap-container {
    margin-top: -44px !important;
}

.form-overlap-container .rounded-5 {
    border-radius: 30px !important;
}

.testimonials-section .container {
    position: relative;
}

.hb-review-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.hb-review-swiper .review-card {
    margin-top: 42px !important;
    height: calc(100% - 42px) !important;
}

.hb-review-swiper .hb-google-review-card {
    box-sizing: border-box;
    flex: 1 1 auto;
    margin-top: 0 !important;
    height: 100% !important;
    min-height: 370px;
    padding-top: 1.25rem !important;
    border: 1px solid #e3edf7;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(17, 47, 91, 0.09) !important;
}

.hb-google-review-card::before,
.hb-google-review-card::after {
    display: none !important;
}

.hb-review-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 0 auto 0.5rem;
}

.hb-review-title-wrap h2 {
    margin-bottom: 0 !important;
}

.hb-google-review-heading {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #183153;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.hb-google-review-heading img {
    display: block;
    width: 56px;
    height: auto;
}

.hb-google-review-heading:hover,
.hb-google-review-heading:focus-visible {
    color: #168ed3;
}

.hb-google-review-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1rem;
}

.hb-google-review-tag {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e4edf7;
    border-radius: 999px;
    padding: 5px 9px;
    color: #526071;
    background: #f7faff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.hb-google-review-stars {
    color: #f4b400;
    font-size: 1rem;
    letter-spacing: 0.12em;
    line-height: 1;
    margin-bottom: 0;
}

.hb-google-review-text {
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
    overflow: visible !important;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #526071;
}

.hb-google-review-name {
    font-size: 0.9rem;
}

.hb-google-review-source {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #168ed3;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.hb-google-review-source img {
    display: block;
    width: 44px;
    height: auto;
}

.hb-google-review-source:hover,
.hb-google-review-source:focus-visible {
    color: #0b5da8;
    text-decoration: underline;
}

.hb-review-swiper-pagination,
.doctor-swiper-pagination {
    position: static !important;
    margin-top: 18px;
    text-align: center;
}

@media (max-width: 767.98px) {
    .hb-review-title-wrap h2 {
        font-size: clamp(1.75rem, 7vw, 2.35rem);
    }

    .hb-review-swiper .hb-google-review-card {
        min-height: 390px;
        padding: 1.25rem !important;
    }
}

@media (max-width: 575.98px) {
    .hb-review-swiper .hb-google-review-card {
        min-height: 420px;
    }

    .hb-google-review-tag {
        font-size: 0.62rem;
    }
}

.hb-home-hero-card {
    border-radius: 34px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 44px rgba(3, 18, 56, 0.25);
}

.hb-home-hero-card img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

.hb-hero-indicators {
    margin-bottom: 14px;
    gap: 8px;
}

.hb-hero-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.55);
    opacity: 1;
}

.hb-hero-indicators .active {
    width: 28px;
    background: #0ea5e9;
}

.hb-hero-control {
    width: 48px;
    height: 48px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(4, 27, 77, 0.34);
    opacity: 1;
    margin-inline: 16px;
}

.hb-hero-control:hover {
    background: rgba(14, 165, 233, 0.86);
}

.hb-hero-control .carousel-control-prev-icon,
.hb-hero-control .carousel-control-next-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.hb-surgery-hero-slider {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(3, 18, 56, 0.24);
}

.hb-surgery-hero-slider img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
}

.hb-prefooter {
    padding: 12px 0px 40px 0px;
    background: transparent;
}

.hb-prefooter-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0;
    background: #fff;
    border: 1px solid #dbe8f4;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 54px rgba(4, 27, 77, 0.10);
}

.hb-prefooter-media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.hb-prefooter-content {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #f7fbff 0%, #ffffff 100%);
}

.hb-prefooter-tag,
.hb-footer-cta-tag {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hb-prefooter-content h2,
.hb-footer-cta h3 {
    color: #041B4D;
    font-size: clamp(1.6rem, 2.2vw, 2.3rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
}

.hb-footer-cta h3 {
    color: #fff;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.hb-prefooter-content p,
.hb-footer-cta p,
.hb-footer-copy {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.85;
}

.hb-prefooter-content p {
    color: #64748b;
    margin-bottom: 18px;
}

.hb-prefooter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hb-site-footer {
    margin-top: 18px;
    background-color: #041B4D;
    border-top: 4px solid #0ea5e9;
}

.hb-footer-contact .contact-item {
    max-width: 420px;
}

.hb-footer-cta {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
}

.hb-site-footer .row.g-4 {
    --bs-gutter-y: 1.5rem;
}

.hb-site-footer .footer-links li:last-child a {
    padding-bottom: 0;
}

.hb-site-footer .text-white-50,
.hb-site-footer .small {
    line-height: 1.7;
}

.hb-site-footer .border-top {
    margin-top: 22px !important;
    padding-top: 16px !important;
}

.hb-consult-modal {
    position: fixed;
    inset: 0;
    z-index: 1085;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.hb-consult-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.hb-consult-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 27, 77, 0.54);
    backdrop-filter: blur(6px);
}

.hb-consult-dialog {
    position: relative;
    width: min(920px, calc(100vw - 28px));
    max-height: calc(100vh - 34px);
    overflow: auto;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 32px 70px rgba(4, 27, 77, 0.24);
}

.hb-consult-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: #eef4fb;
    color: #041B4D;
    z-index: 2;
}

.hb-consult-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
}

.hb-consult-aside {
    padding: 34px 28px;
    background: linear-gradient(160deg, #041B4D 0%, #0a4b86 58%, #0ea5e9 100%);
    color: #fff;
}

.hb-consult-eyebrow {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hb-consult-aside h3 {
    margin: 0 0 12px;
    font-size: clamp(1.55rem, 2vw, 2rem);
    line-height: 1.25;
    font-weight: 800;
}

.hb-consult-aside p {
    color: rgba(255,255,255,0.84);
    line-height: 1.8;
    margin-bottom: 20px;
}

.hb-consult-points {
    display: grid;
    gap: 12px;
}

.hb-consult-points div {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.10);
}

.hb-consult-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.28);
}

.hb-consult-stats div {
    min-width: 0;
    padding: 14px 10px 10px;
    text-align: center;
}

.hb-consult-stats div:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.24);
}

.hb-consult-stats div:nth-child(n+3) {
    border-top: 1px solid rgba(255,255,255,0.24);
}

.hb-consult-stats strong,
.hb-consult-stats span {
    display: block;
}

.hb-consult-stats strong {
    font-size: 1.42rem;
    line-height: 1.15;
    font-weight: 800;
}

.hb-consult-stats span {
    margin-top: 4px;
    color: rgba(255,255,255,0.88);
    font-size: 0.74rem;
    line-height: 1.35;
}

.hb-consult-form-title {
    margin: 0 0 2px;
    color: #041B4D;
    font-size: 1.35rem;
    font-weight: 800;
}

.hb-consult-formwrap {
    padding: 34px 28px;
}

.hb-consult-form {
    display: grid;
    gap: 14px;
}

.hb-consult-form label {
    display: block;
    margin-bottom: 6px;
    color: #041B4D;
    font-size: 0.84rem;
    font-weight: 700;
}

.hb-consult-form input,
.hb-consult-form textarea {
    width: 100%;
    border: 1px solid #dce7f3;
    border-radius: 16px;
    padding: 13px 15px;
    color: #0f172a;
    font-size: 0.94rem;
    background: #f8fbff;
}

.hb-consult-form textarea {
    resize: vertical;
    min-height: 120px;
}

.hb-consult-submit {
    min-height: 48px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    font-weight: 800;
}

.hb-consult-note {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.6;
}

.hb-consult-success {
    text-align: center;
    padding: 26px 12px 8px;
}

.hb-consult-success-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0284c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.hb-consult-success h4 {
    margin: 0 0 8px;
    color: #041B4D;
    font-weight: 800;
}

.hb-consult-success p {
    color: #64748b;
    line-height: 1.75;
    margin-bottom: 18px;
}

@media (max-width: 991px) {
    .hb-prefooter-card {
        grid-template-columns: 1fr;
    }

    .hb-prefooter-media img {
        min-height: 240px;
        max-height: 320px;
    }

    .hb-home-hero-card img,
    .hb-surgery-hero-slider img {
        height: 360px;
    }

    .hb-hero-control {
        width: 42px;
        height: 42px;
        margin-inline: 10px;
    }
}

@media (max-width: 767.98px) {
    .about-intro-section .row.g-5 {
        --bs-gutter-x: 1.5rem;
    }

    .hb-consult-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 18px; }
    .hb-consult-layout { grid-template-columns: 1fr; }
    .hb-consult-aside { padding: 22px 18px 16px; }
    .hb-consult-aside h3 { font-size: 1.35rem; padding-right: 28px; }
    .hb-consult-aside p { margin-bottom: 12px; line-height: 1.55; }
    .hb-consult-points { grid-template-columns: 1fr; gap: 8px; }
    .hb-consult-points div { padding: 9px 11px; }
    .hb-consult-stats { margin-top: 12px; }
    .hb-consult-stats div { padding: 10px 8px 8px; }
    .hb-consult-stats strong { font-size: 1.2rem; }
    .hb-consult-stats span { font-size: 0.7rem; }
    .hb-consult-formwrap { padding: 18px; }
    .hb-consult-form textarea { min-height: 84px; }
    .hb-consult-submit { min-height: 50px; }
}

@media (max-width: 768px) {
    .hb-home-hero-card img,
    .hb-surgery-hero-slider img {
        height: 280px;
    }

    .hb-hero-control {
        width: 38px;
        height: 38px;
        margin-inline: 8px;
    }

    .why-choose-section .features-container {
        gap: 18px;
    }

    .why-choose-section .feature-card {
        min-height: auto;
    }

    .doctor-card .doc-img-wrapper img {
        position: absolute;
        inset: 0;
        width: 100% !important;
        height: 100% !important;
        object-position: center !important;
    }

    .hb-prefooter-content {
        padding: 24px 20px;
    }

    .hb-consult-layout {
        grid-template-columns: 1fr;
    }

    .hb-consult-aside,
    .hb-consult-formwrap {
        padding: 24px 20px;
    }

    .hb-consult-dialog {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 18px;
    }

    .hb-consult-aside {
        padding: 22px 18px 16px;
    }

    .hb-consult-aside h3 {
        font-size: 1.35rem;
        padding-right: 28px;
    }

    .hb-consult-aside p {
        margin-bottom: 12px;
        line-height: 1.55;
    }

    .hb-consult-points {
        gap: 8px;
    }

    .hb-consult-points div {
        padding: 9px 11px;
    }

    .hb-consult-formwrap {
        padding: 18px;
    }

    .hb-consult-form textarea {
        min-height: 84px;
    }

    .hb-consult-submit {
        min-height: 50px;
    }
}

/* Process illustrations use the current icon frame without changing its geometry. */
.hb-process-illustration {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

@media (max-width: 575px) {
  .surg-icon .hb-surgery-icon-image { width: 64px; height: 64px; }
}

/* Surgery preview and process icon refinements requested for the homepage. */
.surg-card { padding: 16px 11px 13px; gap: 8px; }
.surg-icon { width: 76px; height: 76px; border-radius: 14px; }
.surg-icon .hb-surgery-icon-image { width: 66px; height: 66px; }
.surg-icon { background: #eef3ff !important; }
.surg-icon .hb-surgery-icon-image { filter: none !important; }
.surg-card:hover .surg-icon { background: #eef3ff !important; transform: translateY(-2px) scale(1.025); }
.surg-card:hover .surg-icon .hb-surgery-icon-image { filter: none !important; }
.surg-card:hover .surg-icon svg { stroke: #0ea5e9 !important; }
.surg-card:hover .surg-icon i { color: #0ea5e9 !important; }
.surg-card:hover .surg-icon svg { stroke: #0ea5e9 !important; }
.surg-card:hover .surg-icon i { color: #0ea5e9 !important; }
.surgery-card .icon-wrap { background: #eef3ff !important; }
.surgery-card:hover .icon-wrap { background: #eef3ff !important; }
.surgery-card:hover .icon-wrap { transform: translateY(-2px) scale(1.025) !important; }
.surgery-card .icon-wrap .hb-surgery-icon-image { filter: none !important; }
.surgery-card:hover .icon-wrap .hb-surgery-icon-image { filter: none !important; }
.surgery-card:hover .icon-wrap svg { stroke: #0ea5e9 !important; }
.surgery-card:hover .icon-wrap i { color: #0ea5e9 !important; }
.cta-card .cta-btn-secondary { color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.55); }
.cta-card .cta-btn-secondary svg { stroke: currentColor; }
.cta-card .cta-whatsapp-link { position: relative; z-index: 1; color: #fff; font-size: .72rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cta-card .cta-btn-all { color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.55); }
.cta-card .cta-btn-all svg { stroke: currentColor; }
.hex-wrapper { width: 164px; height: 164px; }
.hexagon { width: 100%; height: 100%; padding: 5px; border-radius: 50%; clip-path: none; overflow: hidden; background: #fff; box-shadow: 0 8px 22px rgba(10,36,99,.10); transition: transform .25s ease, box-shadow .25s ease; }
.hexagon img { width: 100%; height: 100%; border-radius: 50%; clip-path: none; object-fit: contain; transition: transform .25s ease; }
.hex-wrapper:hover .hexagon { transform: translateY(-4px) scale(1.025); box-shadow: 0 12px 26px rgba(14,165,233,.18); }
.hex-wrapper:hover .hexagon img { transform: scale(1.035); }
@media (max-width: 991px) { .hex-wrapper { width: 148px; height: 148px; } }
@media (max-width: 768px) { .surg-icon { width: 66px; height: 66px; } .surg-icon .hb-surgery-icon-image { width: 58px; height: 58px; } }
@media (max-width: 575px) { .hex-wrapper { width: 136px; height: 136px; } }
@media (prefers-reduced-motion: reduce) { .hexagon, .hexagon img, .surg-card .surg-icon { transition: none; } .hex-wrapper:hover .hexagon, .hex-wrapper:hover .hexagon img { transform: none; } }

/* Keep the lower mobile consultation and phone actions aligned without wrapping the country code. */
@media (max-width: 575px) {
    .second-hero-section .d-flex.align-items-center.gap-3.pb-lg-4 {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px !important;
        width: 100%;
    }
    .second-hero-section .d-flex.align-items-center.gap-3.pb-lg-4 > .btn {
        min-width: 0;
        min-height: 58px;
        padding: 12px 10px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.25;
        font-size: clamp(.68rem, 3.4vw, .82rem) !important;
    }
    .second-hero-section .hb-cta-link {
        white-space: nowrap;
        gap: 6px !important;
    }
    .second-hero-section .hb-cta-link i { flex: 0 0 auto; }
}
@media (max-width: 360px) {
    .second-hero-section .d-flex.align-items-center.gap-3.pb-lg-4 { grid-template-columns: 1fr; }
}

/* Give the surgery popup icon a clear pale brand tile so the blue PNG stays visible. */
.popup-icon {
    background: #eef3ff !important;
    border: 1px solid #d8e7f7;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
}
.popup-icon .hb-surgery-icon-image {
    display: block;
    width: 40px !important;
    height: 40px !important;
    max-width: 100% !important;
    max-height: 100% !important;
    padding: 4px;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
    filter: none !important;
    transform: none !important;
}
.popup-icon svg { stroke: #0ea5e9 !important; }
.popup-icon i { color: #0ea5e9 !important; }
@media (max-width: 575px) {
    .popup-icon { width: 52px; height: 52px; }
    .popup-icon .hb-surgery-icon-image { width: 38px !important; height: 38px !important; }
}

/* Bound service artwork and popup content to the viewport. */
.surgery-card .icon-wrap,
.surg-card .surg-icon,
.popup-icon { overflow: hidden; min-width: 0; }
.popup-box {
    box-sizing: border-box;
    width: min(450px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
    overflow-x: hidden !important;
    overflow-y: auto;
}
.popup-header { min-width: 0; }
.popup-header > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.popup-desc, .popup-treatment, .popup-tip { overflow-wrap: anywhere; }
@media (max-width: 575px) { .popup-box { padding: 22px 18px !important; } }

/* Extra-safe inset for the complete process art (phone, medical plus, clipboard, people). */
.hex-wrapper .hexagon > img.hb-process-illustration {
    flex-basis: 64% !important;
    width: 64% !important;
    height: 64% !important;
    max-width: 64% !important;
    max-height: 64% !important;
}

/* Match Get In Touch readability to the adjacent footer link columns. */
.hb-footer-contact-column .hb-footer-contact-list .hb-contact-value {
    font-size: 14px !important;
    line-height: 1.55 !important;
    overflow-wrap: anywhere;
}
.hb-footer-contact-column .hb-footer-contact-list strong {
    display: inline-block;
    margin-bottom: 2px;
    font-weight: 700;
}
@media (max-width: 575px) {
    .hb-footer-contact-column .hb-footer-contact-list { grid-template-columns: 1fr !important; gap: 8px; }
}

/* Pin each process illustration to the exact center of its circular frame. */
.hex-wrapper .hexagon {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 50% !important;
}
.hex-wrapper .hexagon > img.hb-process-illustration {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    inset: auto !important;
    width: 82% !important;
    height: 82% !important;
    max-width: 82% !important;
    max-height: 82% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 50% !important;
    clip-path: none !important;
    transform: translate(-50%, -50%) !important;
}
.hex-wrapper:hover .hexagon > img.hb-process-illustration {
    transform: translate(-50%, -50%) !important;
}

/* Correct the process image anchor: inset places its midpoint at the circle midpoint. */
.hex-wrapper .hexagon > img.hb-process-illustration {
    position: absolute !important;
    inset: 50% auto auto 50% !important;
    width: 82% !important;
    height: 82% !important;
    max-width: 82% !important;
    max-height: 82% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 50% !important;
    clip-path: none !important;
    transform: translate(-50%, -50%) !important;
}
.hex-wrapper:hover .hexagon > img.hb-process-illustration {
    transform: translate(-50%, -50%) !important;
}

/* Keep the treatment-plan illustration comfortably inside its outer circle. */
.step-row > .step-item:nth-child(4) .hex-wrapper .hexagon > img.hb-process-illustration {
    width: 76% !important;
    height: 76% !important;
    max-width: 76% !important;
    max-height: 76% !important;
}

/* Site-wide responsive guardrails for public pages and admin-fed content. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

img,
svg,
video,
canvas,
iframe,
embed,
object {
    max-width: 100%;
}

.row > *,
.container,
.container-fluid,
main,
section,
header,
footer {
    min-width: 0;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .container {
        max-width: calc(100% - 32px);
    }

    .doctor-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .container,
    .container-fluid {
        max-width: 100%;
    }

    .row {
        --bs-gutter-x: 1.25rem;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    p,
    li,
    address,
    td,
    th {
        overflow-wrap: anywhere;
    }

    .btn,
    .button,
    button {
        max-width: 100%;
        white-space: normal;
    }

    .table-responsive {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .page-banner {
        height: auto;
        min-height: 220px;
        margin-top: 0 !important;
        padding: 78px 16px 34px;
    }

    .page-banner .display-4 {
        font-size: clamp(2rem, 9vw, 3rem);
        text-align: center;
    }

    .doctor-card .doc-img-wrapper {
        width: min(180px, 62vw) !important;
        height: min(180px, 62vw) !important;
    }

    .doctor-card-photo {
        width: min(136px, 38vw);
        height: min(136px, 38vw);
    }

    .doctor-hero {
        padding: 54px 0 58px;
    }

    .doctor-shell {
        margin-top: -22px;
    }

    .hero-banner {
        padding: 42px 0 28px;
    }

    .hero-content {
        padding-bottom: 30px;
    }

    .hb-surgery-hero-slider img {
        height: min(74vw, 360px);
    }

    .stats-strip {
        padding: 20px 16px;
        gap: 16px;
    }

    .stat-num {
        font-size: clamp(1.35rem, 6vw, 1.8rem);
    }
}

/* Screenshot-led responsive refinements: home hero, surgery filters and image columns. */
.why-choose-section .features-container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px) minmax(0, 1fr);
    gap: clamp(16px, 2.4vw, 34px);
    align-items: center;
}

.why-choose-section .left-features,
.why-choose-section .right-features {
    min-width: 0;
}

.why-choose-section .feature-card {
    width: 100%;
    max-width: none;
    margin: 0;
}

.why-choose-section .doctor-container {
    min-width: 0;
}

.why-choose-section .doctor-image {
    width: min(100%, 260px);
    height: auto;
    aspect-ratio: 7 / 9;
}

.why-choose-section .doctor-image img {
    object-fit: cover;
    object-position: center;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .why-choose-section .features-container {
        grid-template-columns: minmax(0, 1fr) minmax(190px, 230px) minmax(0, 1fr);
        gap: 16px;
    }

    .why-choose-section .feature-card {
        padding: 14px;
    }

    .why-choose-section .feature-card h3 {
        font-size: .9rem;
    }

    .why-choose-section .feature-card p {
        font-size: .76rem;
    }
}

@media (max-width: 767.98px) {
    .why-choose-section .features-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .why-choose-section .left-features,
    .why-choose-section .right-features {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .why-choose-section .feature-card {
        min-height: 0;
        padding: 14px;
    }

    .why-choose-section .doctor-image {
        width: min(82vw, 320px);
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-section {
        min-height: 0 !important;
        border-radius: 0 0 28px 28px;
    }

    .hero-section > .container {
        min-height: 0 !important;
        padding: 52px 16px 64px !important;
        align-items: center !important;
    }

    .hero-section .row {
        margin-inline: 0;
    }

    .hero-section h1 {
        max-width: 14ch;
        margin-inline: auto;
        font-size: clamp(2rem, 8.3vw, 2.55rem) !important;
        line-height: 1.08 !important;
        text-wrap: balance;
    }

    .hero-section p {
        max-width: 38ch !important;
        margin-inline: auto;
        margin-bottom: 22px !important;
        font-size: clamp(.95rem, 4.1vw, 1.08rem) !important;
        line-height: 1.55;
    }

    .hero-section .d-flex.mt-3 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .hero-section .d-flex.mt-3 .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 62px;
        margin: 0 !important;
        padding: 10px 12px !important;
        font-size: clamp(.68rem, 3vw, .8rem) !important;
        line-height: 1.35;
        white-space: normal;
        text-align: center;
    }

    .hb-home-hero-bg .hb-hero-img {
        object-position: center 35%;
        object-fit: cover;
        animation: none !important;
        transform-origin: center center;
    }

    .hero-watermark,
    .hero-rings {
        display: none;
    }

    .overlap-features-container {
        margin-top: -28px !important;
    }

    .doctor-team-img,
    .wide-img-wrapper img,
    .about-intro-section img {
        max-width: 100%;
        height: auto;
    }

    .hb-footer-social {
        align-items: center;
    }
}

@media (max-width: 420px) {
    .why-choose-section .left-features,
    .why-choose-section .right-features {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-section > .container {
        padding-inline: 12px !important;
    }

    .hero-section .d-flex.mt-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-section .d-flex.mt-3 .btn {
        min-height: 52px;
    }
}

/* Category pills stay in a balanced grid instead of dangling at the edges. */
#treatmentFilters.filter-chip-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 12px;
    max-width: 1120px;
    margin: 0 auto 24px;
}

#treatmentFilters .filter-chip {
    flex: 0 1 auto;
    min-height: 40px;
    padding: 8px 16px;
    font-size: .78rem;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    #treatmentFilters.filter-chip-bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding-inline: 2px;
    }

    #treatmentFilters .filter-chip {
        min-width: 0;
        width: 100%;
        min-height: 42px;
        padding: 8px 10px;
        font-size: .72rem;
        white-space: normal;
    }
}


/* Ensure full doctor portraits stay centered inside circular masks at all sizes. */
.doctor-card .doc-img-wrapper,
.doctor-card-photo {
    aspect-ratio: 1 / 1;
    overflow: hidden !important;
    border-radius: 50% !important;
    clip-path: circle(50%);
    background: #eef5ff !important;
}
.doctor-card .doc-img-wrapper img.doctor-photo-full,
.doctor-card-photo img.doctor-photo-full {
    object-fit: contain !important;
    object-position: center center !important;
}

/* Lock surgery artwork into its pale frame across both normal and hover states. */
.surg-card .surg-icon,
.surg-card:hover .surg-icon {
    background: #eef3ff !important;
    border-radius: 16px !important;
    transform: none !important;
    overflow: hidden !important;
}
.surg-card .surg-icon .hb-surgery-icon-image,
.surg-card:hover .surg-icon .hb-surgery-icon-image {
    display: block !important;
    width: 60px !important;
    height: 60px !important;
    max-width: 100% !important;
    max-height: 100% !important;
    padding: 4px !important;
    box-sizing: border-box !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    filter: none !important;
}
.doctor-card .doc-img-wrapper {
    border-radius: 50% !important;
    overflow: hidden !important;
    clip-path: circle(50%);
}
.doctor-card .doc-img-wrapper img.doctor-photo-full {
    border-radius: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* Final cache-safe icon colors for both the surgery cards and their detail modal. */
.surg-card .surg-icon,
.surg-card:hover .surg-icon,
.popup-overlay .popup-icon#popupIcon {
    background-color: #eef3ff !important;
    background-image: none !important;
    border: 1px solid #d8e7f7 !important;
    transform: none !important;
}
.popup-overlay .popup-icon#popupIcon img.hb-surgery-icon-image {
    display: block !important;
    width: 44px !important;
    height: 44px !important;
    max-width: 100% !important;
    max-height: 100% !important;
    padding: 0 !important;
    box-sizing: content-box !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
    transform: none !important;
    filter: none !important;
}
.surg-card .surg-icon img.hb-surgery-icon-image {
    width: 58px !important;
    height: 58px !important;
}

/* Circular image masks preserve the whole source photo inside each profile. */
.doctor-card .doc-img-wrapper,
.doctor-card-photo {
    border-radius: 50% !important;
    overflow: hidden !important;
    clip-path: circle(50%);
}
.doctor-card .doc-img-wrapper img.doctor-photo-full,
.doctor-card-photo img.doctor-photo-full {
    object-fit: contain !important;
    object-position: center center !important;
}

/* Shared header: same geometry and white background on every public page. */
#hb-site-header {
    min-height: 72px !important; padding: 4px 0 !important;
    background: #fff !important; backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important; opacity: 1 !important;
    border-bottom: 1px solid #dbe7f2 !important;
    font-family: Poppins, sans-serif !important; line-height: 1.35 !important;
}
#hb-site-header > .container {
    min-height: 62px !important; width: 100% !important;
    align-items: center !important; padding-inline: 12px !important;
}
#hb-site-header .navbar-brand { display: flex !important; align-items: center !important; min-height: 48px !important; margin: 0 !important; padding: 0 !important; }
#hb-site-header .navbar-brand img { width: 150px !important; height: 48px !important; max-width: none !important; object-fit: contain !important; display: block !important; mix-blend-mode: normal !important; }
#hb-site-header .nav-link { font-size: 14px !important; line-height: 1.35 !important; font-weight: 700 !important; color: #182230 !important; background: transparent !important; }
#hb-site-header .nav-link:is(:hover,:focus-visible,.active,[aria-current="page"]) { color: #1677f8 !important; }
#hb-site-header .hb-cta-link { font-size: 13px !important; line-height: 1.5 !important; background: #0ea5e9 !important; color: #fff !important; }
#hb-site-header .hb-cta-link:is(:hover,:focus-visible) { background: #0056d6 !important; }
#hb-site-header .navbar-toggler { background: #fff !important; }
#hb-site-header > .container { max-width: 540px !important; }
@media (max-width: 575.98px) { #hb-site-header > .container { max-width: 100% !important; } }
@media (min-width: 768px) { #hb-site-header > .container { max-width: 720px !important; } }
@media (min-width: 992px) { #hb-site-header > .container { max-width: 960px !important; } }
@media (min-width: 1200px) { #hb-site-header > .container { max-width: 1140px !important; } }
@media (min-width: 1400px) { #hb-site-header > .container { max-width: 1320px !important; } }

/* Hero height follows the content on phones; no extra outer padding or offsets. */
#hb-home-hero { padding: 0 !important; min-height: 0 !important; height: auto !important; display: block; }
#hb-home-hero > .container { display: flex; min-height: 560px !important; padding-block: 56px 80px !important; align-items: center !important; }
#hb-home-hero > .container > .row { width: 100%; margin-block: 0 !important; transform: none !important; align-items: center !important; }
#hb-home-hero > .container > .row > .col-lg-6 { margin-block: 0 !important; }
#hb-home-hero h1 { line-height: 1.12 !important; text-wrap: balance; }
#hb-home-hero .d-flex.mt-3 { gap: 12px; flex-wrap: wrap; }
#hb-home-hero .d-flex.mt-3 .btn { display: inline-flex; align-items: center; justify-content: center; margin: 0 !important; min-height: 48px; }
@media (max-width: 991.98px) {
    #hb-home-hero > .container { display: block; min-height: 0 !important; padding: 40px 16px 62px !important; }
    #hb-home-hero > .container > .row { margin-inline: 0 !important; }
    #hb-home-hero > .container > .row > .col-lg-6 { padding-inline: 0; text-align: center; }
    #hb-home-hero h1 { max-width: 16ch; margin: 0 auto 18px !important; }
    #hb-home-hero p { max-width: 42ch !important; margin: 0 auto 22px !important; }
    #hb-home-hero .d-flex.mt-3 { justify-content: center; }
}
@media (max-width: 767.98px) {
    #hb-home-hero > .container { padding: 32px 20px 52px !important; }
    #hb-home-hero h1 { font-size: clamp(2rem, 8vw, 2.5rem) !important; max-width: 15ch; }
    #hb-home-hero p { font-size: 1rem !important; line-height: 1.5 !important; }
    #hb-home-hero .d-flex.mt-3 { display: grid !important; grid-template-columns: minmax(0,1fr); max-width: 420px; width: 100%; margin: 0 auto !important; gap: 10px; }
    #hb-home-hero .d-flex.mt-3 .btn { width: 100%; min-height: 50px; padding: 12px 14px !important; font-size: .85rem !important; line-height: 1.35; white-space: normal; }
    .home-hero-features { margin-top: -18px !important; }
}

/* Artwork keeps the same appearance for mouse, touch and keyboard interactions. */
body .surgery-card .icon-wrap,
body .surgery-card:is(:hover,:focus,:focus-within,:active) .icon-wrap,
body .surg-card .surg-icon,
body .surg-card:is(:hover,:focus,:focus-within,:active) .surg-icon,
body #popupIcon.popup-icon {
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    transform: none !important; filter: none !important; transition: none !important;
}
body .surg-card .surg-icon::before, body .surg-card .surg-icon::after { content: none !important; }
body .surg-card .surg-icon :is(img,svg,i),
body .surg-card:hover .surg-icon :is(img,svg,i) { filter: none !important; transform: none !important; background: transparent !important; color: #0ea5e9 !important; }
body .surg-card .surg-icon svg, body .surg-card:hover .surg-icon svg { stroke: #0ea5e9 !important; }

body .surgery-card .icon-wrap :is(img,svg,i), body .surgery-card:hover .icon-wrap :is(img,svg,i) { filter: none !important; transform: none !important; background: transparent !important; color: #0ea5e9 !important; }
