.breadcrumbs {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
    font-size:.85rem;
    color:var(--muted);
    margin-bottom:28px;
}

.breadcrumbs a:hover {
    color:var(--green-dark);
    text-decoration:underline;
}

.medical-heading {
    display:grid;
    grid-template-columns:1.05fr .95fr;
    background:var(--paper);
    border-radius:30px;
    overflow:hidden;
    margin-top:20px;
    min-height:420px;
}

.medical-heading-copy {
    padding:clamp(30px,5vw,85px);
    align-self:center;
}

.medical-heading h1,
.specialties-banner h1 {
    font-size:clamp(2.8rem,4.7vw,5.8rem);
    margin-block:22px;
    line-height:1.06;
}

.medical-heading h1 span {
    color:var(--green-dark);
}

.medical-heading-copy p {
    font-size:1.07rem;
    max-width:580px;
}

.medical-heading-visual {
    position:relative;
    min-height:320px;
    overflow:hidden;
    background:var(--green-soft);
}

.medical-heading-visual img {
    position:absolute;
    width:100%;
    height:100%;
    object-fit:cover;
}

.medical-heading-note {
    position:absolute;
    bottom:25px;
    right:25px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:15px 22px;
    border-radius:12px;
    background:white;
    color:var(--navy);
    font-weight:700;
    box-shadow:var(--shadow-md);
}

.medical-directory {
    padding-bottom:90px;
}

.md-filters {
    position:relative;
    margin:-32px auto 0;
    width:94%;
    padding:28px;
    background:white;
    border:1px solid var(--line);
    border-radius:25px;
    box-shadow:var(--shadow-lg);
}

.md-filter-intro h3 {
    display:flex;
    align-items:center;
    gap:10px;
}

.md-filter-intro p {
    font-size:.9rem;
    margin-top:5px;
}

.md-filter-fields {
    display:grid;
    grid-template-columns:1.3fr 1fr 1fr auto;
    gap:15px;
    align-items:end;
    margin-top:22px;
}

.md-filter-fields label {
    display:grid;
    min-width:0;
    gap:7px;
}

.md-filter-fields label>span {
    font-size:.83rem;
    color:var(--navy);
    font-weight:700;
}

.md-filter-fields .field {
    background:var(--paper);
    min-width:0;
}

.md-filter-fields .btn {
    min-height:56px;
    border-radius:14px;
}

.md-results-heading {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:22px;
    margin:65px 0 28px;
}

.md-results-heading h2 {
    font-size:clamp(2rem,3.2vw,3.6rem);
    margin:10px 0;
}

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

.md-card {
    min-width:0;
    background:white;
    border:1px solid var(--line);
    border-radius:23px;
    overflow:hidden;
    transition:transform .35s var(--ease),
        box-shadow .35s var(--ease);
}

.md-card:hover {
    transform:translateY(-5px);
    box-shadow:var(--shadow-md);
}

.md-photo,
.profile-photo {
    position:relative;
    display:block;
    overflow:hidden;
    background:
        radial-gradient(circle at 85% 15%,
            #cce2ce 0%,transparent 55%),
        linear-gradient(145deg,#f1f5f0,#e1e9e5);
}

.md-photo {
    aspect-ratio:1/1;
    margin:10px 10px 0;
    border-radius:17px;
}

.md-avatar {
    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    font-family:var(--font-heading);
    font-size:clamp(3rem,6vw,6rem);
    font-weight:800;
    color:var(--green-dark);
    letter-spacing:-.08em;
}

.md-photo img,
.profile-photo img {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center top;
}

.md-photo img {
    transition:transform .65s var(--ease);
}

.md-card:hover img {
    transform:scale(1.035);
}

.md-photo-link {
    position:absolute;
    top:14px;
    right:14px;
    width:43px;
    height:43px;
    border-radius:50%;
    background:white;
    color:var(--navy);
    display:grid;
    place-items:center;
    box-shadow:var(--shadow-sm);
}

.md-photo-tag {
    position:absolute;
    left:12px;
    right:auto;
    bottom:12px;
    max-width:calc(100% - 24px);
    background:#fff;
    color:var(--green-dark);
    border-radius:50px;
    padding:7px 12px;
    font-size:.76rem;
    font-weight:700;
    box-shadow:var(--shadow-sm);
}

.md-card-body {
    display:flex;
    flex-direction:column;
    gap:18px;
    padding:22px;
}

.md-card-body h3 {
    min-height:2.4em;
    font-size:1.25rem;
    line-height:1.25;
    overflow-wrap:anywhere;
}

.md-card-info {
    display:grid;
    gap:7px;
    min-height:50px;
}

.md-card-info span {
    display:flex;
    align-items:center;
    gap:8px;
    font-size:.86rem;
    color:var(--muted);
}

.md-card-info svg {
    color:var(--green-dark);
}

.md-card-actions {
    display:flex;
    gap:9px;
    align-items:center;
}

.md-card-actions .btn {
    flex:1;
    min-height:46px;
    border-radius:12px;
    justify-content:space-between;
    font-size:.88rem;
    padding-inline:15px;
}

.md-contact {
    width:46px;
    height:46px;
    display:grid;
    place-items:center;
    background:var(--green-soft);
    border-radius:12px;
    color:var(--green-dark);
}

.md-empty {
    margin-block:35px;
    border:1px dashed var(--line);
    padding:60px 25px;
    border-radius:24px;
    text-align:center;
    display:grid;
    justify-items:center;
    gap:18px;
    background:var(--paper);
}

.md-empty>svg {
    color:var(--green-dark);
}

.md-pagination {
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:9px;
    margin:45px 0 0;
}

.md-pagination a {
    min-width:45px;
    min-height:45px;
    display:grid;
    place-items:center;
    border:1px solid var(--line);
    padding:8px 14px;
    border-radius:12px;
    font-weight:700;
    font-size:.9rem;
    color:var(--navy);
}

.md-pagination a.active,
.md-pagination a:hover {
    color:white;
    background:var(--navy);
    border-color:var(--navy);
}

/* INDIVIDUAL MEDICAL PROFILE */

.profile-section {
    padding-block:35px 80px;
}

.profile-hero {
    display:grid;
    grid-template-columns:minmax(260px,.65fr) 1.35fr;
    gap:clamp(30px,5vw,85px);
    align-items:center;
    padding:30px;
    border-radius:30px;
    background:var(--paper);
}

.profile-photo {
    min-height:440px;
    aspect-ratio:4/5;
    border-radius:24px;
}

.profile-photo .md-avatar {
    font-size:clamp(5rem,10vw,11rem);
}

.profile-identity {
    padding:25px 20px;
}

.profile-identity h1 {
    font-size:clamp(2.1rem,4.4vw,5rem);
    margin:20px 0;
    overflow-wrap:anywhere;
}

.profile-specialty {
    display:inline-flex;
    align-items:center;
    gap:9px;
    color:var(--green-dark);
    background:var(--green-soft);
    border-radius:40px;
    padding:10px 18px;
    font-weight:700;
}

.profile-summary {
    display:flex;
    flex-wrap:wrap;
    gap:22px;
    margin-block:32px;
}

.profile-summary>div {
    flex:1;
    min-width:130px;
    display:flex;
    gap:12px;
    align-items:center;
    border-left:2px solid var(--green);
    padding-left:15px;
    color:var(--green-dark);
}

.profile-summary small,
.profile-summary strong {
    display:block;
}

.profile-summary small {
    color:var(--muted);
    font-size:.8rem;
}

.profile-summary strong {
    color:var(--navy);
    font-size:1rem;
}

.profile-buttons {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.profile-information {
    display:grid;
    grid-template-columns:minmax(0,1.7fr) minmax(260px,.8fr);
    gap:28px;
    align-items:start;
    margin-top:30px;
}

.profile-main {
    display:grid;
    gap:25px;
}

.profile-panel {
    border:1px solid var(--line);
    border-radius:24px;
    padding:clamp(25px,4vw,50px);
    background:white;
}

.profile-panel h2 {
    font-size:clamp(1.8rem,3vw,3rem);
    margin:15px 0 25px;
}

.profile-biography {
    font-size:1.03rem;
    line-height:1.9;
}

.profile-schedule {
    display:grid;
    gap:8px;
}

.profile-schedule>div {
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
    background:var(--paper);
    border-radius:12px;
    padding:16px 20px;
}

.profile-schedule span {
    display:flex;
    align-items:center;
    gap:12px;
    color:var(--green-dark);
}

.profile-schedule strong {
    color:var(--navy);
    font-size:.9rem;
}

.profile-notice {
    margin-top:20px;
    font-size:.85rem;
}

.profile-contact-panel {
    display:grid;
    gap:20px;
    padding:30px;
    border:1px solid var(--line);
    border-radius:24px;
    background:var(--green-soft);
    position:sticky;
    top:150px;
}

.profile-contact-panel>a:not(.btn),
.profile-contact-panel>div {
    display:grid;
    gap:5px;
    padding-bottom:15px;
    border-bottom:1px solid #cddfd0;
    overflow-wrap:anywhere;
}

.profile-contact-panel small {
    font-size:.8rem;
    color:var(--muted);
}

.profile-contact-panel strong {
    color:var(--navy);
}

.profile-contact-panel .btn {
    color:white;
}

.related-doctors {
    background:var(--paper);
}

/* SPECIALTIES */

.specialties-banner {
    position:relative;
    min-height:375px;
    padding:clamp(30px,5vw,85px);
    background:var(--navy);
    border-radius:30px;
    margin-top:20px;
    overflow:hidden;
    isolation:isolate;
}

.specialties-banner h1 {
    color:white;
}

.specialties-banner h1 span {
    color:var(--green-light);
}

.specialties-banner .eyebrow,
.specialties-banner .breadcrumbs {
    color:var(--green-light);
}

.specialties-banner p {
    max-width:580px;
    color:#e0e7f1;
}

.specialties-banner-mark {
    position:absolute;
    z-index:-1;
    right:0;
    top:50%;
    transform:translateY(-50%) rotate(-12deg);
    opacity:.09;
    color:white;
}

.specialties-banner-mark svg {
    width:480px;
    height:480px;
}

.specialty-directory {
    padding-top:55px;
}

.sp-tools {
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:20px;
    border-bottom:1px solid var(--line);
    padding-bottom:25px;
}

.sp-tools span {
    color:var(--muted);
    font-size:.88rem;
}

.sp-search {
    display:flex;
    width:min(100%,400px);
    align-items:center;
    gap:12px;
    border:1px solid var(--line);
    border-radius:14px;
    padding:13px 18px;
    background:var(--paper);
    color:var(--green-dark);
}

.sp-search input {
    border:0;
    background:transparent;
    width:100%;
    min-width:0;
}

.sp-filters {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-block:28px;
}

.sp-filters button {
    border:1px solid var(--line);
    border-radius:50px;
    padding:11px 22px;
    background:#fff;
    color:var(--navy);
    font-weight:600;
}

.sp-filters button.active {
    background:var(--navy);
    color:white;
    border-color:var(--navy);
}

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

.sp-card {
    min-height:280px;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:14px;
    background:white;
    border:1px solid var(--line);
    padding:26px;
    border-radius:24px;
    transition:.3s var(--ease);
}

.sp-card:hover {
    background:var(--green-soft);
    border-color:var(--green);
    transform:translateY(-4px);
}

.sp-card-top {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:10px;
}

.sp-number {
    font-family:var(--font-heading);
    color:var(--green-dark);
    font-weight:700;
    font-size:1.03rem;
}

.sp-category {
    font-size:.72rem;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:var(--green-dark);
    font-weight:700;
}

.sp-card h3 {
    font-size:1.3rem;
    overflow-wrap:anywhere;
}

.sp-card p {
    font-size:.88rem;
    line-height:1.6;
}

.sp-card>a {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-top:auto;
    padding-top:16px;
    border-top:1px solid var(--line);
    color:var(--navy);
    font-size:.86rem;
    font-weight:700;
}

.sp-arrow {
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:var(--navy);
    color:white;
}

/* RESPONSIVE */

@media(max-width:1200px) {
    .md-grid,
    .sp-grid {
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .md-filter-fields {
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:850px) {
    .medical-heading,
    .profile-hero,
    .profile-information {
        grid-template-columns:1fr;
    }

    .profile-photo {
        min-height:0;
        width:min(100%,420px);
        margin-inline:auto;
    }

    .profile-contact-panel {
        position:static;
    }

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

@media(max-width:550px) {
    .medical-heading {
        border-radius:22px;
    }

    .medical-heading-visual {
        min-height:240px;
    }

    .medical-heading-note {
        bottom:15px;
        right:15px;
        font-size:.75rem;
    }

    .medical-heading-copy {
        padding:28px 22px;
    }

    .md-filters {
        padding:18px;
    }

    .md-filter-fields {
        grid-template-columns:1fr;
    }

    .md-results-heading {
        flex-direction:column;
        align-items:flex-start;
        margin-top:45px;
    }

    .md-grid {
        gap:10px;
    }

    .md-card {
        border-radius:17px;
    }

    .md-photo {
        margin:6px 6px 0;
        border-radius:13px;
        aspect-ratio:4/5;
    }

    .md-card-body {
        padding:13px;
        gap:12px;
    }

    .md-card-body h3 {
        font-size:1rem;
        min-height:0;
    }

    .md-card-info span {
        font-size:.75rem;
    }

    .md-card-actions .btn {
        font-size:.75rem;
        padding:8px;
    }

    .md-contact {
        width:36px;
        height:42px;
    }

    .md-photo-tag {
        font-size:.65rem;
        border-radius:8px;
        padding:6px 8px;
    }

    .md-photo-link {
        width:32px;
        height:32px;
    }

    .profile-hero {
        padding:15px;
        gap:12px;
        border-radius:22px;
    }

    .profile-identity {
        padding:15px 5px;
    }

    .profile-buttons .btn {
        width:100%;
    }

    .profile-summary {
        gap:20px;
    }

    .sp-grid {
        grid-template-columns:1fr;
    }

    .specialties-banner {
        border-radius:22px;
        padding:30px 24px;
    }
}