:root {
    --doctor-accent: #f37052;
    --doctor-accent-dark: #db5b40;
    --doctor-accent-soft: #fff2ed;
    --doctor-ink: #1d2939;
    --doctor-muted: #667085;
    --doctor-line: #e8ecf1;
    --doctor-bg: #f5f7fa;
    --doctor-card: #ffffff;
}

.doctor-detail-page {
    background: var(--doctor-bg);
    color: var(--doctor-ink);
    padding-bottom: 36px;
}

.doctor-detail-page *,
.doctor-detail-page *::before,
.doctor-detail-page *::after {
    box-sizing: border-box;
}

.doctor-detail-page ol,
.doctor-detail-page ul {
    padding-left: 0;
}

.doctor-breadcrumb {
    align-items: center;
    color: #98a2b3;
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    gap: 9px;
    min-height: 56px;
}

.doctor-breadcrumb a {
    color: #667085;
}

.doctor-breadcrumb a:hover {
    color: var(--doctor-accent);
}

.doctor-hero {
    padding-bottom: 20px;
}

.doctor-hero-card,
.doctor-panel {
    background: var(--doctor-card);
    border: 1px solid rgba(220, 226, 234, .9);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(35, 48, 66, .06);
}

.doctor-hero-card {
    align-items: center;
    background: linear-gradient(125deg, #fff 0%, #fff 67%, #fff5f1 100%);
    display: flex;
    justify-content: space-between;
    min-height: 250px;
    overflow: hidden;
    padding: 34px 38px;
    position: relative;
}

.doctor-hero-card::after {
    background: var(--doctor-accent);
    border-radius: 999px;
    content: "";
    height: 190px;
    opacity: .08;
    position: absolute;
    right: -86px;
    top: -90px;
    width: 190px;
}

.doctor-identity {
    align-items: center;
    display: flex;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.doctor-avatar {
    background: #f8fafc;
    border: 6px solid #fff;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(29, 41, 57, .13);
    flex: 0 0 168px;
    height: 168px;
    overflow: hidden;
}

.doctor-avatar img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.doctor-identity-copy {
    min-width: 0;
    padding-left: 28px;
}

.doctor-kicker,
.doctor-section-heading > div > span,
.doctor-hospital-card div > span {
    color: var(--doctor-accent);
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    margin-bottom: 8px;
}

.doctor-identity-copy h1 {
    align-items: baseline;
    color: var(--doctor-ink);
    display: flex;
    flex-wrap: wrap;
    font-size: 34px;
    font-weight: 700;
    gap: 12px;
    line-height: 1.3;
    margin: 0 0 12px;
}

.doctor-identity-copy h1 small {
    color: #475467;
    font-size: 16px;
    font-weight: 500;
}

.doctor-hospital-link {
    color: #344054;
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.doctor-hospital-link:hover {
    color: var(--doctor-accent);
}

.doctor-specialty-summary {
    color: var(--doctor-muted);
    display: -webkit-box;
    font-size: 14px;
    line-height: 1.75;
    margin: 0;
    max-width: 610px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.doctor-specialty-summary strong {
    color: #344054;
}

.doctor-summary-stats {
    border-left: 1px solid var(--doctor-line);
    display: grid;
    flex: 0 0 285px;
    gap: 18px;
    grid-template-columns: repeat(3, 1fr);
    margin-left: 28px;
    padding-left: 30px;
    position: relative;
    z-index: 1;
}

.doctor-summary-stats div {
    text-align: center;
}

.doctor-summary-stats strong {
    color: var(--doctor-accent-dark);
    display: block;
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 7px;
}

.doctor-summary-stats span {
    color: #98a2b3;
    display: block;
    font-size: 12px;
    white-space: nowrap;
}

.doctor-content-container {
    padding-top: 0;
}

.doctor-panel {
    margin-bottom: 20px;
    padding: 26px;
}

.doctor-section-heading {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
}

.doctor-section-heading.compact {
    margin-bottom: 16px;
}

.doctor-section-heading > div > span {
    margin-bottom: 5px;
}

.doctor-section-heading h2,
.doctor-hospital-card h2 {
    color: var(--doctor-ink);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.doctor-section-heading > p,
.doctor-section-heading > a {
    color: #98a2b3;
    font-size: 13px;
    margin: 0;
}

.doctor-section-heading > a:hover {
    color: var(--doctor-accent);
}

.doctor-services {
    padding-bottom: 18px;
    padding-top: 22px;
}

.doctor-service-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, 1fr);
}

.doctor-service-item {
    align-items: center;
    background: #fafbfc;
    border: 1px solid var(--doctor-line);
    border-radius: 13px;
    display: flex;
    min-height: 78px;
    padding: 13px 16px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.doctor-service-item.is-active {
    cursor: pointer;
}

.doctor-service-item.is-active:hover {
    border-color: #f8b3a2;
    box-shadow: 0 8px 18px rgba(243, 112, 82, .12);
    transform: translateY(-2px);
}

.doctor-service-item.is-muted {
    color: #98a2b3;
}

.doctor-service-item.is-muted strong {
    color: #98a2b3;
}

.doctor-service-item img {
    flex: 0 0 34px;
    margin-right: 12px;
}

.doctor-service-item strong,
.doctor-service-item small {
    display: block;
}

.doctor-service-item strong {
    color: #344054;
    font-size: 15px;
    margin-bottom: 3px;
}

.doctor-service-item small {
    color: #98a2b3;
    font-size: 12px;
}

.doctor-main-row {
    margin-left: -10px;
    margin-right: -10px;
}

.doctor-main-column,
.doctor-side-column {
    padding-left: 10px;
    padding-right: 10px;
}

.doctor-profile-section + .doctor-profile-section {
    border-top: 1px solid var(--doctor-line);
    margin-top: 26px;
    padding-top: 26px;
}

.doctor-richtext {
    color: #475467;
    font-size: 16px;
    line-height: 1.95;
    word-break: break-word;
}

.doctor-richtext p:last-child {
    margin-bottom: 0;
}

.doctor-vote-grid {
    background: #fafbfc;
    border-radius: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 18px 10px;
}

.doctor-vote-grid > div {
    align-items: center;
    border-right: 1px solid var(--doctor-line);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 64px;
}

.doctor-vote-grid > div:last-child {
    border-right: 0;
}

.doctor-vote-grid span {
    color: var(--doctor-muted);
    font-size: 13px;
}

.doctor-vote-grid strong {
    color: var(--doctor-accent-dark);
    font-size: 22px;
    margin-top: 5px;
}

.doctor-primary-button {
    background: var(--doctor-accent);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    min-width: 112px;
    padding: 10px 18px;
}

.doctor-primary-button:hover {
    background: var(--doctor-accent-dark);
}

.doctor-colleague-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.doctor-colleague-card {
    border: 1px solid var(--doctor-line);
    border-radius: 13px;
    margin: 0;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}

.doctor-colleague-card:hover {
    box-shadow: 0 10px 22px rgba(35, 48, 66, .1);
    transform: translateY(-2px);
}

.doctor-colleague-card > a,
.doctor-colleague-card > a:hover {
    color: inherit;
    text-decoration: none;
}

.doctor-colleague-card img {
    background: #f7f8fa;
    display: block;
    height: 150px;
    object-fit: contain;
    width: 100%;
}

.doctor-colleague-card div {
    padding: 12px;
}

.doctor-colleague-card h3 {
    color: var(--doctor-ink);
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.doctor-colleague-card p {
    color: var(--doctor-muted);
    display: -webkit-box;
    font-size: 12px;
    line-height: 1.65;
    margin: 0;
    min-height: 40px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.doctor-link-list {
    list-style: none;
    margin: 0;
}

.doctor-link-list.two-columns {
    display: grid;
    gap: 0 26px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doctor-link-list li {
    border-bottom: 1px dashed var(--doctor-line);
    min-width: 0;
}

.doctor-link-list li:last-child {
    border-bottom: 0;
}

.doctor-link-list a {
    color: #475467;
    display: block;
    font-size: 14px;
    overflow: hidden;
    padding: 10px 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.doctor-link-list a:hover {
    color: var(--doctor-accent);
}

.doctor-side-panel {
    padding: 22px;
}

.doctor-data-list {
    list-style: none;
    margin: 0;
}

.doctor-data-list li {
    align-items: center;
    border-bottom: 1px solid var(--doctor-line);
    color: var(--doctor-muted);
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    padding: 11px 0;
}

.doctor-data-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.doctor-data-list strong {
    color: #344054;
    font-weight: 600;
}

.doctor-stars {
    display: flex;
    gap: 2px;
}

.doctor-hospital-card {
    overflow: hidden;
    padding: 0;
}

.doctor-hospital-card > a,
.doctor-hospital-card > a:hover {
    color: inherit;
    display: block;
    text-decoration: none;
}

.doctor-hospital-card img {
    background: #f7f8fa;
    display: block;
    height: 190px;
    object-fit: cover;
    width: 100%;
}

.doctor-hospital-card div {
    padding: 18px 20px 20px;
}

.doctor-hospital-card h2 {
    font-size: 18px;
}

.doctor-hospital-card p {
    color: var(--doctor-muted);
    font-size: 13px;
    margin: 8px 0 0;
}

@media (max-width: 1199.98px) {
    .doctor-hero-card {
        padding: 30px;
    }

    .doctor-summary-stats {
        flex-basis: 245px;
        padding-left: 22px;
    }

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

@media (max-width: 991.98px) {
    .doctor-hero-card {
        align-items: stretch;
        flex-direction: column;
    }

    .doctor-summary-stats {
        border-left: 0;
        border-top: 1px solid var(--doctor-line);
        flex-basis: auto;
        margin: 24px 0 0;
        padding: 22px 0 0;
    }

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

    .doctor-side-column {
        margin-top: 0;
    }

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

@media (max-width: 767.98px) {
    .doctor-detail-page {
        padding-bottom: 18px;
    }

    .doctor-breadcrumb {
        font-size: 12px;
        min-height: 42px;
        overflow: hidden;
        white-space: nowrap;
    }

    .doctor-hero {
        padding-bottom: 12px;
    }

    .doctor-hero-card,
    .doctor-panel {
        border-radius: 14px;
    }

    .doctor-hero-card {
        min-height: 0;
        padding: 22px 18px;
    }

    .doctor-avatar {
        border-width: 4px;
        border-radius: 14px;
        flex-basis: 104px;
        height: 104px;
    }

    .doctor-identity-copy {
        padding-left: 16px;
    }

    .doctor-kicker {
        margin-bottom: 4px;
    }

    .doctor-identity-copy h1 {
        font-size: 25px;
        gap: 8px;
        margin-bottom: 7px;
    }

    .doctor-identity-copy h1 small,
    .doctor-hospital-link {
        font-size: 13px;
    }

    .doctor-specialty-summary {
        display: none;
    }

    .doctor-summary-stats {
        gap: 4px;
        margin-top: 18px;
        padding-top: 16px;
    }

    .doctor-summary-stats strong {
        font-size: 18px;
    }

    .doctor-summary-stats span {
        font-size: 11px;
    }

    .doctor-panel {
        margin-bottom: 14px;
        padding: 20px 18px;
    }

    .doctor-section-heading {
        margin-bottom: 16px;
    }

    .doctor-section-heading h2 {
        font-size: 20px;
    }

    .doctor-section-heading > p {
        display: none;
    }

    .doctor-service-grid {
        gap: 8px;
    }

    .doctor-service-item {
        min-height: 70px;
        padding: 10px;
    }

    .doctor-service-item img {
        margin-right: 9px;
    }

    .doctor-service-item strong {
        font-size: 14px;
    }

    .doctor-service-item small {
        font-size: 11px;
    }

    .doctor-richtext {
        font-size: 15px;
        line-height: 1.85;
    }

    .doctor-vote-grid {
        padding: 14px 4px;
    }

    .doctor-vote-grid span {
        font-size: 11px;
    }

    .doctor-vote-grid strong {
        font-size: 18px;
    }

    .doctor-primary-button {
        min-width: 88px;
        padding: 9px 11px;
    }

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

    .doctor-link-list.two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .doctor-avatar {
        flex-basis: 88px;
        height: 88px;
    }

    .doctor-identity-copy {
        padding-left: 13px;
    }

    .doctor-identity-copy h1 {
        font-size: 22px;
    }

    .doctor-hospital-link {
        display: -webkit-box;
        margin-bottom: 0;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .doctor-service-item small {
        display: none;
    }

    .doctor-service-item {
        justify-content: center;
    }
}
