/* BHC Premium Responsive V51
   Final public-facing polish for doctor directory/profile and shared overflow safety.
   Loaded last so the scoped components remain stable beside legacy theme layers. */

:root {
    --bhc-ui-ink: #08384d;
    --bhc-ui-ink-strong: #062d40;
    --bhc-ui-teal: #08786c;
    --bhc-ui-teal-dark: #075963;
    --bhc-ui-blue: #0c5b84;
    --bhc-ui-red: #e23a44;
    --bhc-ui-muted: #637b88;
    --bhc-ui-line: #d9e8e6;
    --bhc-ui-soft: #f4faf9;
    --bhc-ui-paper: #ffffff;
    --bhc-ui-shadow: 0 18px 50px rgba(5, 48, 64, .09);
    --bhc-ui-radius: 22px;
}

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

@supports (overflow: clip) {
    html,
    body { overflow-x: clip; }
}

.bhc-doctors-page *,
.bhc-doctor-profile-page * {
    box-sizing: border-box;
}

.bhc-doctors-shell {
    width: min(100%, 1510px) !important;
    max-width: 1510px !important;
    padding-left: clamp(16px, 2.1vw, 34px) !important;
    padding-right: clamp(16px, 2.1vw, 34px) !important;
}

.bhc-page-kicker,
.bhc-card-kicker {
    display: block;
    color: var(--bhc-ui-teal);
    font-size: 11px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

/* ---------- Doctors index ---------- */
.bhc-doctors-page {
    background: linear-gradient(180deg, #f9fcfc 0, #fff 36%, #f9fcfc 100%);
    color: var(--bhc-ui-ink);
}

.bhc-doctors-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(48px, 6vw, 84px) 0 clamp(70px, 7vw, 104px);
    background:
        radial-gradient(circle at 82% 8%, rgba(8, 120, 108, .18), transparent 28%),
        radial-gradient(circle at 12% 80%, rgba(12, 91, 132, .12), transparent 28%),
        linear-gradient(135deg, #eef8f6 0%, #f4f9fc 52%, #f7fbfa 100%);
    border-bottom: 1px solid rgba(7, 89, 99, .10);
}

.bhc-doctors-hero::before,
.bhc-profile-hero::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -100px;
    bottom: -190px;
    border: 1px solid rgba(8, 120, 108, .10);
    border-radius: 50%;
    box-shadow: 0 0 0 52px rgba(8, 120, 108, .035), 0 0 0 104px rgba(12, 91, 132, .025);
    pointer-events: none;
    z-index: -1;
}

.bhc-doctors-hero__inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 34px;
}

.bhc-doctors-hero__copy {
    max-width: 880px;
    min-width: 0;
}

.bhc-doctors-hero__copy h1 {
    margin: 10px 0 14px !important;
    max-width: 900px;
    color: var(--bhc-ui-ink-strong) !important;
    font-size: clamp(34px, 4.35vw, 64px) !important;
    line-height: 1.02 !important;
    font-weight: 850 !important;
    letter-spacing: -.045em !important;
}

.bhc-doctors-hero__copy p {
    max-width: 820px;
    margin: 0;
    color: #5d7480;
    font-size: clamp(15px, 1.25vw, 19px);
    line-height: 1.65;
}

.bhc-doctors-hero__badge {
    flex: 0 0 190px;
    min-height: 138px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(8, 120, 108, .16);
    border-radius: 24px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 14px 36px rgba(5, 48, 64, .08);
    backdrop-filter: blur(10px);
}

.bhc-doctors-hero__badge strong {
    color: var(--bhc-ui-teal-dark);
    font-size: 42px;
    line-height: 1;
    letter-spacing: -.04em;
}

.bhc-doctors-hero__badge span {
    margin-top: 8px;
    color: var(--bhc-ui-muted);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
}

.bhc-doctor-search-wrap {
    position: relative;
    z-index: 5;
    margin-top: -46px;
}

.bhc-doctor-search-card {
    padding: clamp(15px, 1.7vw, 24px);
    overflow: hidden;
    border: 1px solid rgba(8, 120, 108, .13);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 60px rgba(6, 48, 64, .10);
}

.bhc-doctor-search-form {
    display: grid;
    grid-template-columns: minmax(250px, 1.45fr) minmax(210px, 1fr) minmax(220px, 1.05fr) minmax(165px, .64fr);
    align-items: end;
    gap: 12px;
}

.bhc-search-field {
    min-width: 0;
    margin: 0;
}

.bhc-search-field > span {
    display: block;
    margin: 0 0 7px;
    color: #45616e;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.bhc-search-field input,
.bhc-search-field select {
    width: 100%;
    min-width: 0;
    height: 52px;
    margin: 0 !important;
    padding: 0 15px !important;
    border: 1px solid #ccdfdc !important;
    border-radius: 13px !important;
    outline: 0 !important;
    background: #fbfdfd !important;
    color: #173f51 !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    box-shadow: none !important;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.bhc-search-field input::placeholder { color: #8ca0a8; }

.bhc-search-field input:focus,
.bhc-search-field select:focus {
    border-color: rgba(8, 120, 108, .62) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(8, 120, 108, .09) !important;
}

.bhc-doctor-search-button,
.bhc-btn {
    border: 0;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.bhc-doctor-search-button {
    min-width: 0;
    height: 52px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--bhc-ui-teal-dark), #084c6b);
    color: #fff;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 850;
    box-shadow: 0 10px 24px rgba(7, 89, 99, .20);
}

.bhc-doctor-search-button:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(7, 89, 99, .25);
}

.bhc-doctor-results {
    padding: clamp(48px, 5vw, 78px) 0 clamp(62px, 7vw, 100px);
}

.bhc-results-head {
    margin-bottom: 24px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.bhc-results-head h2 {
    margin: 7px 0 0 !important;
    color: var(--bhc-ui-ink-strong) !important;
    font-size: clamp(25px, 2.4vw, 36px) !important;
    line-height: 1.14 !important;
    font-weight: 850 !important;
    letter-spacing: -.03em !important;
}

.bhc-results-head > p {
    flex: 0 0 auto;
    margin: 0 0 3px;
    padding: 9px 13px;
    border: 1px solid #d6e7e4;
    border-radius: 99px;
    background: #f6fbfa;
    color: #5f7983;
    font-size: 12px;
    font-weight: 800;
}

.bhc-doctor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 1.5vw, 24px);
}

.bhc-doctor-card {
    position: relative;
    min-width: 0;
    min-height: 100%;
    padding: clamp(18px, 1.7vw, 24px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--bhc-ui-line);
    border-radius: var(--bhc-ui-radius);
    background: #fff;
    box-shadow: 0 12px 34px rgba(5, 48, 64, .065);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.bhc-doctor-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bhc-ui-teal) 0 40%, var(--bhc-ui-blue) 40% 78%, var(--bhc-ui-red) 78% 100%);
}

.bhc-doctor-card:hover {
    transform: translateY(-4px);
    border-color: #bfd9d5;
    box-shadow: 0 22px 50px rgba(5, 48, 64, .11);
}

.bhc-doctor-card__top {
    min-width: 0;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: start;
    gap: 17px;
}

.bhc-doctor-card__photo {
    position: relative;
    width: 112px;
    height: 126px;
    overflow: hidden;
    display: block;
    border: 1px solid #d8e7e5;
    border-radius: 18px;
    background: linear-gradient(145deg, #edf8f6, #f7fbfb);
}

.bhc-doctor-card__photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.bhc-doctor-card__fallback,
.bhc-profile-photo__fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #0c6e64;
    font-weight: 900;
    background: linear-gradient(145deg, #edf8f6, #f8fbfb);
}

.bhc-doctor-card__fallback { font-size: 24px; }

.bhc-doctor-card__identity {
    min-width: 0;
}

.bhc-doctor-department,
.bhc-profile-department {
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid #d6e8e5;
    border-radius: 99px;
    background: #f3faf8;
    color: #087064;
    font-size: 10px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: .035em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.bhc-doctor-card__identity h3 {
    margin: 10px 0 4px !important;
    min-width: 0;
    color: var(--bhc-ui-ink-strong) !important;
    font-size: clamp(19px, 1.45vw, 24px) !important;
    line-height: 1.13 !important;
    font-weight: 850 !important;
    letter-spacing: -.025em !important;
}

.bhc-doctor-card__identity h3 a {
    color: inherit !important;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}

.bhc-doctor-designation {
    margin: 0 !important;
    color: #607986;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.bhc-doctor-meta-row {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bhc-doctor-meta-row > span {
    padding: 6px 8px;
    border-radius: 8px;
    background: #f5f8fa;
    color: #607883;
    font-size: 10px;
    line-height: 1.15;
    font-weight: 700;
}

.bhc-doctor-meta-row b { color: #244b5c; }

.bhc-doctor-card__speciality {
    margin: 18px 0 16px;
    padding: 14px 15px;
    border: 1px solid #e1ecea;
    border-radius: 14px;
    background: linear-gradient(145deg, #fbfdfd, #f7fbfa);
}

.bhc-doctor-card__speciality > span {
    display: block;
    margin-bottom: 5px;
    color: #78909a;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bhc-doctor-card__speciality p {
    margin: 0 !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    color: #3c5b69;
    font-size: 12.5px;
    line-height: 1.55;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.bhc-doctor-card__actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.bhc-btn {
    min-width: 0;
    min-height: 43px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 850;
}

.bhc-btn--primary {
    border: 1px solid var(--bhc-ui-teal-dark);
    background: linear-gradient(135deg, var(--bhc-ui-teal-dark), #084a68);
    color: #fff !important;
    box-shadow: 0 9px 20px rgba(7, 89, 99, .16);
}

.bhc-btn--outline {
    border: 1px solid #bfd8d4;
    background: #fff;
    color: #086b62 !important;
}

.bhc-btn--light {
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .11);
    color: #fff !important;
}

.bhc-btn:hover { transform: translateY(-1px); }
.bhc-btn--primary:hover { box-shadow: 0 13px 27px rgba(7, 89, 99, .24); }
.bhc-btn--outline:hover { background: #f2faf8; border-color: #8fc2ba; }

.bhc-doctor-empty {
    grid-column: 1 / -1;
    min-height: 240px;
    padding: 42px 20px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    border: 1px dashed #cbdedb;
    border-radius: 22px;
    background: #f8fcfb;
}

.bhc-doctor-empty > span { font-size: 32px; color: var(--bhc-ui-teal); }
.bhc-doctor-empty h3 { margin: 12px 0 5px; color: var(--bhc-ui-ink); font-size: 22px; }
.bhc-doctor-empty p { margin: 0; color: var(--bhc-ui-muted); }

.bhc-doctor-pagination { margin-top: 28px; }

/* ---------- Doctor profile ---------- */
.bhc-doctor-profile-page {
    background: #f7fafb;
    color: var(--bhc-ui-ink);
}

.bhc-profile-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 30px 0 clamp(52px, 6vw, 82px);
    background:
        radial-gradient(circle at 77% 20%, rgba(46, 190, 162, .15), transparent 28%),
        linear-gradient(120deg, #06394c 0%, #07545e 47%, #0a6c66 100%);
}

.bhc-profile-hero::before {
    border-color: rgba(255, 255, 255, .09);
    box-shadow: 0 0 0 54px rgba(255, 255, 255, .025), 0 0 0 108px rgba(255, 255, 255, .018);
}

.bhc-profile-back {
    display: inline-flex;
    margin-bottom: 26px;
    color: rgba(255,255,255,.76) !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 800;
}

.bhc-profile-back:hover { color: #fff !important; }

.bhc-profile-hero__grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 58px);
}

.bhc-profile-photo-wrap { min-width: 0; }

.bhc-profile-photo {
    position: relative;
    width: 210px;
    height: 230px;
    overflow: hidden;
    border: 5px solid rgba(255,255,255,.9);
    border-radius: 28px;
    background: #eef8f6;
    box-shadow: 0 24px 54px rgba(0,0,0,.22);
}

.bhc-profile-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.bhc-profile-photo__fallback {
    color: #0a6d64;
    font-size: 38px;
}

.bhc-profile-available {
    width: fit-content;
    margin: -14px auto 0;
    position: relative;
    z-index: 3;
    padding: 7px 11px;
    display: block;
    border: 3px solid #07515a;
    border-radius: 99px;
    background: #fff;
    color: #087066;
    font-size: 9px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
}

.bhc-profile-hero__content {
    min-width: 0;
    max-width: 1100px;
}

.bhc-profile-department {
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.12);
    color: #dffcf5;
}

.bhc-profile-hero__content h1 {
    margin: 13px 0 7px !important;
    color: #fff !important;
    font-size: clamp(36px, 4.2vw, 64px) !important;
    line-height: 1.02 !important;
    font-weight: 850 !important;
    letter-spacing: -.045em !important;
    overflow-wrap: anywhere;
}

.bhc-profile-designation {
    margin: 0 !important;
    color: rgba(255,255,255,.76);
    font-size: clamp(16px, 1.35vw, 21px);
    line-height: 1.5;
    font-weight: 650;
}

.bhc-profile-highlights {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 14px;
    background: rgba(255,255,255,.13);
}

.bhc-profile-highlights > div {
    min-width: 0;
    padding: 12px 14px;
    background: rgba(5, 47, 59, .32);
}

.bhc-profile-highlights span,
.bhc-profile-highlights strong {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.bhc-profile-highlights span {
    margin-bottom: 4px;
    color: rgba(255,255,255,.57);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.bhc-profile-highlights strong {
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 800;
}

.bhc-profile-actions {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bhc-btn--large {
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13px;
}

.bhc-profile-actions .bhc-btn--primary {
    border-color: #fff;
    background: #fff;
    color: #07545e !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
}

.bhc-profile-actions .bhc-btn--light:hover { background: rgba(255,255,255,.19); }
.bhc-profile-actions .is-disabled { opacity: .58; cursor: not-allowed; transform: none; }

.bhc-profile-body { padding: clamp(28px, 4.2vw, 58px) 0 clamp(66px, 7vw, 96px); }

.bhc-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(310px, .78fr);
    align-items: start;
    gap: clamp(18px, 2.2vw, 30px);
}

.bhc-profile-main,
.bhc-profile-sidebar { min-width: 0; }

.bhc-profile-main {
    display: grid;
    gap: 20px;
}

.bhc-profile-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 22px;
}

.bhc-profile-card,
.bhc-profile-side-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce9e7;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(5,48,64,.065);
}

.bhc-profile-card { padding: clamp(20px, 2.2vw, 30px); }
.bhc-profile-side-card { padding: 22px; }

.bhc-profile-card__head {
    margin-bottom: 20px;
    padding-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    border-bottom: 1px solid #e6efed;
}

.bhc-card-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #e8f7f4, #f4faf9);
    color: #0a7065;
    font-size: 11px;
    font-weight: 900;
}

.bhc-profile-card h2,
.bhc-profile-side-card h2 {
    margin: 4px 0 0 !important;
    color: var(--bhc-ui-ink-strong) !important;
    line-height: 1.15 !important;
    font-weight: 850 !important;
    letter-spacing: -.025em !important;
}

.bhc-profile-card h2 { font-size: clamp(22px, 2vw, 29px) !important; }
.bhc-profile-side-card h2 { font-size: 20px !important; }

.bhc-rich-content {
    min-width: 0;
    color: #3f5b68;
    font-size: 15px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.bhc-rich-content > *:first-child { margin-top: 0 !important; }
.bhc-rich-content > *:last-child { margin-bottom: 0 !important; }
.bhc-rich-content img,
.bhc-rich-content iframe,
.bhc-rich-content video,
.bhc-rich-content table { max-width: 100% !important; }
.bhc-rich-content img { height: auto !important; }
.bhc-rich-content table { display: block; overflow-x: auto; }

.bhc-muted-copy {
    margin: 0;
    color: #718791;
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.bhc-schedule-list { display: grid; gap: 10px; }

.bhc-schedule-day {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(112px, .28fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #dfebe9;
    border-radius: 14px;
    background: #fbfdfd;
}

.bhc-schedule-day__name {
    padding: 14px;
    display: flex;
    align-items: center;
    background: #eff8f6;
    color: #0a695f;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 900;
}

.bhc-schedule-day__slots { min-width: 0; padding: 8px 12px; }

.bhc-schedule-slot {
    min-width: 0;
    padding: 8px 0;
    display: grid;
    grid-template-columns: minmax(110px, .85fr) minmax(120px, 1.3fr) minmax(86px, .65fr);
    gap: 10px;
    border-bottom: 1px dashed #e1ebe9;
    color: #55707d;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
}

.bhc-schedule-slot:last-child { border-bottom: 0; }
.bhc-schedule-slot > * { min-width: 0; overflow-wrap: anywhere; }
.bhc-schedule-time { color: #174c61; font-weight: 900; }

.bhc-schedule-empty {
    min-height: 124px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px dashed #c8dcda;
    border-radius: 15px;
    background: linear-gradient(145deg, #f8fcfb, #f2f8f7);
}

.bhc-schedule-empty > span {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--bhc-ui-teal);
    font-size: 21px;
    box-shadow: 0 8px 20px rgba(5,48,64,.07);
}

.bhc-schedule-empty strong { display: block; color: #214b5d; font-size: 14px; }
.bhc-schedule-empty p { margin: 4px 0 0; color: #70858f; font-size: 12px; line-height: 1.5; }

.bhc-profile-info-list {
    margin: 17px 0 0;
    display: grid;
}

.bhc-profile-info-list > div {
    min-width: 0;
    padding: 11px 0;
    display: grid;
    grid-template-columns: minmax(92px, .74fr) minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px solid #e7efee;
}

.bhc-profile-info-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.bhc-profile-info-list dt { color: #718791; font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.bhc-profile-info-list dd { min-width: 0; margin: 0; color: #244d5e; font-size: 12px; line-height: 1.45; font-weight: 800; overflow-wrap: anywhere; }
.bhc-profile-info-list a { color: #087064 !important; text-decoration: none !important; }
.bhc-profile-info-list a:hover { text-decoration: underline !important; }

.bhc-specialization-list {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.bhc-specialization-list > span {
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid #d6e7e4;
    border-radius: 9px;
    background: #f4faf8;
    color: #266155;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.bhc-qualification-list { margin-top: 15px; display: grid; gap: 10px; }

.bhc-qualification-item {
    min-width: 0;
    padding: 12px 13px;
    display: grid;
    gap: 3px;
    border-left: 3px solid #0a7b6e;
    border-radius: 0 10px 10px 0;
    background: #f8fbfb;
}

.bhc-qualification-item strong { color: #234d5e; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.bhc-qualification-item span { color: #6b818c; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.bhc-qualification-item small { color: #0a7065; font-size: 10px; font-weight: 900; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .bhc-doctor-search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bhc-doctor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bhc-profile-layout { grid-template-columns: minmax(0, 1.45fr) minmax(290px, .8fr); }
}

@media (max-width: 991.98px) {
    .bhc-doctors-hero__inner { align-items: center; }
    .bhc-doctors-hero__badge { flex-basis: 165px; min-height: 120px; }
    .bhc-profile-hero__grid { grid-template-columns: 180px minmax(0, 1fr); gap: 28px; }
    .bhc-profile-photo { width: 176px; height: 198px; }
    .bhc-profile-layout { grid-template-columns: minmax(0, 1fr); }
    .bhc-profile-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bhc-profile-contact-card { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
    .bhc-doctors-hero { padding: 42px 0 82px; }
    .bhc-doctors-hero__inner { align-items: flex-start; flex-direction: column; gap: 22px; }
    .bhc-doctors-hero__badge { min-height: 0; flex: none; width: auto; padding: 14px 18px; flex-direction: row; align-items: center; gap: 10px; border-radius: 16px; }
    .bhc-doctors-hero__badge strong { font-size: 29px; }
    .bhc-doctors-hero__badge span { margin-top: 0; max-width: 120px; }
    .bhc-doctor-search-wrap { margin-top: -38px; }
    .bhc-doctor-search-card { border-radius: 18px; }
    .bhc-doctor-search-form { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .bhc-search-field > span { margin-bottom: 5px; }
    .bhc-doctor-grid { grid-template-columns: minmax(0, 1fr); }
    .bhc-results-head { align-items: flex-start; flex-direction: column; gap: 10px; }
    .bhc-results-head > p { margin: 0; }

    .bhc-profile-hero { padding: 24px 0 48px; }
    .bhc-profile-back { margin-bottom: 20px; }
    .bhc-profile-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; text-align: center; }
    .bhc-profile-photo-wrap { width: fit-content; margin: 0 auto; }
    .bhc-profile-photo { width: 184px; height: 202px; }
    .bhc-profile-department { margin-inline: auto; }
    .bhc-profile-highlights { grid-template-columns: minmax(0, 1fr); text-align: left; }
    .bhc-profile-actions { justify-content: center; }
    .bhc-profile-sidebar { grid-template-columns: minmax(0, 1fr); }
    .bhc-profile-contact-card { grid-column: auto; }
    .bhc-schedule-day { grid-template-columns: minmax(0, 1fr); }
    .bhc-schedule-day__name { padding: 10px 13px; }
    .bhc-schedule-slot { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (max-width: 479.98px) {
    .bhc-doctors-shell { padding-left: 13px !important; padding-right: 13px !important; }
    .bhc-doctors-hero__copy h1 { font-size: 34px !important; }
    .bhc-doctor-card { padding: 15px; border-radius: 18px; }
    .bhc-doctor-card__top { grid-template-columns: 88px minmax(0, 1fr); gap: 13px; }
    .bhc-doctor-card__photo { width: 88px; height: 102px; border-radius: 14px; }
    .bhc-doctor-card__identity h3 { font-size: 19px !important; }
    .bhc-doctor-card__actions { grid-template-columns: minmax(0, 1fr); }
    .bhc-doctor-card__speciality { margin-top: 14px; }
    .bhc-profile-actions { flex-direction: column; }
    .bhc-profile-actions .bhc-btn { width: 100%; }
    .bhc-profile-card, .bhc-profile-side-card { border-radius: 17px; }
    .bhc-profile-info-list > div { grid-template-columns: minmax(84px, .7fr) minmax(0, 1fr); }
    .bhc-schedule-empty { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .bhc-doctor-card,
    .bhc-btn,
    .bhc-doctor-search-button { transition: none !important; }
}
