.doctors-page-main {
    width: 100%;
    max-width: none;
    padding: 0;
}

.doctors-page {
    --doctors-ink: #0b2b5e;
    --doctors-muted: #617287;
    --doctors-accent: #08a9e0;
    --doctors-accent-dark: #007caf;
    --doctors-soft: #eaf7fd;
    --doctors-border: #d8eaf3;
    min-height: 70vh;
    padding: clamp(28px, 5vw, 72px) 0 88px;
    color: var(--doctors-ink);
    background:
        radial-gradient(circle at 8% 2%, rgba(8, 169, 224, .11), transparent 28rem),
        #f7fafb;
}

.doctors-shell {
    width: min(1320px, calc(100% - 40px));
    margin-inline: auto;
}

.doctors-intro {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    min-height: 240px;
    padding: clamp(28px, 5vw, 60px);
    overflow: hidden;
    border-radius: 30px;
    color: #fff;
    background:
        linear-gradient(105deg, rgba(5, 48, 105, .98), rgba(8, 169, 224, .91)),
        var(--doctors-accent);
    box-shadow: 0 24px 60px rgba(11, 43, 94, .13);
}

.doctors-intro::before,
.doctors-intro::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    pointer-events: none;
}

.doctors-intro::before {
    width: 300px;
    height: 300px;
    inset: -170px auto auto -70px;
    border: 48px solid rgba(255, 255, 255, .08);
}

.doctors-intro::after {
    width: 170px;
    height: 170px;
    inset: auto 38% -110px auto;
    background: rgba(255, 255, 255, .06);
}

.doctors-intro__copy,
.doctors-intro__action {
    position: relative;
    z-index: 1;
}

.doctors-eyebrow,
.doctor-section-heading > span,
.doctors-showcase__heading > span {
    display: block;
    margin-bottom: 8px;
    color: var(--doctors-accent);
    font-size: .82rem;
    font-weight: 750;
}

.doctors-eyebrow {
    color: #bfeef5;
}

.doctors-intro h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2rem, 4.2vw, 4rem);
    line-height: 1.25;
}

.doctors-intro p {
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(.95rem, 1.5vw, 1.1rem);
}

.doctors-intro__action {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 10px 25px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 16px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    text-decoration: none;
    backdrop-filter: blur(12px);
    transition: background-color .2s ease, transform .2s ease;
}

.doctors-intro__action:hover,
.doctors-intro__action:focus-visible {
    background: rgba(255, 255, 255, .22);
    transform: translateY(-2px);
}

.doctors-showcase {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, .75fr) minmax(520px, 1.45fr);
    grid-template-areas:
        "heading featured"
        "lineup lineup";
    gap: 48px 64px;
    margin-top: clamp(44px, 7vw, 82px);
    padding: clamp(32px, 5vw, 68px) clamp(24px, 5vw, 64px) 0;
    overflow: hidden;
    border: 1px solid var(--doctors-border);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(11, 43, 94, .08);
}

.doctors-showcase::before {
    position: absolute;
    width: 420px;
    height: 420px;
    inset: -240px -120px auto auto;
    border-radius: 50%;
    background: var(--doctors-soft);
    content: "";
}

.doctors-showcase__heading {
    position: relative;
    z-index: 1;
    grid-area: heading;
    align-self: center;
    padding-inline: 16px;
}

.doctors-showcase__heading::after {
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 24px;
    border-radius: 999px;
    background: var(--doctors-accent);
    content: "";
}

.doctors-showcase__heading p {
    max-width: 260px;
    margin: 0;
    color: var(--doctors-ink);
    font-size: clamp(1.55rem, 3vw, 2.75rem);
    font-weight: 850;
    line-height: 1.5;
}

.featured-doctor {
    position: relative;
    z-index: 1;
    display: grid;
    grid-area: featured;
    grid-template-columns: minmax(220px, .9fr) minmax(260px, 1.1fr);
    align-items: center;
    min-height: 390px;
}

.featured-doctor__image {
    align-self: end;
    height: 390px;
    overflow: hidden;
    border-radius: 120px 120px 22px 22px;
    background: var(--doctors-soft);
}

.featured-doctor__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: opacity .2s ease, transform .35s ease;
}

.featured-doctor.is-changing .featured-doctor__image img {
    opacity: .2;
    transform: scale(.985);
}

.featured-doctor__content {
    padding: 24px 34px;
}

.featured-doctor__content > span,
.doctor-card__content > span {
    color: var(--doctors-accent-dark);
    font-size: .84rem;
    font-weight: 750;
}

.featured-doctor__content h2 {
    margin: 10px 0 22px;
    font-size: clamp(1.55rem, 2.8vw, 2.45rem);
    line-height: 1.5;
}

.featured-doctor__content a,
.doctor-card__link {
    display: inline-flex;
    align-items: center;
    color: var(--doctors-ink);
    font-size: .92rem;
    font-weight: 750;
    text-decoration: none;
}

.featured-doctor__content a {
    padding-bottom: 6px;
    border-bottom: 2px solid var(--doctors-accent);
}

.doctor-lineup {
    position: relative;
    z-index: 2;
    display: flex;
    grid-area: lineup;
    align-items: end;
    gap: 22px;
    width: 100%;
    max-width: 1040px;
    margin-inline: auto;
    padding-inline: 2px;
    overflow-x: auto;
    scrollbar-color: var(--doctors-accent) var(--doctors-soft);
    scrollbar-width: thin;
}

.doctor-lineup__item {
    position: relative;
    display: block;
    flex: 0 0 min(250px, 27vw);
    min-width: 0;
    height: 185px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 24px 24px 0 0;
    background: #dff3fb;
    color: #fff;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: height .3s ease, box-shadow .3s ease;
}

.doctor-lineup__item.is-active {
    height: 215px;
}

.doctor-lineup__item::after {
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(180deg, transparent, rgba(5, 35, 74, .82));
    content: "";
}

.doctor-lineup__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(1);
    transition: filter .35s ease, transform .3s ease;
}

.doctor-lineup__item:hover img,
.doctor-lineup__item:focus-visible img {
    transform: scale(1.04);
}

.doctor-lineup__item.is-active img {
    filter: grayscale(0);
}

.doctor-lineup__item.is-active {
    box-shadow: inset 0 0 0 3px var(--doctors-accent);
}

.doctor-lineup__item span {
    position: absolute;
    z-index: 1;
    right: 16px;
    bottom: 14px;
    left: 16px;
    overflow: hidden;
    font-size: .82rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.doctor-directory {
    display: none;
    margin-top: clamp(54px, 7vw, 86px);
}

.doctor-section-heading h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.8vw, 2.2rem);
    line-height: 1.35;
}

.doctor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.doctor-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--doctors-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(11, 43, 94, .07);
    transition: transform .25s ease, box-shadow .25s ease;
}

.doctor-card:hover {
    box-shadow: 0 22px 48px rgba(11, 43, 94, .12);
    transform: translateY(-5px);
}

.doctor-card__image {
    display: block;
    height: 330px;
    padding: 0;
    overflow: hidden;
    background: var(--doctors-soft);
    border: 0;
    color: inherit;
    cursor: pointer;
}

.doctor-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(1);
    transition: filter .35s ease, transform .4s ease;
}

.doctor-card:hover .doctor-card__image img,
.doctor-card__image:focus-visible img {
    transform: scale(1.035);
}

.doctor-card__image.is-active img {
    filter: grayscale(0);
}

.doctor-card__content {
    padding: 24px;
}

.doctor-card__content h3 {
    min-height: 58px;
    margin: 8px 0 20px;
    font-size: 1.18rem;
    line-height: 1.65;
}

.doctor-card__link {
    gap: 8px;
    color: var(--doctors-accent-dark);
}

.doctor-card__link i {
    font-style: normal;
    transition: transform .2s ease;
}

.doctor-card__link:hover i,
.doctor-card__link:focus-visible i {
    transform: translateX(-4px);
}

.doctors-page a:focus-visible {
    outline: 3px solid rgba(8, 169, 224, .35);
    outline-offset: 4px;
}

@media (max-width: 980px) {
    .doctors-showcase {
        grid-template-columns: 1fr;
        grid-template-areas:
            "heading"
            "featured"
            "lineup";
        gap: 32px;
    }

    .doctors-showcase__heading {
        text-align: center;
    }

    .doctors-showcase__heading p {
        max-width: none;
    }

    .doctors-showcase__heading::after {
        margin-inline: auto;
    }

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

@media (max-width: 720px) {
    .doctors-page {
        padding-top: 18px;
        padding-bottom: 60px;
    }

    .doctors-shell {
        width: min(100% - 28px, 1320px);
    }

    .doctors-intro {
        display: block;
        min-height: 0;
        padding: 30px 24px;
        border-radius: 22px;
    }

    .doctors-intro h1 {
        font-size: clamp(1.75rem, 9vw, 2.55rem);
    }

    .doctors-intro__action {
        width: 100%;
        margin-top: 24px;
    }

    .doctors-showcase {
        display: block;
        margin-top: 34px;
        padding: 28px 20px;
        border-radius: 22px;
    }

    .doctors-showcase__heading {
        padding: 0 0 24px;
    }

    .featured-doctor {
        display: block;
        min-height: 0;
    }

    .featured-doctor__image {
        height: min(390px, 105vw);
        border-radius: 90px 90px 18px 18px;
    }

    .featured-doctor__content {
        padding: 22px 4px 2px;
        text-align: center;
    }

    .featured-doctor__content h2 {
        margin-bottom: 16px;
    }

    .doctor-lineup {
        display: none;
    }

    .doctor-directory {
        display: block;
        margin-top: 48px;
    }

    .doctor-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .doctor-card__image {
        height: min(390px, 105vw);
    }

    .doctor-card__content h3 {
        min-height: 0;
    }
}

.doctor-profile-page {
    min-height: 70vh;
    padding: clamp(28px, 5vw, 72px) 0 88px;
    color: var(--doctors-ink, #0b2b5e);
    background:
        radial-gradient(circle at 8% 2%, rgba(8, 169, 224, .11), transparent 28rem),
        #f7fafb;
}

.doctor-profile-shell {
    width: min(1080px, calc(100% - 40px));
    margin-inline: auto;
}

.doctor-profile-back {
    display: inline-flex;
    margin-bottom: 22px;
    color: #007caf;
    font-weight: 750;
    text-decoration: none;
}

.doctor-profile-hero {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr);
    align-items: center;
    min-height: 440px;
    overflow: hidden;
    border: 1px solid #d8eaf3;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(11, 43, 94, .1);
}

.doctor-profile-hero__image {
    align-self: stretch;
    min-height: 440px;
    background: #eaf7fd;
}

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

.doctor-profile-hero__content {
    padding: clamp(30px, 6vw, 68px);
}

.doctor-profile-hero__content > span,
.doctor-resume > span {
    color: #007caf;
    font-size: .88rem;
    font-weight: 750;
}

.doctor-profile-hero__content h1 {
    margin: 12px 0 28px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.45;
}

.doctor-profile-hero__content a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 14px;
    color: #fff;
    background: #007caf;
    font-weight: 750;
    text-decoration: none;
}

.doctor-resume {
    margin-top: 28px;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid #d8eaf3;
    border-radius: 28px;
    background: #fff;
}

.doctor-resume h2 {
    margin: 8px 0 24px;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.doctor-resume__content {
    color: #42566c;
    font-size: 1rem;
    line-height: 2.1;
}

.doctor-resume__content p {
    margin: 0 0 16px;
}

@media (max-width: 720px) {
    .doctor-profile-shell {
        width: min(100% - 28px, 1080px);
    }

    .doctor-profile-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 22px;
    }

    .doctor-profile-hero__image {
        min-height: 0;
        height: min(420px, 110vw);
    }

    .doctor-profile-hero__content {
        padding: 28px 22px 34px;
        text-align: center;
    }

    .doctor-profile-hero__content a {
        width: 100%;
    }

    .doctor-resume {
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .doctors-page *,
    .doctors-page *::before,
    .doctors-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
