/*!
 * doctordetails.css — redesigned /doctor-details/{slug} page
 * Same conventions as hospitaldetails.css: `.dd-` prefix, teal/navy tokens on
 * `.dd-section`, and every icon rule setting BOTH color and stroke with
 * !important (the theme greys out bare <span> glyphs otherwise).
 */

.dd-section {
    /* theme colours come from the admin Basic Settings pickers */
    --dd-teal: var(--site-base, #09a9b7);
    --dd-teal-dark: var(--site-base-dark, #087e8b);
    --dd-navy: var(--site-secondary, #0d1c51);
    --dd-text: #24355e;
    --dd-muted: #6b7897;
    --dd-line: #dfeaf0;
    --dd-bg: var(--site-base-bg, #f5fbfd);
    --dd-soft: var(--site-base-tint, #eaf9fb);
    --dd-amber: #f5a623;
    --dd-radius: 16px;
    --dd-shadow: 0 8px 26px rgba(20, 70, 100, .08);
}

.dd-section h1, .dd-section h2, .dd-section h3, .dd-section h4, .dd-section p { margin: 0; }
.dd-section a { text-decoration: none; }

/* mirrors the theme container */
.dd-wrap {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-right: var(--bs-gutter-x, 12px);
    padding-left: var(--bs-gutter-x, 12px);
}
@media (min-width: 576px)  { .dd-wrap { max-width: 540px; } }
@media (min-width: 768px)  { .dd-wrap { max-width: 720px; } }
@media (min-width: 992px)  { .dd-wrap { max-width: 960px; } }
@media (min-width: 1200px) { .dd-wrap { max-width: 1140px; } }
@media (min-width: 1500px) { .dd-wrap { max-width: 1440px; } }

/* ------------------------------------------------------------- breadcrumb */
.dd-crumb { padding: 12px 0; background: #fff; border-bottom: 1px solid var(--dd-line); }
.dd-crumb ol {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px;
}
.dd-crumb li { color: var(--dd-muted); }
.dd-crumb li + li::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "Font Awesome 5 Pro";
    font-weight: 900; margin-right: 8px; color: #b6c2d6; font-size: 11px;
}
.dd-crumb a { color: var(--dd-muted); }
.dd-crumb a:hover { color: var(--dd-teal-dark); }
.dd-crumb [aria-current] { color: var(--dd-teal-dark); font-weight: 600; }

/* ============================================================== top area */
.dd-top { background: var(--dd-bg); padding: 22px 0 24px; }

.dd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 352px;
    gap: 22px;
    align-items: start;
}
@media (max-width: 1199px) { .dd-layout { grid-template-columns: minmax(0, 1fr) 324px; } }
@media (max-width: 991px)  { .dd-layout { grid-template-columns: minmax(0, 1fr); } }

/* On mobile the profile column spreads out so the booking sidebar sits
   between the stat widgets and the tab panels. */
@media (max-width: 991px) {
    .dd-layout > div:first-child { display: contents; }
    .dd-profile    { order: 1; }
    .dd-stats      { order: 2; }
    .dd-side       { order: 3; }
    .dd-tabs-wrap  { order: 4; }
    .dd-body       { order: 5; }
}

.dd-main { min-width: 0; }

/* ---------------------------------------------------------- profile card */
.dd-profile {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--dd-line);
    border-radius: var(--dd-radius);
    box-shadow: var(--dd-shadow);
}
@media (max-width: 767px) { .dd-profile { grid-template-columns: 1fr; gap: 16px; padding: 16px; } }

.dd-profile__media {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--site-base-tint-2, #eef4f7);
    aspect-ratio: 4 / 3;
}
.dd-profile__media img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; display: block; }

.dd-profile__badges {
    position: absolute; left: 10px; top: 10px; right: 10px;
    display: flex; flex-wrap: wrap; gap: 6px;
}
.dd-chipflag {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    font-size: 11px; font-weight: 600;
    color: var(--dd-teal-dark) !important;
}
.dd-chipflag svg {
    width: 12px; height: 12px;
    color: var(--dd-teal) !important;
    stroke: var(--dd-teal) !important;
}
.dd-chipflag--live { color: #1f9254 !important; }
.dd-chipflag--live svg { color: #1f9254 !important; stroke: #1f9254 !important; }

.dd-profile__body { min-width: 0; display: flex; flex-direction: column; }

.dd-profile__name {
    font-size: 28px; line-height: 1.2; font-weight: 700;
    letter-spacing: -.4px; color: var(--dd-navy);
}
@media (max-width: 575px) { .dd-profile__name { font-size: 22px; } }

.dd-profile__role { font-size: 14px; font-weight: 600; color: var(--dd-teal-dark); margin-top: 4px; }

.dd-profile__meta {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 6px 14px; margin-top: 10px;
    font-size: 13px; color: var(--dd-muted);
}
.dd-profile__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.dd-profile__meta svg {
    width: 15px; height: 15px; flex: 0 0 auto;
    color: #9aa6bd !important; stroke: #9aa6bd !important;
}
.dd-profile__meta svg.is-teal { color: var(--dd-teal) !important; stroke: var(--dd-teal) !important; }

.dd-stars { display: inline-flex; gap: 2px; }
.dd-stars svg {
    width: 15px; height: 15px;
    color: var(--dd-amber) !important;
    stroke: var(--dd-amber) !important;
}
.dd-stars svg.is-off { color: #d5dceb !important; stroke: #d5dceb !important; }

.dd-profile__bio {
    margin-top: 12px;
    font-size: 13.5px; line-height: 1.68; color: var(--dd-muted);
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
    overflow: hidden;
}

.dd-profile__foot {
    display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
    margin-top: auto; padding-top: 16px;
}
.dd-fee b { font-size: 20px; font-weight: 800; color: var(--dd-navy); }
.dd-fee span { font-size: 12px; color: var(--dd-muted); display: block; }

/* ------------------------------------------------------------- stat row */
.dd-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}
.dd-stat {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 14px;
    background: #fff;
    border: 1px solid var(--dd-line);
    border-radius: 13px;
}
.dd-stat__ico {
    flex: 0 0 auto;
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
    background: var(--dd-soft);
}
.dd-stat__ico svg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: var(--dd-teal-dark) !important;
    stroke: var(--dd-teal-dark) !important;
}
.dd-stat b { display: block; font-size: 15px; font-weight: 700; color: var(--dd-navy); line-height: 1.2; }
.dd-stat span { display: block; font-size: 11.5px; color: var(--dd-muted); margin-top: 1px; }
@media (max-width: 575px) { .dd-stats { grid-template-columns: repeat(2, 1fr); } }

/* ================================================================== tabs */
/* Sticky lives on the wrapper, NOT on .dd-tabs — an element that scrolls on
   any axis becomes its own scroll container, and sticky on itself is then
   measured against that container, so it scrolls away. */
.dd-tabs-wrap {
    position: sticky;
    top: 0;
    z-index: 40;
    margin-top: 16px;
    background: #fff;
    border-bottom: 1px solid var(--dd-line);
    box-shadow: 0 2px 8px rgba(20, 70, 100, .06);
}
.dd-tabs {
    display: flex; align-items: stretch; gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.dd-tabs::-webkit-scrollbar { display: none; }
.dd-tab {
    position: relative;
    flex: 0 0 auto;
    display: flex; align-items: center; gap: 7px;
    padding: 14px 16px;
    font-size: 14px; font-weight: 600; color: var(--dd-muted);
    background: none; border: 0; cursor: pointer;
    white-space: nowrap;
}
.dd-tab svg {
    width: 16px; height: 16px;
    color: #9fb0c9 !important;
    stroke: #9fb0c9 !important;
}
.dd-tab::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
    height: 3px; border-radius: 3px 3px 0 0;
    background: transparent; transition: background .2s ease;
}
.dd-tab:hover { color: var(--dd-teal-dark); }
.dd-tab.is-active { color: var(--dd-teal-dark); }
.dd-tab.is-active svg { color: var(--dd-teal) !important; stroke: var(--dd-teal) !important; }
.dd-tab.is-active::after { background: var(--dd-teal); }

/* =============================================================== content */
.dd-body { padding: 4px 0 0; }

.dd-panel {
    background: #fff;
    border: 1px solid var(--dd-line);
    border-radius: var(--dd-radius);
    box-shadow: var(--dd-shadow);
    padding: 18px 20px;
    margin-bottom: 18px;
}
.dd-panel:last-child { margin-bottom: 0; }
.dd-panel__title { font-size: 19px; font-weight: 700; color: var(--dd-navy); letter-spacing: -.2px; }
.dd-panel__sub { font-size: 13.5px; line-height: 1.7; color: var(--dd-muted); margin-top: 8px; }

.dd-block__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 14px;
}
.dd-more {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--dd-teal-dark) !important;
    white-space: nowrap;
}
.dd-more svg {
    width: 15px; height: 15px;
    color: var(--dd-teal-dark) !important;
    stroke: var(--dd-teal-dark) !important;
    transition: transform .2s ease;
}
.dd-more:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------------- quote */
.dd-quote {
    position: relative;
    margin-top: 14px; padding: 15px 18px 15px 44px;
    background: var(--dd-bg);
    border-radius: 13px;
    border-left: 3px solid var(--dd-teal);
}
.dd-quote__ico {
    position: absolute; left: 14px; top: 14px;
    width: 20px; height: 20px;
    color: color-mix(in srgb, var(--site-base) 35%, transparent) !important;
    stroke: color-mix(in srgb, var(--site-base) 35%, transparent) !important;
}
.dd-quote p { font-size: 13.5px; line-height: 1.7; color: var(--dd-text); font-style: italic; }
.dd-quote cite { display: block; margin-top: 8px; font-size: 12px; font-style: normal; font-weight: 600; color: var(--dd-muted); }

/* ------------------------------------------------------ special interests */
.dd-interests {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 14px;
}
@media (max-width: 1199px) { .dd-interests { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px)  { .dd-interests { grid-template-columns: repeat(2, 1fr); } }

.dd-interest {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 15px 8px; text-align: center;
    background: var(--dd-bg);
    border: 1px solid transparent; border-radius: 13px;
    transition: all .22s ease;
}
.dd-interest__ico {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
    background: #fff;
    box-shadow: 0 2px 8px rgba(20, 70, 100, .08);
}
.dd-interest__ico svg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: var(--dd-teal) !important;
    stroke: var(--dd-teal) !important;
}
.dd-interest b { font-size: 12px; font-weight: 600; color: var(--dd-text); line-height: 1.35; }
.dd-interest:hover { border-color: var(--site-base-tint-4, #bfe7ed); background: #fff; transform: translateY(-3px); }

/* ------------------------------------------------------- who can consult */
.dd-consult {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px 20px;
    margin-top: 14px;
}
@media (max-width: 575px) { .dd-consult { grid-template-columns: 1fr; } }
.dd-consult li {
    display: flex; align-items: flex-start; gap: 9px;
    list-style: none; padding: 9px 0;
    border-bottom: 1px dashed var(--dd-line);
    font-size: 13px; color: var(--dd-text);
}
.dd-consult li:last-child { border-bottom: 0; }
.dd-consult svg {
    width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px;
    color: #1f9254 !important; stroke: #1f9254 !important;
}

/* ---------------------------------------------------------- timeline */
.dd-timeline { position: relative; margin-top: 16px; padding-left: 26px; }
.dd-timeline::before {
    content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
    width: 2px; background: linear-gradient(180deg, var(--dd-teal), #d9edf2);
}
.dd-tl { position: relative; padding-bottom: 20px; }
.dd-tl:last-child { padding-bottom: 0; }
.dd-tl::before {
    content: ""; position: absolute; left: -25px; top: 5px;
    width: 12px; height: 12px; border-radius: 50%;
    background: #fff; border: 3px solid var(--dd-teal);
}
.dd-tl__period {
    display: inline-block;
    font-size: 11.5px; font-weight: 700;
    color: var(--dd-teal-dark) !important;
    background: var(--dd-soft);
    padding: 2px 10px; border-radius: 999px;
}
.dd-tl__pos { font-size: 14.5px; font-weight: 700; color: var(--dd-navy); margin-top: 7px; }
.dd-tl__where { font-size: 12.5px; color: var(--dd-muted); margin-top: 2px; }
.dd-tl__desc { font-size: 13px; line-height: 1.65; color: var(--dd-muted); margin-top: 6px; }

/* ---------------------------------------------------------- education */
.dd-edu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 14px;
}
@media (max-width: 991px) { .dd-edu { grid-template-columns: 1fr; } }

.dd-edu__item {
    position: relative;
    padding: 16px;
    background: var(--dd-bg);
    border: 1px solid transparent; border-radius: 13px;
    transition: all .22s ease;
}
.dd-edu__item:hover { border-color: var(--site-base-tint-4, #bfe7ed); background: #fff; box-shadow: var(--dd-shadow); }
.dd-edu__ico {
    width: 38px; height: 38px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
    background: #fff;
    box-shadow: 0 2px 6px rgba(20, 70, 100, .08);
}
.dd-edu__ico svg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: var(--dd-teal-dark) !important;
    stroke: var(--dd-teal-dark) !important;
}
.dd-edu__deg { font-size: 14.5px; font-weight: 700; color: var(--dd-navy); margin-top: 11px; line-height: 1.3; }
.dd-edu__inst { font-size: 13px; color: var(--dd-teal-dark); font-weight: 600; margin-top: 4px; }
.dd-edu__meta {
    display: flex; flex-wrap: wrap; gap: 5px 12px;
    margin-top: 7px; font-size: 11.5px; color: var(--dd-muted);
}
.dd-edu__meta span { display: inline-flex; align-items: center; gap: 4px; }
.dd-edu__meta svg {
    width: 13px; height: 13px;
    color: #9aa6bd !important; stroke: #9aa6bd !important;
}

/* ------------------------------------------------------------- services */
.dd-services {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-top: 14px;
}
.dd-service {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 15px; border-radius: 999px;
    background: var(--dd-bg);
    border: 1px solid var(--site-base-tint-3, #d9edf2);
    font-size: 12.5px; font-weight: 600; color: var(--dd-text);
    transition: all .2s ease;
}
.dd-service svg {
    width: 15px; height: 15px;
    color: var(--dd-teal) !important; stroke: var(--dd-teal) !important;
}
.dd-service:hover { background: var(--dd-soft); border-color: var(--dd-teal); }

/* ------------------------------------------------------------------ btn */
.dd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 20px;
    border: 1px solid var(--dd-teal); border-radius: 10px;
    background: var(--dd-teal); color: #fff !important;
    font-size: 13.5px; font-weight: 600; line-height: 1.2;
    cursor: pointer; transition: all .2s ease; text-align: center;
}
.dd-btn:hover { background: var(--dd-teal-dark); border-color: var(--dd-teal-dark); color: #fff !important; }
.dd-btn svg { width: 16px; height: 16px; color: #fff !important; stroke: #fff !important; }
.dd-btn--block { display: flex; width: 100%; }
.dd-btn--outline { background: #fff; color: var(--dd-teal-dark) !important; border-color: var(--site-base-tint-4, #b9e3e9); }
.dd-btn--outline:hover { background: var(--dd-soft); color: var(--dd-teal-dark) !important; }
.dd-btn--sm { padding: 8px 14px; font-size: 12.5px; }

/* -------------------------------------------------------------- reviews */
.dd-score {
    display: flex; align-items: center; gap: 22px;
    padding: 16px 18px; margin-top: 14px;
    border: 1px solid var(--dd-line); border-radius: 14px;
    background: var(--dd-bg);
}
@media (max-width: 575px) { .dd-score { flex-direction: column; gap: 12px; text-align: center; } }
.dd-score__num { text-align: center; flex: 0 0 auto; }
.dd-score__num b { display: block; font-size: 34px; font-weight: 800; color: var(--dd-navy); line-height: 1; }
.dd-score__num span { display: flex; justify-content: center; gap: 2px; margin-top: 6px; }
.dd-score__num span svg { width: 14px; height: 14px; color: var(--dd-amber) !important; stroke: var(--dd-amber) !important; }
.dd-score__num small { display: block; font-size: 11.5px; color: var(--dd-muted); margin-top: 5px; }
.dd-score__bars { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.dd-score__bar { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--dd-muted); }
.dd-score__bar i { flex: 0 0 auto; font-style: normal; width: 34px; }
.dd-score__bar u { flex: 1 1 auto; height: 7px; border-radius: 4px; background: #e3edf2; overflow: hidden; text-decoration: none; }
.dd-score__bar u s { display: block; height: 100%; border-radius: 4px; background: var(--dd-teal); text-decoration: none; }
.dd-score__bar b { flex: 0 0 auto; width: 26px; text-align: right; color: var(--dd-text); }

.dd-revs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
@media (max-width: 991px) { .dd-revs { grid-template-columns: 1fr; } }
.dd-rev {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--dd-line); border-radius: 14px;
    background: #fff;
}
.dd-rev__ava {
    flex: 0 0 auto;
    width: 42px; height: 42px; border-radius: 50%;
    overflow: hidden; position: relative;
    background: var(--dd-soft);
    display: flex; align-items: center; justify-content: center;
}
.dd-rev__ava img { width: 100%; height: 100%; object-fit: cover; }
.dd-rev__ava span { font-size: 15px; font-weight: 700; color: var(--dd-teal-dark) !important; text-transform: uppercase; }
.dd-rev__body { min-width: 0; }
.dd-rev__name { font-size: 14px; font-weight: 700; color: var(--dd-navy); }
.dd-rev__when { font-size: 11.5px; color: var(--dd-muted); margin-top: 1px; }
.dd-rev__rating { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.dd-rev__rating .dd-stars svg { width: 13px; height: 13px; }
.dd-rev__rating b { font-size: 12px; color: var(--dd-text); }
.dd-rev__text { font-size: 13px; line-height: 1.62; color: var(--dd-muted); margin-top: 6px; }

/* ------------------------------------------------------------------ FAQ */
.dd-faq { margin-top: 14px; border-top: 1px solid var(--dd-line); }
.dd-faq__item { border-bottom: 1px solid var(--dd-line); }
.dd-faq__q {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    width: 100%; padding: 15px 4px;
    background: none; border: 0; cursor: pointer; text-align: left;
    font-size: 14px; font-weight: 600; color: var(--dd-text);
    transition: color .2s ease;
}
.dd-faq__q:hover { color: var(--dd-teal-dark); }
.dd-faq__sign {
    flex: 0 0 auto;
    position: relative;
    width: 22px; height: 22px; border-radius: 6px;
    background: var(--dd-soft);
    display: flex; align-items: center; justify-content: center;
}
.dd-faq__sign::before, .dd-faq__sign::after {
    content: ""; position: absolute;
    background: var(--dd-teal-dark); border-radius: 2px;
}
.dd-faq__sign::before { width: 11px; height: 2px; }
.dd-faq__sign::after  { width: 2px; height: 11px; transition: transform .25s ease; }
.dd-faq__item.is-open .dd-faq__sign::after { transform: scaleY(0); }
.dd-faq__a {
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
}
.dd-faq__a p {
    padding: 0 4px 15px;
    font-size: 13px; line-height: 1.7; color: var(--dd-muted);
}

/* ------------------------------------------------------- similar doctors */
.dd-docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
@media (max-width: 1199px) { .dd-docs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .dd-docs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px)  { .dd-docs { grid-template-columns: 1fr; } }

.dd-doc {
    display: flex; gap: 11px; align-items: flex-start;
    padding: 13px;
    border: 1px solid var(--dd-line); border-radius: 13px;
    background: #fff;
    transition: all .22s ease;
}
.dd-doc:hover { border-color: var(--site-base-tint-4, #bfe7ed); box-shadow: var(--dd-shadow); transform: translateY(-3px); }
.dd-doc__ava {
    flex: 0 0 auto;
    width: 54px; height: 54px; border-radius: 12px;
    overflow: hidden; position: relative; background: var(--dd-soft);
}
.dd-doc__ava img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.dd-doc__body { min-width: 0; flex: 1 1 auto; }
.dd-doc__name {
    font-size: 13.5px; font-weight: 700; color: var(--dd-navy); line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dd-doc__role { font-size: 11.5px; color: var(--dd-teal-dark); font-weight: 600; margin-top: 2px; }
.dd-doc__rating { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11px; color: var(--dd-muted); }
.dd-doc__rating .dd-stars svg { width: 11px; height: 11px; }
.dd-doc__rating b { color: var(--dd-text); }
.dd-doc__foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; margin-top: 9px;
}
.dd-doc__fee { font-size: 13.5px; font-weight: 800; color: var(--dd-navy); }

/* ================================================================ sidebar */
.dd-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 991px) { .dd-side { position: static; } }

.dd-box {
    background: #fff;
    border: 1px solid var(--dd-line);
    border-radius: var(--dd-radius);
    box-shadow: var(--dd-shadow);
    padding: 16px 17px;
}
.dd-box__head { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.dd-box__ico {
    flex: 0 0 auto;
    width: 32px; height: 32px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
    background: var(--dd-soft);
}
.dd-box__ico svg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: var(--dd-teal-dark) !important;
    stroke: var(--dd-teal-dark) !important;
}
.dd-box__title { font-size: 16px; font-weight: 700; color: var(--dd-navy); }

/* ------------------------------------------------------------- booking */
.dd-modes {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    padding: 4px; margin-bottom: 14px;
    background: var(--dd-bg); border-radius: 11px;
}
.dd-mode {
    padding: 9px 6px; border: 0; border-radius: 8px;
    background: transparent; cursor: pointer;
    font-size: 12.5px; font-weight: 600; color: var(--dd-muted);
    transition: all .2s ease; text-align: center;
}
.dd-mode.is-active { background: var(--dd-teal); color: #fff !important; box-shadow: 0 3px 10px color-mix(in srgb, var(--site-base) 30%, transparent); }

.dd-form { display: flex; flex-direction: column; gap: 12px; }
.dd-lab { display: block; }
.dd-lab > span { display: block; font-size: 12px; font-weight: 600; color: var(--dd-text); margin-bottom: 6px; }
.dd-lab__in {
    display: flex; align-items: center; gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--dd-line); border-radius: 10px;
    background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.dd-lab__in:focus-within { border-color: var(--dd-teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-base) 12%, transparent); }
.dd-lab__in svg {
    width: 17px; height: 17px; flex: 0 0 auto;
    color: var(--site-base-dark, #087e8b) !important; stroke: var(--site-base-dark, #087e8b) !important;
}
.dd-lab__in input, .dd-lab__in select {
    flex: 1 1 auto; min-width: 0;
    border: 0; outline: 0; background: transparent;
    padding: 11px 0; font-size: 13px; color: var(--dd-text); font-family: inherit;
}
.dd-lab__in select { appearance: none; cursor: pointer; }
.dd-lab__in input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; }

/* the seven-day strip */
.dd-week {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px;
}
.dd-day {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 8px 2px;
    border: 1px solid var(--dd-line); border-radius: 9px;
    background: #fff; cursor: pointer;
    transition: all .2s ease;
}
.dd-day em { font-style: normal; font-size: 10px; color: var(--dd-muted); }
.dd-day b { font-size: 13px; font-weight: 700; color: var(--dd-text); }
.dd-day.is-off { opacity: .38; pointer-events: none; }
.dd-day.is-active, .dd-day:hover:not(.is-off) { background: var(--dd-teal); border-color: var(--dd-teal); }
.dd-day.is-active em, .dd-day.is-active b, .dd-day:hover:not(.is-off) em, .dd-day:hover:not(.is-off) b { color: #fff !important; }

/* the time-slot grid */
.dd-slots {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
}
.dd-slot {
    padding: 9px 4px;
    border: 1px solid var(--dd-line); border-radius: 9px;
    background: #fff; cursor: pointer;
    font-size: 12px; font-weight: 600; color: var(--dd-text);
    transition: all .2s ease; text-align: center;
}
.dd-slot:hover { border-color: var(--dd-teal); background: var(--dd-soft); }
.dd-slot.is-active { background: var(--dd-teal); border-color: var(--dd-teal); color: #fff !important; }

.dd-note {
    font-size: 12px; color: var(--dd-muted);
    padding: 11px; text-align: center;
    border: 1px dashed var(--dd-line); border-radius: 10px;
    background: var(--dd-bg);
}

/* info rows inside the booking card */
.dd-rows { margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--dd-line); }
.dd-rows__row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.dd-rows__ico {
    flex: 0 0 auto;
    width: 30px; height: 30px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative; background: var(--dd-soft);
}
.dd-rows__ico svg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: var(--dd-teal-dark) !important; stroke: var(--dd-teal-dark) !important;
}
.dd-rows__lab { font-size: 12px; color: var(--dd-muted); }
.dd-rows__val { font-size: 13px; font-weight: 700; color: var(--dd-text); }
.dd-rows__val.is-muted { font-weight: 600; color: var(--dd-muted); }
.dd-rows__fees { margin-left: auto; font-size: 15px; font-weight: 800; color: var(--dd-navy); }

/* --------------------------------------------------- hospital & location */
.dd-hosp { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 12px; }
.dd-hosp__img {
    flex: 0 0 auto;
    width: 62px; height: 62px; border-radius: 12px;
    overflow: hidden; background: var(--site-base-tint-2, #eef4f7);
}
.dd-hosp__img img { width: 100%; height: 100%; object-fit: cover; }
.dd-hosp__name { font-size: 14.5px; font-weight: 700; color: var(--dd-navy); line-height: 1.3; }
.dd-hosp__addr {
    display: flex; align-items: flex-start; gap: 5px;
    font-size: 12px; color: var(--dd-muted); margin-top: 5px; line-height: 1.5;
}
.dd-hosp__addr svg {
    width: 13px; height: 13px; flex: 0 0 auto; margin-top: 1px;
    color: #9aa6bd !important; stroke: #9aa6bd !important;
}
.dd-map {
    border-radius: 12px; overflow: hidden;
    border: 1px solid var(--dd-line);
    aspect-ratio: 16 / 10; background: var(--dd-bg);
}
.dd-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.dd-map__cta { margin-top: 11px; }

/* ------------------------------------------------------------------ help */
.dd-help { text-align: center; background: linear-gradient(180deg, #f6fcfd, #e9f7fa); }
.dd-help__ico {
    width: 54px; height: 54px; margin: 0 auto 11px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
    background: #fff; box-shadow: 0 3px 12px rgba(20, 70, 100, .1);
}
.dd-help__ico svg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: var(--dd-teal) !important; stroke: var(--dd-teal) !important;
}
.dd-help__title { font-size: 16px; font-weight: 700; color: var(--dd-navy); }
.dd-help__text { font-size: 12.5px; line-height: 1.6; color: var(--dd-muted); margin-top: 6px; }
.dd-help__cta { margin-top: 13px; }

/* ----------------------------------------------------------------- empty */
.dd-empty {
    text-align: center; padding: 24px 14px;
    border: 1px dashed var(--dd-line); border-radius: 14px;
    background: var(--dd-bg);
}
.dd-empty__ico {
    width: 46px; height: 46px; margin: 0 auto 10px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative; background: #fff;
}
.dd-empty__ico svg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    color: #a9bdd0 !important; stroke: #a9bdd0 !important;
}
.dd-empty h4 { font-size: 15px; font-weight: 700; color: var(--dd-text); }
.dd-empty p { font-size: 13px; color: var(--dd-muted); margin-top: 4px; }

/* ============================================================= responsive */
@media (max-width: 767px) {
    .dd-panel { padding: 15px 15px; }
    .dd-box { padding: 14px 15px; }
    .dd-panel__title { font-size: 17px; }
    .dd-profile__foot { margin-top: 16px; }
    .dd-tab { padding: 12px 13px; font-size: 13px; }
}

@media (hover: none), (pointer: coarse) {
    .dd-interest:hover, .dd-doc:hover, .dd-edu__item:hover { transform: none; }
}


.dd-lab > .dd-in,
.dd-lab > .dd-phone {
    display: flex;
    align-items: center;
}
/* ---------------------------------------------------------------------------
 * Form control wrappers must stay flex rows.
 *
 * `.xx-lab > span { display: block }` (used for the field label text) also
 * matches the `.xx-in` wrapper, because that wrapper is a direct span child of
 * the label. Its specificity (0,1,1) beat `.xx-in` (0,1,0), so the wrapper
 * collapsed to a block and the icon was pushed onto its own line above the
 * input. Re-declaring the wrapper as `.xx-lab > .xx-in` (0,2,0) wins and puts
 * the icon, the control and the optional trailing button on one line again.
 * --------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------
 * Keep the BEM input wrapper a flex row.
 *
 * `.dd-lab > span { display: block }` styles the field label text, but
 * the `.xx-lab__in` wrapper is also a direct span child of that label, so
 * the higher-specificity block rule collapsed it and pushed the icon onto
 * its own line. Re-declare it through the label so it wins.
 * ------------------------------------------------------------------------- */
.dd-lab > .dd-lab__in {
    display: flex;
    align-items: center;
}

/* =========================================================================
 * doctor-details — social profiles row, Services grid, Hospital & Location tab
 *
 * Appended after the original sheet so these rules win over the base
 * .dd-panel / .dd-map definitions without needing !important.
 * Social tiles follow the same `data-net` -> brand-colour mapping already
 * used by .hd-social__btn in hospitaldetails.css.
 * ========================================================================= */

/* ------------------------------------------------ social profiles (header) */
.dd-social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.dd-social__label {
    font-size: 14px;
    font-weight: 700;
    color: var(--dd-navy, #0d1c51);
    white-space: nowrap;
}

.dd-social__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* Brand tiles. The reference uses rounded squares, not circles — the glyph
   inside is solid white (the icon partial marks those paths with
   fill="currentColor" stroke="none"), so setting color alone is enough;
   stroke is set too because the theme greys out bare <svg> children. */
.dd-social__tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--dd-navy);
    color: #fff !important;
    stroke: #fff !important;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    flex: 0 0 auto;
}

.dd-social__tile svg { color: #fff !important; stroke: #fff !important; }

.dd-social__tile:hover {
    transform: translateY(-3px);
    opacity: .92;
    box-shadow: var(--dd-shadow);
}

.dd-social__tile[data-net="facebook"]  { background: #1877f2; }
.dd-social__tile[data-net="instagram"] { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.dd-social__tile[data-net="youtube"]   { background: #ff0000; }
.dd-social__tile[data-net="linkedin"]  { background: #0a66c2; }
.dd-social__tile[data-net="whatsapp"]  { background: #25d366; }
.dd-social__tile[data-net="website"]   { background: var(--dd-teal-dark); }
.dd-social__tile[data-net="social"]    { background: var(--dd-teal); }

.dd-social__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--dd-teal-dark);
    margin-left: 2px;
}

.dd-social__more svg { color: var(--dd-teal-dark) !important; stroke: var(--dd-teal-dark) !important; }
.dd-social__more:hover { color: var(--dd-navy); }
.dd-social__more:hover svg { color: var(--dd-navy) !important; stroke: var(--dd-navy) !important; }

/* ------------------------------------------------------------ services grid */
/* Reference shows services as icon-over-label cards rather than the pill row
   the Education pane used to carry. */
.dd-svcgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 12px;
    margin-top: 4px;
}

.dd-svccard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 20px 14px;
    text-align: center;
    background: var(--dd-bg);
    border: 1px solid var(--dd-line);
    border-radius: var(--dd-radius);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dd-svccard:hover {
    transform: translateY(-3px);
    border-color: var(--dd-teal);
    box-shadow: var(--dd-shadow);
}

.dd-svccard__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--dd-soft);
    color: var(--dd-teal-dark) !important;
    stroke: var(--dd-teal-dark) !important;
    flex: 0 0 auto;
}

.dd-svccard__ico svg { color: var(--dd-teal-dark) !important; stroke: var(--dd-teal-dark) !important; }

.dd-svccard b {
    font-size: 14px;
    font-weight: 600;
    color: var(--dd-text);
    line-height: 1.45;
}

/* ------------------------------------------------- hospital & location tab */
/* The sidebar box stacks image-over-copy; as a full pane the row layout with
   a slightly larger image reads better. */
.dd-hosp--main {
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--dd-line);
    border-radius: var(--dd-radius);
    background: var(--dd-bg);
}

.dd-hosp--main .dd-hosp__img {
    width: 132px;
    height: 100px;
    flex: 0 0 132px;
}

.dd-hosp--main .dd-hosp__addr {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 6px;
    font-size: 13.5px;
    color: var(--dd-muted);
}

.dd-hosp--main .dd-hosp__addr svg {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--dd-teal) !important;
    stroke: var(--dd-teal) !important;
}

/* Two side-by-side map actions instead of the sidebar's full-width stack. */
.dd-panel .dd-map__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.dd-panel .dd-map__cta .dd-btn { flex: 1 1 190px; }

.dd-panel .dd-map {
    margin-top: 16px;
    border-radius: var(--dd-radius);
    overflow: hidden;
}

/* ------------------------------------------------------------------ mobile */
@media (max-width: 767.98px) {
    .dd-social { gap: 8px 10px; }
    .dd-social__label { width: 100%; }
    .dd-social__more { margin-left: 0; }
    .dd-svcgrid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .dd-svccard { padding: 16px 10px; }
    .dd-svccard__ico { width: 46px; height: 46px; }
    .dd-hosp--main { flex-direction: column; }
    .dd-hosp--main .dd-hosp__img { width: 100%; height: 132px; flex: 0 0 auto; }
    .dd-panel .dd-map__cta .dd-btn { flex: 1 1 100%; }
}

/* ============================================ reference header upgrades == */

/* "Verified Doctor" pill next to the name */
.dd-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    vertical-align: middle;
    margin-left: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--dd-soft, #e8f7f8);
    color: var(--dd-teal-dark, #087e8b);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .1px;
}

.dd-verified svg { color: currentColor !important; stroke: currentColor !important; }

/* Qualification line under the name */
.dd-profile__qual {
    margin: 6px 0 0;
    font-size: 15px;
    font-weight: 500;
    color: #46557a;
}

/* Stethoscope glyph in front of the role line */
.dd-profile__role svg {
    vertical-align: -3px;
    margin-right: 5px;
    color: var(--dd-teal-dark) !important;
    stroke: var(--dd-teal-dark) !important;
}

/* "10+ Years Experience" badge in the rating row */
.dd-meta__exp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    color: var(--dd-text, #24355e);
}

.dd-meta__exp b { color: var(--dd-navy, #0d1c51); }
.dd-meta__exp svg { color: var(--dd-teal-dark) !important; stroke: var(--dd-teal-dark) !important; }

/* Tag chips under the social row */
.dd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.dd-tag {
    display: inline-block;
    padding: 7px 15px;
    border-radius: 999px;
    background: #f2f8fa;
    border: 1px solid #dcecf0;
    color: var(--dd-navy, #0d1c51);
    font-size: 13px;
    font-weight: 500;
}

/* "View Social Profiles" — bordered button, pushed to the far right of the
   row exactly like the reference layout */
.dd-social__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    border: 1px solid var(--dd-teal, #09a9b7);
    border-radius: 9px;
    background: #fff;
    color: var(--dd-teal-dark, #087e8b);
    font-size: 13px;
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.dd-social__more:hover {
    background: var(--dd-teal, #09a9b7);
    color: #fff;
}

.dd-social__more:hover svg { color: #fff !important; stroke: #fff !important; }

/* Right-rail quick facts (Available Today / Online / In-Person / Response) */
.dd-facts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.dd-fact {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 16px;
    background: #fff;
    border: 1px solid var(--dd-line, #dfeaf0);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(20, 70, 100, .05);
}

.dd-fact__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    background: var(--dd-soft, #e8f7f8);
    color: var(--dd-teal-dark, #087e8b) !important;
}

.dd-fact__ico svg { color: var(--dd-teal-dark, #087e8b) !important; stroke: var(--dd-teal-dark, #087e8b) !important; }

.dd-fact b {
    display: block;
    font-size: 14px;
    color: var(--dd-navy, #0d1c51);
}

.dd-fact span span {
    display: block;
    font-size: 13px;
    color: #6b7897;
    margin-top: 2px;
}

@media (max-width: 991.98px) {
    .dd-verified { display: inline-flex; margin: 8px 0 0; }
    .dd-social__more { margin-left: 0; margin-top: 8px; }
}