.doctor-profile {
    --doctor-emerald: #0b493d;
    --doctor-emerald-deep: #073a31;
    --doctor-gold: #cda24d;
    --doctor-gold-soft: #e8cf92;
    --doctor-ink: #153f37;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 680px;
    padding: clamp(2.4rem, 4.5vw, 4.6rem) 0 clamp(3.5rem, 6vw, 5.5rem);
    color: var(--doctor-ink);
    background:
        radial-gradient(circle at 16% 24%, rgba(196, 154, 73, .075), transparent 23%),
        radial-gradient(circle at 83% 72%, rgba(113, 135, 107, .07), transparent 26%),
        repeating-linear-gradient(115deg, rgba(130, 106, 62, .018) 0 1px, transparent 1px 8px),
        #f8f3e9;
}

.doctor-profile::before,
.doctor-profile::after {
    content: "";
    position: absolute;
    z-index: -2;
    border: 1px solid rgba(198, 153, 67, .5);
    border-radius: 50%;
    pointer-events: none;
}

.doctor-profile::before {
    width: 520px;
    height: 520px;
    inset-inline-start: -330px;
    top: 250px;
}

.doctor-profile::after {
    width: 430px;
    height: 430px;
    inset-inline-end: -270px;
    bottom: -210px;
}

.doctor-profile__botanical {
    position: absolute;
    z-index: -1;
    width: clamp(210px, 24vw, 390px);
    aspect-ratio: 0.73;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: .28;
    filter: saturate(.72) sepia(.08) brightness(1.12);
    pointer-events: none;
}

.doctor-profile__botanical--top {
    left: -34px;
    top: -12px;
    background-image: url("../../images/journal/journal-leaf-top-left.webp");
}

.doctor-profile__botanical--bottom {
    right: -25px;
    bottom: -25px;
    background-image: url("../../images/journal/journal-leaf-bottom-right.webp");
}

.doctor-profile__shell {
    width: min(1420px, calc(100% - clamp(30px, 5vw, 88px)));
    margin: 0 auto;
}

.doctor-profile__hero {
    display: grid;
    grid-template-columns: minmax(390px, .83fr) minmax(0, 1.17fr);
    align-items: center;
    gap: clamp(3.5rem, 7vw, 8.3rem);
    min-height: clamp(570px, 59vw, 690px);
}

.doctor-profile__portrait-wrap {
    position: relative;
    justify-self: center;
    width: min(100%, 470px);
    padding: 8px;
    border: 1px solid rgba(205, 162, 77, .9);
    border-radius: 44% 44% 38px 38px / 27% 27% 38px 38px;
    background: rgba(255, 252, 245, .78);
    box-shadow:
        0 22px 48px rgba(72, 54, 30, .11),
        0 0 0 3px rgba(244, 229, 193, .78),
        0 0 0 4px rgba(205, 162, 77, .22);
}

.doctor-profile__portrait-wrap::before {
    content: "";
    position: absolute;
    inset: -16px -15px -16px -15px;
    z-index: -1;
    border: 1px solid rgba(205, 162, 77, .35);
    border-radius: 45% 45% 48px 48px / 27% 27% 48px 48px;
}

.doctor-profile__portrait {
    min-height: 590px;
    overflow: hidden;
    border-radius: calc(44% - 7px) calc(44% - 7px) 30px 30px / calc(27% - 4px) calc(27% - 4px) 30px 30px;
    background: #dedbd5;
}

.doctor-profile__portrait img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 590px;
    object-fit: cover;
    object-position: center top;
}

.doctor-profile__portrait-placeholder {
    display: grid;
    min-height: 590px;
    place-items: center;
    color: var(--doctor-emerald);
    font-family: var(--font-heading);
    font-size: clamp(4rem, 8vw, 6rem);
}

.doctor-profile__copy {
    position: relative;
    max-width: 760px;
    justify-self: stretch;
    text-align: center;
}

.doctor-profile__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .62rem;
    width: 100%;
    margin: 0 0 clamp(3.2rem, 6vw, 5.4rem);
    color: rgba(17, 66, 57, .77);
    font-size: .84rem;
    font-weight: 600;
}

.doctor-profile__breadcrumbs a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.doctor-profile__breadcrumbs a:hover {
    color: var(--doctor-gold);
}

.doctor-profile__breadcrumbs span[aria-hidden="true"] {
    color: var(--doctor-gold);
    font-size: 1.05em;
}

.doctor-profile__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    margin: 0 0 1.55rem;
    color: #9c7130;
    font-size: clamp(.72rem, .9vw, .84rem);
    font-weight: 700;
    letter-spacing: .32em;
    text-transform: uppercase;
}

.doctor-profile__eyebrow::after {
    content: "";
    width: 42px;
    height: 1px;
    background: var(--doctor-gold);
}

.doctor-profile h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    color: var(--doctor-emerald-deep);
    font-family: var(--font-heading);
    font-size: clamp(2.65rem, 4.15vw, 4.75rem);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.025em;
}

.doctor-profile__degree {
    display: block;
    margin-top: .12em;
    font-family: Georgia, "Times New Roman", serif;
    font-size: .73em;
    font-weight: 600;
    line-height: .92;
}

html[lang="en"] .doctor-profile__degree {
    font-family: var(--font-en-heading);
}

.doctor-profile__role {
    margin: 2.15rem 0 0;
    color: var(--doctor-emerald-deep);
    font-size: clamp(1rem, 1.35vw, 1.23rem);
    font-weight: 800;
    line-height: 1.7;
}

.doctor-profile__intro {
    max-width: 700px;
    margin: 1.1rem auto 0;
    color: rgba(31, 67, 59, .78);
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 1.45vw, 1.28rem);
    line-height: 1.75;
}

/* BATCH209: CTA buttons match Clinic gold/outline treatment */
.doctor-profile__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .65rem;
    margin-top: 1.7rem;
}

.doctor-profile__primary,
.doctor-profile__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 42px;
    padding: .45rem 1.35rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .09em;
    line-height: 1.3;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    transition: transform 280ms ease, background-color 280ms ease,
        border-color 280ms ease, color 280ms ease;
}

.doctor-profile__primary {
    min-width: 208px;
    border: 1px solid var(--color-gold);
    background: var(--color-gold);
    color: #17241f;
    box-shadow: none;
}

.doctor-profile__secondary {
    min-width: 142px;
    border: 1px solid rgba(24, 55, 47, .48);
    background: rgba(255, 255, 255, .24);
    color: var(--doctor-emerald-deep);
    box-shadow: none;
}

.doctor-profile__primary:hover {
    transform: translateY(-1px);
    border-color: var(--color-gold-light);
    background: var(--color-gold-light);
    color: #17241f;
}

.doctor-profile__secondary:hover {
    transform: translateY(-1px);
    border-color: var(--doctor-emerald-deep);
    background: var(--doctor-emerald-deep);
    color: #fff;
}

html[dir="rtl"] .doctor-profile__primary,
html[dir="rtl"] .doctor-profile__secondary {
    letter-spacing: .01em;
    text-transform: none;
}

.doctor-profile__primary:focus-visible,
.doctor-profile__secondary:focus-visible {
    outline: 2px solid var(--doctor-emerald-deep);
    outline-offset: 3px;
}

[dir="rtl"] .doctor-profile__copy {
    text-align: center;
}

[dir="rtl"] .doctor-profile__breadcrumbs,
[dir="rtl"] .doctor-profile__actions,
[dir="rtl"] .doctor-profile__eyebrow {
    justify-content: center;
}

[dir="rtl"] .doctor-profile__eyebrow {
    letter-spacing: 0;
}

/* BATCH208: Doctor breadcrumb RTL desktop alignment */
@media (min-width: 821px) {
    html[dir="rtl"] .doctor-profile__shell > .doctor-profile__breadcrumbs {
        direction: rtl;
        justify-content: flex-start;
        text-align: right;
    }
}

[dir="rtl"] .doctor-profile h1 {
    align-items: center;
}


@media (min-width: 821px) {
    .doctor-profile__hero {
        direction: ltr;
    }

    [dir="ltr"] .doctor-profile__copy {
        grid-column: 1;
        grid-row: 1;
        direction: ltr;
    }

    [dir="ltr"] .doctor-profile__portrait-wrap {
        grid-column: 2;
        grid-row: 1;
    }

    [dir="rtl"] .doctor-profile__portrait-wrap {
        grid-column: 1;
        grid-row: 1;
    }

    [dir="rtl"] .doctor-profile__copy {
        grid-column: 2;
        grid-row: 1;
        direction: rtl;
    }
}

@media (max-width: 1050px) {
    .doctor-profile__hero {
        grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr);
        gap: clamp(2.5rem, 5vw, 4rem);
    }

    .doctor-profile__portrait-wrap {
        width: min(100%, 420px);
    }

    .doctor-profile__portrait,
    .doctor-profile__portrait img,
    .doctor-profile__portrait-placeholder {
        min-height: 540px;
    }

    .doctor-profile__breadcrumbs {
        margin-bottom: 3.4rem;
    }
}

@media (max-width: 820px) {
    .doctor-profile {
        padding-top: 2rem;
    }

    .doctor-profile__shell {
        width: min(100% - 30px, 760px);
    }

    .doctor-profile__hero {
        grid-template-columns: 1fr;
        gap: 3.2rem;
        min-height: 0;
    }

    .doctor-profile__copy {
        order: 1;
        width: 100%;
    }

    .doctor-profile__portrait-wrap {
        order: 2;
        width: min(84vw, 460px);
    }

    .doctor-profile__breadcrumbs {
        justify-content: center;
        margin-bottom: 2.8rem;
    }

    .doctor-profile__botanical {
        opacity: .18;
    }
}

@media (max-width: 560px) {
    .doctor-profile {
        padding: 1.35rem 0 3rem;
    }

    .doctor-profile__shell {
        width: min(100% - 24px, 760px);
    }

    .doctor-profile__hero {
        gap: 2.5rem;
    }

    .doctor-profile__breadcrumbs {
        gap: .45rem;
        margin-bottom: 2.25rem;
        font-size: .75rem;
    }

    .doctor-profile__eyebrow {
        gap: .65rem;
        margin-bottom: 1.15rem;
        font-size: .7rem;
        letter-spacing: .2em;
    }

    .doctor-profile__eyebrow::after {
        width: 28px;
    }

    .doctor-profile h1 {
        font-size: clamp(2.35rem, 11.5vw, 3.55rem);
    }

    .doctor-profile__role {
        margin-top: 1.55rem;
        font-size: .96rem;
    }

    .doctor-profile__intro {
        font-size: 1rem;
        line-height: 1.8;
    }

    .doctor-profile__actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 1.8rem;
    }

    .doctor-profile__primary,
    .doctor-profile__secondary {
        width: 100%;
        min-height: 54px;
    }

    .doctor-profile__portrait-wrap {
        width: min(88vw, 410px);
        padding: 6px;
        border-radius: 42% 42% 28px 28px / 22% 22% 28px 28px;
    }

    .doctor-profile__portrait-wrap::before {
        inset: -10px;
        border-radius: 43% 43% 36px 36px / 22% 22% 36px 36px;
    }

    .doctor-profile__portrait,
    .doctor-profile__portrait img,
    .doctor-profile__portrait-placeholder {
        min-height: 475px;
    }

    .doctor-profile__portrait {
        border-radius: calc(42% - 5px) calc(42% - 5px) 22px 22px / calc(22% - 3px) calc(22% - 3px) 22px 22px;
    }

    .doctor-profile__botanical--top {
        width: 220px;
        top: 10px;
        left: -78px;
    }

    .doctor-profile__botanical--bottom {
        width: 230px;
        bottom: -65px;
        right: -90px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .doctor-profile__primary,
    .doctor-profile__secondary,
    .doctor-profile__breadcrumbs a {
        transition: none;
    }
}
