/* Doctor.bd doctor profile: premium three-column sticky layout v15 */
.doctor-profile-page {
    --doctor-blue: #0866ff;
    --doctor-blue-dark: #0757d7;
    --doctor-ink: #101828;
    --doctor-muted: #667085;
    --doctor-border: #e4eaf2;
    --doctor-surface: #ffffff;
    --doctor-soft: #f6f9fe;
    --doctor-success: #12a05c;
    --doctor-sticky-top: calc(var(--db-header-height, 74px) + 16px);
    min-height: 100vh;
    color: var(--doctor-ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(8, 102, 255, .055), transparent 27rem),
        #f5f8fc !important;
}

.doctor-profile-page,
.doctor-profile-page .btn,
.doctor-profile-page .badge,
.doctor-profile-page .nav-link,
.doctor-profile-page strong,
.doctor-profile-page h1,
.doctor-profile-page h2,
.doctor-profile-page h3,
.doctor-profile-page h4,
.doctor-profile-page h5,
.doctor-profile-page h6 {
    font-weight: 500;
}

.doctor-profile-shell {
    width: 100%;
    max-width: 1460px !important;
}

.doctor-profile-page .min-w-0 {
    min-width: 0;
}

.doctor-profile-layout {
    align-items: start !important;
}

.doctor-profile-page .doctor-profile-card,
.doctor-profile-page article.doctor-profile-card,
.doctor-profile-page section.doctor-profile-card,
.doctor-profile-page article.card {
    border: 1px solid var(--doctor-border) !important;
    border-radius: 12px !important;
    background: var(--doctor-surface) !important;
    box-shadow: 0 8px 28px rgba(16, 24, 40, .055) !important;
}

.doctor-profile-breadcrumb {
    margin-bottom: 14px;
}

.doctor-profile-breadcrumb .breadcrumb {
    gap: 3px;
    margin-bottom: 0;
    font-size: .82rem;
}

.doctor-profile-breadcrumb .breadcrumb-item,
.doctor-profile-breadcrumb .breadcrumb-item a {
    color: #475467;
}

.doctor-profile-breadcrumb .breadcrumb-item.active {
    color: var(--doctor-ink);
}

/* Sticky left and right rails */
.doctor-profile-side-stack {
    gap: 14px !important;
}

.doctor-profile-left-sticky,
.doctor-profile-right-sticky {
    padding-right: 2px;
}

.doctor-profile-center-nav {
    position: sticky;
    top: var(--db-header-height, 74px);
    z-index: 120;
}

.doctor-profile-page aside > .vstack {
    top: var(--doctor-sticky-top) !important;
}

/* Left identity card */
.doctor-profile-identity-card {
    overflow: hidden;
}

.doctor-profile-page .doctor-profile-cover {
    position: relative;
    height: 165px !important;
    overflow: hidden;
    background: linear-gradient(135deg, #cfe2ff, #edf5ff) !important;
}

.doctor-profile-cover::after {
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    content: "";
    background: linear-gradient(to top, rgba(3, 20, 46, .22), transparent);
    pointer-events: none;
}

.doctor-profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-profile-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(8, 102, 255, .8);
    font-size: 4rem;
    background:
        linear-gradient(135deg, rgba(8, 102, 255, .13), rgba(68, 183, 255, .05)),
        #eef6ff;
}

.doctor-profile-page .doctor-profile-hero-body {
    padding: 0 !important;
}

.doctor-profile-page .doctor-profile-photo-wrap {
    position: relative;
    z-index: 3;
    display: inline-block;
    margin-top: -64px !important;
}

.doctor-profile-page .doctor-profile-photo,
.doctor-profile-page .doctor-profile-photo-placeholder {
    width: 128px !important;
    height: 128px !important;
    border: 5px solid #ffffff !important;
    border-radius: 50% !important;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(16, 24, 40, .18) !important;
}

.doctor-profile-page .doctor-profile-photo {
    object-fit: cover;
    object-position: top center;
}

.doctor-profile-page .doctor-profile-photo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--doctor-blue);
    background: #eef5ff;
    font-size: 2.2rem;
}

.doctor-profile-page .doctor-profile-verified-badge {
    right: 1px;
    bottom: 2px;
    width: 31px;
    height: 31px;
    border: 3px solid #ffffff;
    color: #ffffff;
    background: var(--doctor-blue);
    box-shadow: 0 4px 10px rgba(8, 102, 255, .25);
}

.doctor-profile-page .doctor-profile-title {
    max-width: 100%;
    color: var(--doctor-ink);
    font-size: 1.28rem !important;
    line-height: 1.28;
    letter-spacing: -.02em;
}

.doctor-profile-title-verified {
    flex: 0 0 auto;
    color: var(--doctor-blue);
    font-size: 1rem;
}

.doctor-profile-tagline {
    color: #475467;
    font-size: .86rem;
    line-height: 1.5;
}

.doctor-profile-specialty-pill,
.doctor-profile-featured-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: .72rem;
    line-height: 1;
}

.doctor-profile-specialty-pill {
    color: var(--doctor-blue-dark);
    border: 1px solid #cfe0ff;
    background: #edf4ff;
}

.doctor-profile-featured-pill {
    color: #9a6700;
    border: 1px solid #f4d68b;
    background: #fff8e5;
}

.doctor-profile-identity-details {
    display: grid;
    gap: 10px;
}

.doctor-profile-identity-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #5b667a;
    font-size: .75rem;
    line-height: 1.5;
}

.doctor-profile-identity-icon {
    width: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    color: #53657f;
}

.doctor-profile-degree {
    padding: 10px 12px;
    color: #475467;
    border: 1px solid #e8edf4;
    border-radius: 8px;
    background: #f9fbfe;
    font-size: .74rem;
    line-height: 1.55;
}

.doctor-profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px 0;
    border-top: 1px solid #edf1f6;
    border-bottom: 1px solid #edf1f6;
}

.doctor-profile-stat-item {
    min-width: 0;
    padding: 0 7px;
    text-align: center;
}

.doctor-profile-stat-item + .doctor-profile-stat-item {
    border-left: 1px solid #e6ebf2;
}

.doctor-profile-stat-item strong,
.doctor-profile-stat-item span {
    display: block;
}

.doctor-profile-stat-item strong {
    color: var(--doctor-blue);
    font-size: 1.15rem;
    line-height: 1.1;
}

.doctor-profile-stat-item span {
    margin-top: 5px;
    color: #667085;
    font-size: .64rem;
    line-height: 1.3;
}

.doctor-profile-page .doctor-profile-action {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-right: 15px;
    padding-left: 15px;
    border-radius: 6px !important;
    font-size: .79rem;
}

.doctor-profile-follow-action.is-following {
    color: var(--doctor-blue);
    background: #eef5ff;
}

/* Centre navigation */
.doctor-profile-menu-card {
    border-radius: 12px !important;
    box-shadow: 0 7px 22px rgba(16, 24, 40, .045) !important;
}

.doctor-profile-page .doctor-profile-tabs {
    position: relative !important;
    top: auto !important;
    z-index: auto !important;
    padding: 0 !important;
    border-top: 0 !important;
    background: rgba(255, 255, 255, .98) !important;
    backdrop-filter: blur(14px);
}

.doctor-profile-tabs .nav {
    min-height: 60px;
    padding: 0 10px;
    scrollbar-width: none;
}

.doctor-profile-tabs .nav::-webkit-scrollbar {
    display: none;
}

.doctor-profile-page .doctor-profile-tabs .nav-link {
    min-height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 0 auto;
    padding: 0 20px;
    color: #344054 !important;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    font-size: .82rem;
    white-space: nowrap;
}

.doctor-profile-page .doctor-profile-tabs .nav-link:hover,
.doctor-profile-page .doctor-profile-tabs .nav-link:focus,
.doctor-profile-page .doctor-profile-tabs .nav-link.active {
    color: var(--doctor-blue) !important;
    border-bottom-color: var(--doctor-blue);
    background: transparent;
}

/* Centre content sections */
.doctor-profile-page #about,
.doctor-profile-page #chambers-appointment,
.doctor-profile-page #qualifications,
.doctor-profile-page #patient-reviews {
    margin-bottom: 14px !important;
    border: 0 !important;
    background: transparent !important;
    scroll-margin-top: calc(var(--db-header-height, 74px) + 84px) !important;
}

.doctor-profile-page #about > .container-xl,
.doctor-profile-page #chambers-appointment > .container-xl,
.doctor-profile-page #qualifications > .container-xl,
.doctor-profile-page #patient-reviews > .container-xl {
    max-width: none;
    padding: 0 !important;
}

.doctor-profile-page #about article,
.doctor-profile-page #chambers-appointment article.card,
.doctor-profile-page #qualifications article.card,
.doctor-profile-page #patient-reviews {
    border: 1px solid var(--doctor-border) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 28px rgba(16, 24, 40, .05) !important;
}

.doctor-profile-page #about .card-body,
.doctor-profile-page #chambers-appointment > .container-xl > .row > .col-12 > article > .card-body,
.doctor-profile-page #qualifications > .container-xl > article > .card-body,
.doctor-profile-page #patient-reviews {
    padding: 24px !important;
}

.doctor-profile-page #about .fs-5,
.doctor-profile-page #chambers-appointment h2,
.doctor-profile-page #qualifications h2,
.doctor-profile-page #patient-reviews h2 {
    color: var(--doctor-ink) !important;
    font-size: 1.2rem !important;
    letter-spacing: -.015em;
}

.doctor-profile-page #about .fs-5 {
    padding-bottom: 15px;
    border-bottom: 1px solid #edf1f6;
}

.doctor-profile-page #about .fs-6,
.doctor-profile-page #chambers-appointment .text-secondary,
.doctor-profile-page #qualifications .text-secondary,
.doctor-profile-page #patient-reviews .text-secondary {
    color: #5d687b !important;
    font-size: .84rem !important;
    line-height: 1.78 !important;
}

.doctor-profile-page #chambers-appointment .card.border.rounded-4,
.doctor-profile-page #patient-reviews article.card,
.doctor-profile-page #patient-reviews .border.rounded-0 {
    border: 1px solid #e6ebf2 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.doctor-profile-page #chambers-appointment .card.border.rounded-4:hover,
.doctor-profile-page #patient-reviews article.card:hover {
    border-color: #cbd9ed !important;
    box-shadow: 0 8px 20px rgba(16, 24, 40, .045) !important;
}

.doctor-profile-page #chambers-appointment header > span,
.doctor-profile-page #qualifications header > span {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    padding: 0 !important;
    border-radius: 10px !important;
    background: #edf4ff !important;
}

.doctor-profile-page #chambers-appointment .btn-primary,
.doctor-profile-page #patient-reviews .btn-primary {
    border-radius: 6px !important;
}

.doctor-profile-page #patient-reviews article.card .card-body {
    padding: 20px !important;
}

/* Right information rail */
.doctor-profile-sidebar-card .card-body {
    padding: 20px !important;
}

.doctor-profile-sidebar-title {
    color: var(--doctor-ink);
    font-size: .98rem !important;
    line-height: 1.35;
}

.doctor-profile-sidebar-heading-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--doctor-blue);
    border-radius: 50%;
    background: #edf4ff;
    font-size: 1rem;
}

.doctor-profile-detail-row {
    padding: 11px 0 !important;
    border-bottom: 1px solid #edf1f6 !important;
}

.doctor-profile-detail-label {
    margin-bottom: 3px;
    color: #667085;
    font-size: .7rem;
}

.doctor-profile-detail-value {
    color: var(--doctor-ink);
    font-size: .78rem;
    line-height: 1.45;
}

.doctor-profile-info-metrics {
    display: grid;
    gap: 5px;
}

.doctor-profile-info-metric {
    min-height: 48px;
    display: grid;
    grid-template-columns: 34px auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
}

.doctor-profile-info-metric-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--doctor-blue);
    border-radius: 50%;
    background: #edf4ff;
    font-size: .85rem;
}

.doctor-profile-info-metric strong {
    color: var(--doctor-ink);
    font-size: .8rem;
}

.doctor-profile-info-metric small {
    color: #667085;
    font-size: .69rem;
}

/* Related doctors */
.doctor-related-item {
    padding: 14px 16px !important;
    border-bottom: 1px solid #edf1f6 !important;
}

.doctor-related-item:last-child {
    border-bottom: 0 !important;
}

.doctor-related-photo,
.doctor-related-placeholder {
    width: 47px !important;
    height: 50px !important;
    flex: 0 0 47px !important;
    border: 1px solid #e1e8f1 !important;
    border-radius: 7px !important;
}

.doctor-related-photo {
    object-fit: cover;
    object-position: top center;
}

.doctor-related-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--doctor-blue);
    background: #edf4ff;
}

.doctor-related-name {
    color: var(--doctor-ink) !important;
    font-size: .78rem !important;
    line-height: 1.35;
}

.doctor-related-meta {
    color: #667085 !important;
    font-size: .67rem !important;
    line-height: 1.45;
}

.doctor-related-item .btn {
    padding: 3px 10px;
    border-color: #9db4d5;
    border-radius: 6px !important;
    color: #344054;
    font-size: .65rem;
}

.doctor-profile-card-footer-link {
    display: block;
    padding: 13px 18px !important;
    color: var(--doctor-blue) !important;
    border-top: 1px solid #edf1f6 !important;
    border-radius: 0 0 12px 12px !important;
    background: #ffffff !important;
    font-size: .73rem;
    text-align: center;
    text-decoration: none;
}

.doctor-profile-card-footer-link:hover {
    color: var(--doctor-blue-dark) !important;
    background: #f8fbff !important;
}

.doctor-profile-tablet-sidebar .doctor-profile-info-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.doctor-profile-tablet-sidebar .doctor-profile-info-metric {
    grid-template-columns: 34px auto minmax(0, 1fr);
}

/* Desktop three-column layout */
@media (min-width: 1200px) {
    .doctor-profile-page .doctor-profile-layout {
        display: grid !important;
        grid-template-columns: 270px minmax(0, 1fr) 286px !important;
        grid-template-areas: "left main right" !important;
        gap: 18px !important;
    }

    .doctor-profile-page .doctor-profile-left-rail {
        grid-area: left;
    }

    .doctor-profile-page .doctor-profile-main-column {
        grid-area: main;
    }

    .doctor-profile-page .doctor-profile-right-rail {
        grid-area: right;
        display: block !important;
    }
}

@media (min-width: 1400px) {
    .doctor-profile-page .doctor-profile-layout {
        grid-template-columns: 282px minmax(0, 1fr) 300px !important;
        gap: 20px !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .doctor-profile-page {
        --db-sidebar-size: 270px;
    }

    .doctor-profile-page .doctor-profile-layout {
        grid-template-columns: 270px minmax(0, 1fr) !important;
        grid-template-areas: "left main" !important;
    }

    .doctor-profile-page .doctor-profile-photo,
    .doctor-profile-page .doctor-profile-photo-placeholder {
        width: 112px !important;
        height: 112px !important;
    }

    .doctor-profile-page .doctor-profile-photo-wrap {
        margin-top: -56px !important;
    }
}

@media (max-width: 1199.98px) {
    .doctor-profile-page .doctor-profile-title {
        font-size: 1.18rem !important;
    }

    .doctor-profile-page .doctor-profile-tabs .nav-link {
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (max-width: 991.98px) {
    .doctor-profile-page {
        padding-top: 12px !important;
    }

    .doctor-profile-layout {
        display: flex !important;
        flex-direction: column;
        gap: 14px !important;
    }

    .doctor-profile-left-rail,
    .doctor-profile-main-column,
    .doctor-profile-right-rail {
        width: 100%;
    }

    .doctor-profile-left-rail {
        order: 1;
    }

    .doctor-profile-main-column {
        order: 2;
    }

    .doctor-profile-right-rail {
        order: 3;
    }

    .doctor-profile-center-nav {
        top: var(--db-header-height, 64px);
    }

    .doctor-profile-left-sticky,
    .doctor-profile-right-sticky {
        position: static !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .doctor-profile-identity-card {
        display: grid;
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .doctor-profile-page .doctor-profile-cover {
        height: 100% !important;
        min-height: 340px;
    }

    .doctor-profile-page .doctor-profile-photo-wrap {
        margin-top: 20px !important;
    }

    .doctor-profile-info-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .doctor-profile-shell {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    .doctor-profile-identity-card {
        display: block;
    }

    .doctor-profile-page .doctor-profile-cover {
        height: 165px !important;
        min-height: 0;
    }

    .doctor-profile-page .doctor-profile-photo-wrap {
        margin-top: -58px !important;
    }

    .doctor-profile-page .doctor-profile-photo,
    .doctor-profile-page .doctor-profile-photo-placeholder {
        width: 116px !important;
        height: 116px !important;
    }

    .doctor-profile-tabs .nav {
        min-height: 56px;
        padding: 0 5px;
    }

    .doctor-profile-page .doctor-profile-tabs .nav-link {
        min-height: 56px;
        padding-right: 14px;
        padding-left: 14px;
        font-size: .76rem;
    }

    .doctor-profile-page #about .card-body,
    .doctor-profile-page #chambers-appointment > .container-xl > .row > .col-12 > article > .card-body,
    .doctor-profile-page #qualifications > .container-xl > article > .card-body,
    .doctor-profile-page #patient-reviews,
    .doctor-profile-sidebar-card .card-body {
        padding: 20px !important;
    }
}

@media (max-width: 575.98px) {
    .doctor-profile-page {
        padding-top: 8px !important;
        background: #f5f8fc !important;
    }

    .doctor-profile-breadcrumb {
        padding: 0 2px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .doctor-profile-breadcrumb .breadcrumb {
        flex-wrap: nowrap;
        min-width: max-content;
    }

    .doctor-profile-page .doctor-profile-card,
    .doctor-profile-page article.card,
    .doctor-profile-page #about article,
    .doctor-profile-page #chambers-appointment article.card,
    .doctor-profile-page #qualifications article.card,
    .doctor-profile-page #patient-reviews {
        border-right: 1px solid var(--doctor-border) !important;
        border-left: 1px solid var(--doctor-border) !important;
        border-radius: 10px !important;
    }

    .doctor-profile-page .doctor-profile-cover {
        height: 145px !important;
    }

    .doctor-profile-page .doctor-profile-photo-wrap {
        margin-top: -52px !important;
    }

    .doctor-profile-page .doctor-profile-photo,
    .doctor-profile-page .doctor-profile-photo-placeholder {
        width: 104px !important;
        height: 104px !important;
    }

    .doctor-profile-stat-item span {
        font-size: .6rem;
    }

    .doctor-profile-page #about .card-body,
    .doctor-profile-page #chambers-appointment > .container-xl > .row > .col-12 > article > .card-body,
    .doctor-profile-page #qualifications > .container-xl > article > .card-body,
    .doctor-profile-page #patient-reviews,
    .doctor-profile-sidebar-card .card-body {
        padding: 17px 15px !important;
    }

    .doctor-profile-info-metrics {
        grid-template-columns: 1fr;
    }
}

.doctor-profile-page #reviews {
    scroll-margin-top: calc(var(--db-header-height, 74px) + 84px);
}
