/* =========================================================
   Design Tokens
   ========================================================= */
:root {
    --ph-blue: #005A9C;
    --ph-dark-blue: #003B6F;
    --ph-teal: #0E8A8A;
    --ph-gold: #D9A441;
    --ph-light: #F3F8FC;
    --ph-white: #FFFFFF;
    --ph-text: #243746;
    --ph-muted: #5F6F7A;
    --ph-border: #D8E2EB;
}

/* =========================================================
   Base Page Styles
   ========================================================= */
#main-content {
    color: var(--ph-text);
    font-family: Arial, Helvetica, sans-serif;
}

p {
    color: var(--ph-muted);
}

.no-wrap {
    white-space: nowrap;
}

.carousel-container {
    max-width: 1000px !important;
}

/* =========================================================
   Banner / Carousel Hero
   ========================================================= */
.provider-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.provider-carousel .carousel-inner,
.provider-carousel .carousel-item {
    position: relative;
    width: 100%;
}

/* Single full-height overlay */
.provider-carousel .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(0, 0, 0, 0.4);*/
    z-index: 1;
    pointer-events: none;
}

.provider-carousel .carousel-item::after {
    content: none !important;
}

.provider-carousel img {
    position: relative;
    z-index: 0;
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Hero caption */
.provider-carousel .carousel-caption.provider-caption {
    position: absolute !important;
    left: 50% !important;
    bottom: 0px !important;
    top: auto !important;
    right: auto !important;
    transform: translateX(-50%) !important;

    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    width: 100% !important;
    max-width: 1000px;
    padding: clamp(20px, 8vw, 80px) 160px !important;
    margin: 0 auto !important;
    box-sizing: border-box;

    background: transparent !important;
    text-align: left;
    color: #fff !important;
    z-index: 5 !important;
}

.provider-caption h1 {
    position: relative;
    z-index: 6;
    max-width: 850px;
    font-size: clamp(1.65rem, 4.6vw, 3.6rem);
    line-height: 1.08;
    margin: 0 0 clamp(4px, 2vw, 8px);
    color: #fff !important;
}

.provider-caption p {
    position: relative;
    z-index: 6;
    max-width: 760px;
    font-size: clamp(1.15rem, 2.6vw, 1.45rem);
    line-height: 1.55;
    margin: 0;
    color: #fff !important;
}

.hero-actions {
    position: relative;
    z-index: 6;
    display: flex;
    gap: clamp(10px, 2vw, 14px);
    flex-wrap: wrap;
    margin-top: clamp(16px, 3vw, 26px);
}

.inline-link {
    position: relative;
    display: inline-block;

    color: var(--ph-blue);
    text-decoration: none;
    font-weight: 600;

    transition: color .2s ease;
}

.inline-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;

    width: 100%;
    height: 2px;

    background: var(--ph-gold);

    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s ease;
}

.inline-link:hover,
.inline-link:focus {
    color: var(--ph-dark-blue);
    text-decoration: none;
}

.inline-link:hover::after,
.inline-link:focus::after {
    transform: scaleX(1);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-block;
    padding: clamp(10px, 1.5vw, 14px) clamp(16px, 2.5vw, 22px);
    border-radius: 6px;
    font-size: clamp(.9rem, 1.2vw, 1rem);
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
}

.btn-primary {
    background: var(--ph-gold);
    color: #1d2d3a;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #c39132;
    color: #1d2d3a;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #fff;
    color: var(--ph-dark-blue);
    text-decoration: none;
}

/* =========================================================
   Provider Alert Bar
   ========================================================= */
.provider-alert {
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

.provider-alert-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(10px, 1.5vw, 18px);

    padding: clamp(10px, 1.5vw, 14px) clamp(14px, 2vw, 20px);

    background: #f8fafc;
    border: 1px solid #d9e6f2;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);

    font-size: clamp(0.75rem, 0.3vw + 0.75rem, 0.95rem);
    line-height: 1.35;
}

.provider-alert-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ph-text);
    white-space: nowrap;
}

.provider-alert-item i {
    color: var(--ph-blue);
    font-size: 1em;
    flex-shrink: 0;
}

.provider-alert-main div {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.provider-alert-main strong {
    color: var(--ph-dark-blue);
    font-weight: 700;
}

.provider-alert-main span {
    color: var(--ph-text);
}

.provider-alert-divider {
    width: 1px;
    height: clamp(16px, 2vw, 20px);
    background: #cfdbe7;
    flex-shrink: 0;
}

.provider-alert-phone,
.provider-alert-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 2px 8px;
    background: rgba(0, 90, 156, .08);
    border: 1px solid rgba(0, 90, 156, .15);
    border-radius: 4px;

    color: var(--ph-blue);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;

    transition: all .2s ease;
}

.provider-alert-link i {
    color: var(--ph-blue);
}

.provider-alert-phone:hover,
.provider-alert-phone:focus,
.provider-alert-link:hover,
.provider-alert-link:focus {
    background: rgba(0, 90, 156, .14);
    color: var(--ph-dark-blue);
    text-decoration: none;
}

.provider-alert-link:hover i,
.provider-alert-link:focus i {
    color: var(--ph-dark-blue);
}

/* =========================================================
   General Page Sections
   ========================================================= */
.section,
.contact-panel {
    max-width: 1180px;
    margin: 0 auto;
}

/* Section heading */
.section h2 {
    position: relative;
    color: var(--ph-dark-blue);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    padding-bottom: 10px;
}

.section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    background: var(--ph-gold);
    border-radius: 2px;
}

.section-lead {
    color: var(--ph-muted);
}

.intro-grid {
    display: block;
}

/* =========================================================
   SECTION LAYOUT / VISUAL SEPARATION
   ========================================================= */
.section {
    position: relative;
    max-width: 1000px;
    margin: 0 1rem;
}

/* Adds breathing room between major content areas */
/*.section+.section {
    border-top: 1px solid var(--ph-border);
}*/

/* Optional intro paragraph under headings */
.section-lead,
.section-header p {
    color: var(--ph-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

/* Use this for important sections */
.section-highlight {
    background: linear-gradient(180deg,
            #f7f8f9 0%,
            #fafbfc 100%);
    border-top: 1px solid #d7dde3;
    border-bottom: 1px solid #d7dde3;
    padding: 0 1rem;
}

.section-highlight>div:not(.stats-inline),
.section-highlight>p {
    margin-left: 1rem;
    margin-right: 1rem;
}

.section-highlight>* {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

/* Use this for card-like sections */
.section-card {
    background: #fff;
    border: 1px solid var(--ph-border);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 59, 111, .06);
}

/* Better spacing for card grids */
.feature-grid,
.service-grid,
.location-grid,
.contact-grid {
    margin-top: 28px;
}

/* Make cards feel more intentional */
.feature-card,
.service-grid article,
.location-card,
.contact-grid div {
    background: #fff;
    border: 1px solid var(--ph-border);
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 3px 10px rgba(0, 59, 111, .04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover,
.service-grid article:hover,
.location-card:hover {
    box-shadow: 0 8px 18px rgba(0, 59, 111, .08);
}

/* =========================================================
   ABOUT + DIFFERENCE + STATS
   ========================================================= */

.about-content {
    margin-bottom: 42px;
}

.about-difference-layout,
.about-difference-layout *,
.about-difference-layout *::before,
.about-difference-layout *::after {
    box-sizing: border-box;
}

.about-difference-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    gap: clamp(30px, 5vw, 56px);
    align-items: start;
}

.divider {
    position: relative;

    width: 100%;
    height: 2px;

    margin: 3rem 0;

    background: var(--ph-border);
}

.divider::after {
    content: "";

    position: absolute;
    left: 50%;
    top: 50%;

    width: 70px;
    height: 6px;

    transform: translate(-50%, -50%);

    background: var(--ph-gold);
    border-radius: 999px;
}

.embedded-difference {
    position: relative;
    padding: 4px 0 0 24px;
}

.embedded-difference::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0;
    width: 5px;
    height: 52px;
    border-radius: 999px;
    background: linear-gradient(to bottom,
            var(--ph-blue),
            var(--ph-gold));
}

.embedded-difference h3 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    margin: 0 0 18px;
    color: var(--ph-dark-blue);
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 700;
    line-height: 1.25;
}

.embedded-difference h3::after {
    display: none;
}

/*.embedded-difference h3::before {
    content: "WHY PATIENTS AND PROVIDERS CHOOSE US";

    display: inline-flex;
    align-items: center;

    margin-bottom: 12px;
    padding: 7px 14px;

    color: var(--ph-blue);
    background: rgba(0, 90, 156, .08);

    border: 1px solid rgba(0, 90, 156, .16);
    border-radius: 999px;

    font-size: .65rem;
    font-weight: 800;
    line-height: 1;

    letter-spacing: .08em;
    text-transform: uppercase;
}*/

.embedded-difference p:last-child {
    margin-bottom: 0;
}

/* Stats panel inside About layout */
.about-difference-layout .stats-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;

    width: 100%;
    margin: 0;
    padding: 0;

    background: var(--ph-dark-blue);
    border: 0;
    border-radius: 12px;
    overflow: hidden;

    box-shadow: 0 4px 14px rgba(0, 59, 111, .12);

    color: #fff;
    text-align: center;
}

.about-difference-layout .stats-inline .stats-intro {
    grid-column: 1 / -1;

    padding: 22px 24px;

    background: #f4f8fb;
    border-bottom: 3px solid var(--ph-gold);
}

.about-difference-layout .stats-inline .stats-intro h3 {
    margin: 0;

    color: var(--ph-dark-blue);

    font-size: clamp(.8rem, .71vw + .67rem, 1rem);
    line-height: 1.2;

    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.about-difference-layout .stats-inline .stat-card {
    position: relative;

    padding: 26px 20px;

    background: transparent;
    border: 1px solid rgba(255, 255, 255, .18);

    text-align: center;

    transition: background .2s ease;
}

.about-difference-layout .stats-inline .stat-card:hover {
    background: rgba(255, 255, 255, .05);
}

.about-difference-layout .stats-inline .stat-card::before {
    display: none;
}

.about-difference-layout .stats-inline .stat-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    margin-bottom: 14px;

    color: #fff;
    background: rgba(255, 255, 255, .10);
    border: none;
    border-radius: 50%;
    box-shadow: none;

    font-size: 1.1rem;
}

.about-difference-layout .stats-inline .stat-card strong {
    display: block;

    margin-bottom: 8px;

    color: var(--ph-gold);

    font-size: clamp(2rem, 2vw, 2.3rem);
    line-height: 1;

    font-weight: 800;
    letter-spacing: 0;
}

.about-difference-layout .stats-inline .stat-card span,
.about-difference-layout .stats-inline .stat-card .stat-title {
    display: block;

    color: #ffffff;

    font-size: .85rem;
    line-height: 1.3;

    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
}

.about-difference-layout .stats-inline .stat-subtitle {
    display: block;

    margin-top: 6px;

    color: #d8e6f2 !important;

    font-size: .72rem !important;
    line-height: 1.4;

    font-weight: 600 !important;
    letter-spacing: .01em;
    text-transform: none;
}

.about-difference-layout .stats-inline i,
.about-difference-layout .stats-inline strong,
.about-difference-layout .stats-inline span {
    position: static;
    z-index: auto;
}

@media (max-width: 920px) {

    .about-content {
        margin-bottom: 32px;
    }

    .about-difference-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-difference-layout .stats-inline {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .about-difference-layout .stats-inline .stats-intro {
        grid-column: 1 / -1;
    }

    .about-difference-layout .stats-inline .stat-card {
        padding: 22px 14px;
    }

    .about-difference-layout .stats-inline .stat-card i {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
        font-size: 1rem;
    }

    .about-difference-layout .stats-inline .stat-card strong {
        font-size: clamp(1.75rem, 4vw, 2.2rem);
    }

    .about-difference-layout .stats-inline .stat-card span,
    .about-difference-layout .stats-inline .stat-card .stat-title {
        font-size: .78rem;
    }

    .about-difference-layout .stats-inline .stat-subtitle {
        font-size: .68rem !important;
        line-height: 1.3;
    }
}

@media (max-width: 660px) {

    .about-difference-layout .stats-inline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-difference-layout .stats-inline .stats-intro {
        grid-column: 1 / -1;
    }

    .about-difference-layout .stats-inline .stat-card {
        padding: 20px 14px;
    }
}

@media (max-width: 520px) {

    .about-difference-layout .stats-inline {
        grid-template-columns: 1fr;
    }

    .about-difference-layout .stats-inline .stats-intro {
        grid-column: auto;
        padding: 20px 18px;
    }

    .about-difference-layout .stats-inline .stat-card {
        padding: 22px 18px;
        border-right: 1px solid rgba(255, 255, 255, .18);
        border-bottom: 1px solid rgba(255, 255, 255, .18);
    }

    .about-difference-layout .stats-inline .stat-card:last-child {
        border-bottom: 1px solid rgba(255, 255, 255, .18);
    }
}

/* =========================================================
   Feature Cards
   ========================================================= */
.feature-grid,
.service-grid,
.location-grid,
.contact-grid {
    display: grid;
    gap: 22px;
}

.feature-grid {
    grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.service-grid article,
.location-card,
.contact-grid div {
    background: #fff;
    border: 1px solid var(--ph-border);
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 3px 10px rgba(0, 59, 111, .04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover,
.service-grid article:hover,
.location-card:hover {
    box-shadow: 0 8px 18px rgba(0, 59, 111, .08);
}

.feature-card i {
    color: var(--ph-teal);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.feature-card h3,
.service-grid h3,
.location-grid h3,
.contact-grid h3 {
    color: var(--ph-dark-blue);
    margin-top: 0;
}

/* =========================================================
   Services Section
   ========================================================= */
.light-section {
    background: var(--ph-light);
    max-width: none;
}

.light-section>h2,
.light-section>p,
.light-section .service-grid {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

/* Services grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 28px;

    padding: 28px;
    background: linear-gradient(180deg,
            #f4f8fb 0%,
            #edf3f8 100%);

    border: 1px solid #d9e6f2;
    border-radius: 8px;
}

/* Service card */
.service-grid .service-card {
    background: #fff;
    border: 1px solid var(--ph-border);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(0, 59, 111, .05);

    display: flex;
    flex-direction: column;
    gap: 10px;

    min-height: auto;
    height: auto;

    transition: transform .2s ease, box-shadow .2s ease;
}

.service-grid .service-card:hover {
    box-shadow: 0 10px 22px rgba(0, 59, 111, .09);
}

/* Icon */
.service-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;

    border-radius: 12px;
    background: rgba(0, 90, 156, .08);
    color: var(--ph-blue);

    font-size: 1.15rem;
    margin-bottom: 4px;
}

/* Title */
.service-card h3 {
    color: var(--ph-dark-blue);
    font-size: 1.1rem;
    line-height: 1.25;
    margin: 0;
    font-weight: 600;
}

/* Summary */
.service-summary {
    color: var(--ph-muted);
    font-size: .95rem;
    line-height: 1.45;
    margin: 0;
}

/* Bullets */
.service-points {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
}

.service-points li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 7px;

    color: var(--ph-text);
    font-size: .9rem;
    line-height: 1.35;
}

.service-points li:last-child {
    margin-bottom: 0;
}

.service-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;

    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: var(--ph-gold);
}

/* Tablet */
@media (max-width: 900px) {
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 620px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-grid .service-card {
        padding: 20px;
    }
}

/* =========================================================
   Referral Steps
   ========================================================= */
.referral-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.steps {
    display: grid;
    gap: 18px;
}

.steps div {
    background: var(--ph-light);
    border-left: 5px solid var(--ph-teal);
    padding: 22px;
    border-radius: 8px;
}

.steps span {
    background: var(--ph-blue);
    color: #fff;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-weight: 700;
}

/* =========================================================
   FAQ Section
   ========================================================= */
.faq-section details {
    border: 1px solid var(--ph-border);
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 14px;
    background: #fff;
}

.faq-section summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--ph-dark-blue);
}

/* =========================================================
   Contact Panel
   ========================================================= */
.contact-panel {
    background: var(--ph-dark-blue);
    color: #fff;
    padding: 50px 30px;
    border-radius: 12px;
    margin-bottom: 60px;
}

.contact-panel h2,
.contact-panel h3 {
    color: #fff;
}

.contact-grid {
    grid-template-columns: repeat(3, 1fr);
}

.contact-grid div {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .2);
}

/* ==========================================
   Clinic Locations
   ========================================== */

.location-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.location-card {
    background: #fff;
    border: 1px solid var(--ph-border);
    border-radius: 14px;
    padding: 22px 15px;
    min-height: 230px;
    min-width: 0;

    display: flex;
    flex-direction: column;

    box-shadow: 0 6px 16px rgba(0, 59, 111, 0.06);
}

.location-card:hover {
    border-color: #c9d9e8;
    box-shadow: 0 14px 28px rgba(0, 59, 111, 0.12);
}

.location-top {
    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 18px;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.location-icon {
    display: block;

    color: var(--ph-blue);

    font-size: 2.25rem;
    /* ~25% larger */

    line-height: 1;
    text-align: center;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto;

    filter: drop-shadow(0 6px 12px rgba(0, 90, 156, .20));

    transition:
        transform .25s ease,
        color .25s ease;
}

.location-card:hover .location-icon {
    color: var(--ph-dark-blue);
}

.location-card:hover .location-icon {
    color: var(--ph-dark-blue);
}

.location-card h3 {
    color: var(--ph-dark-blue);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 12px;
}

.location-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    margin: 0 0 18px;
    font-size: 0.82rem;
    color: var(--ph-muted);
    text-decoration: none;

    transition: color .2s ease;
}

.location-address:hover {
    color: var(--ph-blue);
    text-decoration: none;
}

.location-address i {
    color: var(--ph-gold);
    margin-top: 3px;
    flex-shrink: 0;
}

.location-address span {
    line-height: 1.5;
}

.location-phone {
    margin-top: auto;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    width: 100%;
    box-sizing: border-box;

    padding: 8px 10px;

    background: #f7fafc;
    border: 1px solid #d8e2eb;
    border-radius: 10px;

    color: var(--ph-blue);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;

    white-space: nowrap;
}

.location-phone:hover,
.location-phone:focus {
    background: var(--ph-blue);
    border-color: var(--ph-blue);
    color: #fff;
    text-decoration: none;
}

.location-phone i {
    font-size: .85rem;
}

@media (max-width: 1000px) {
    .location-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .location-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .location-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Telehealth Callout
   ========================================== */

.telehealth-callout {
    display: flex;
    align-items: flex-start;
    gap: 18px;

    margin-top: 36px;
    padding: 24px 28px;

    background: #f8fbfe;
    border: 1px solid #d7e5f1;
    border-left: 5px solid var(--ph-blue);
    border-right: 5px solid var(--ph-blue);
    border-radius: 12px;

    box-shadow: 0 4px 14px rgba(0, 59, 111, 0.06);
}

.telehealth-callout-icon {
    flex-shrink: 0;

    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    background: #ffffff;
    border: 1px solid #cfe0ee;
    border-radius: 10px;

    color: var(--ph-blue);
    font-size: 1.25rem;

    box-shadow: 0 2px 6px rgba(0, 59, 111, 0.05);
}

.telehealth-callout-content {
    flex: 1;
    min-width: 0;
}

.telehealth-label {
    display: inline-block;

    margin-bottom: 6px;

    color: var(--ph-blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.telehealth-callout-content h3 {
    margin: 0 0 6px;

    color: var(--ph-dark-blue);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
}

.telehealth-callout-content p {
    margin: 0;

    color: var(--ph-text);
    font-size: 0.96rem;
    line-height: 1.6;
}

/* Mobile */
@media (max-width: 768px) {
    .telehealth-callout {
        gap: 14px;
        padding: 20px;
    }

    .telehealth-callout-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .telehealth-callout-content h3 {
        font-size: 1rem;
    }

    .telehealth-callout-content p {
        font-size: 0.92rem;
    }
}

@media (max-width: 520px) {
    .telehealth-callout {
        flex-direction: column;
    }
}

/* ==========================================
   TB Contact Section
   ========================================== */

.contact-section {
    background: #fff;
}

.tb-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 420px));
    justify-content: center;
    gap: 24px;
    margin-top: 28px;
}

.tb-contact-card {
    display: flex;
    flex-direction: column;

    height: 100%;
    min-width: 0;

    padding: 24px;
    background: #fff;

    border: 1px solid var(--ph-border);
    border-radius: 14px;

    box-shadow: 0 4px 14px rgba(0, 59, 111, 0.05);
}

.tb-contact-primary {
    border-top: 4px solid var(--ph-blue);
}

.tb-contact-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    margin-bottom: 16px;

    border-radius: 12px;

    background: rgba(0, 90, 156, 0.08);
    color: var(--ph-blue);

    font-size: 1.15rem;
}

.tb-contact-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tb-contact-label {
    display: inline-block;

    margin-bottom: 6px;

    color: var(--ph-blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tb-contact-card h3 {
    margin: 0 0 10px;

    color: var(--ph-dark-blue);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
}

.tb-contact-card p {
    margin: 0;

    color: var(--ph-muted);
    font-size: 0.86rem;
    line-height: 1.6;

    flex: 1;
}

.tb-contact-phone {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    margin-top: auto;
    padding: 12px 14px;

    box-sizing: border-box;

    background: var(--ph-blue);
    border: 1px solid var(--ph-blue);
    border-radius: 10px;

    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;

    transition: background-color .2s ease,
        border-color .2s ease;
}

.tb-contact-phone:hover,
.tb-contact-phone:focus {
    background: var(--ph-dark-blue);
    border-color: var(--ph-dark-blue);

    color: #fff;
    text-decoration: none;
}

.hours {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .tb-contact-grid {
        grid-template-columns: minmax(0, 500px);
        justify-content: center;
    }
}

@media (max-width: 520px) {

    .tb-contact-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tb-contact-card {
        padding: 18px;
    }

    .tb-contact-icon {
        width: 42px;
        height: 42px;

        margin-bottom: 12px;

        font-size: 1rem;
    }

    .tb-contact-card h3 {
        font-size: 0.98rem;
    }

    .tb-contact-card p {
        margin-bottom: 14px;
        font-size: 0.88rem;
    }

    .tb-contact-phone {
        padding: 11px 12px;
        font-size: 0.92rem;
    }
}

/* ==========================================
   Referral Section
   ========================================== */

.refer-cta-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin: 30px 0;
    padding: 24px 28px;

    background: var(--ph-dark-blue);
    color: #fff;

    border-radius: 12px;

    box-shadow: 0 8px 20px rgba(0, 59, 111, .12);
}

.refer-label {
    display: block;

    color: rgba(255, 255, 255, .8);

    font-size: .75rem;
    font-weight: 800;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.refer-cta-banner strong {
    display: block;

    margin: 4px 0;

    color: var(--ph-gold);

    font-size: 2rem;
    line-height: 1;
}

.refer-cta-banner p {
    margin: 0;
    color: #dbe8f3;
}

.refer-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.refer-steps article {
    position: relative;

    background: #fff;

    border: 1px solid var(--ph-border);
    border-radius: 14px;

    padding: 28px;

    box-shadow: 0 4px 12px rgba(0, 59, 111, .05);

    transition: all .2s ease;
}

.refer-steps article:hover {
    transform: translateY(-3px);

    box-shadow: 0 12px 24px rgba(0, 59, 111, .08);
}

.step-number {
    position: absolute;
    top: 18px;
    right: 18px;

    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--ph-blue);
    color: #fff;

    font-weight: 700;
}

.refer-steps i {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    margin-bottom: 16px;

    border-radius: 12px;

    background: rgba(0, 90, 156, .08);
    color: var(--ph-blue);

    font-size: 1.2rem;
}

.refer-steps h3 {
    margin: 0 0 10px;
    color: var(--ph-dark-blue);
}

.refer-steps p {
    margin: 0;
}

@media (max-width: 900px) {

    .refer-steps {
        grid-template-columns: 1fr;
    }

    .refer-cta-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* ==========================================
   Referral Support / FAQ / Resources
   ========================================== */

.refer-support-panel {
    margin-top: 30px;
    margin-bottom: 40px;
    padding: 26px 28px;
    background:
        radial-gradient(circle at top right, rgba(0, 90, 156, .06), transparent 45%),
        linear-gradient(180deg, #ffffff, #f8fbfe);
    border: 1px solid #d7e5f1;
    border-left: 4px solid #7FA5C2;
    border-right: 4px solid #7FA5C2;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 59, 111, .08), 0 1px 3px rgba(0, 59, 111, .05);
}

.refer-support-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 14px;
    background: rgba(0, 90, 156, .08);
    border: 1px solid rgba(0, 90, 156, .15);
    border-radius: 999px;
    color: var(--ph-blue);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1;
}

.refer-support-label::before {
    content: "";
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--ph-blue);
    box-shadow: 0 0 0 4px rgba(14, 138, 138, .10);
}

.refer-support-main h3 {
    margin: 0 0 10px;
    color: var(--ph-dark-blue);
    font-size: 1.5rem;
    line-height: 1.3;
    text-transform: capitalize;
    font-weight: 600;
}

.refer-support-main p {
    margin: 0;
    max-width: 1020px;
    color: var(--ph-muted);
    font-size: .97rem;
    line-height: 1.65;
}

.refer-support-main strong {
    color: var(--ph-text);
}

.refer-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    gap: 22px;
    margin-top: 22px;
}

.refer-faq-card,
.refer-resource-card {
    padding: 26px;
    background: #fff;
    border: 1px solid var(--ph-border);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 59, 111, .06);
}

.refer-faq-card h3,
.refer-resource-card h3 {
    margin: 0 0 18px;
    color: var(--ph-dark-blue);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}


.refer-support-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    margin: 24px 0 30px;
    padding: 18px 22px;

    background: linear-gradient(180deg,
            rgb(247 252 252) 0%,
            rgb(241 249 249) 100%);

    border: 1px solid rgb(0 124 138 / 12%);
    border-radius: 14px;

    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 90%),
        0 4px 12px rgb(0 124 138 / 5%);
}

.refer-support-note i {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;
    flex-shrink: 0;

    background: rgb(0 124 138 / 10%);
    border-radius: 50%;

    color: var(--ph-teal);
    font-size: 1.1rem;
}

.refer-support-note p {
    margin: 0;

    color: var(--ph-muted);
    font-size: .96rem;
    line-height: 1.65;
}

.refer-support-note strong:first-child {
    display: block;
    margin-bottom: .35rem;

    color: var(--ph-dark-blue);
    font-size: 1.02rem;
    font-weight: 700;
}

.refer-support-note strong:not(:first-child) {
    color: var(--ph-text);
}

@media (max-width: 560px) {
    .refer-support-note {
        padding: 16px 18px;
        gap: 14px;
    }

    .refer-support-note i {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .refer-support-note p {
        font-size: .9rem;
    }
}


/* Accordion */
.js-accordion details,
.refer-faq-card details {
    border-top: 1px solid var(--ph-border);
    overflow: hidden;
}

.js-accordion details:first-of-type,
.refer-faq-card details:first-of-type {
    border-top: none;
}

.js-accordion summary,
.refer-faq-card summary {
    position: relative;
    cursor: pointer;
    list-style: none;
    padding: 12px 38px 12px 0;
    color: var(--ph-dark-blue);
    font-weight: 800;
    line-height: 1.35;
    font-size: .9rem;
    text-transform: capitalize;
}

.js-accordion summary::-webkit-details-marker,
.refer-faq-card summary::-webkit-details-marker {
    display: none;
}

.js-accordion summary::after,
.refer-faq-card summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 12px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 90, 156, .08);
    color: var(--ph-blue);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
}

.js-accordion details[open] summary::after,
.refer-faq-card details[open] summary::after {
    content: "−";
    background: var(--ph-blue);
    color: #fff;
}

.js-accordion summary:focus-visible,
.refer-faq-card summary:focus-visible {
    outline: 3px solid var(--ph-gold);
    outline-offset: 3px;
    border-radius: 6px;
}

.faq-answer,
.js-accordion-content {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        height .34s ease,
        opacity .22s ease;
}

.js-accordion details[open] .faq-answer,
.js-accordion details[open] .js-accordion-content,
.refer-faq-card details[open] .faq-answer {
    opacity: 1;
}

.faq-answer p,
.js-accordion-content p {
    margin: 0;
    padding: 0 38px 14px 0;
    color: var(--ph-muted);
    font-size: .92rem;
    line-height: 1.6;
}

/* Resources */
.refer-resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .9rem;
}

.refer-resource-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 12px;
    line-height: 1.45;
}

.refer-resource-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 7px;
    height: 7px;
    background: var(--ph-gold);
    border-radius: 50%;
}

.refer-patient-link {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--ph-border);
    color: var(--ph-muted);
    font-size: .94rem;
    line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {

    .faq-answer,
    .js-accordion-content {
        transition: none;
    }
}

@media (max-width: 900px) {
    .refer-info-grid {
        grid-template-columns: 1fr;
    }

    .refer-support-panel,
    .refer-faq-card,
    .refer-resource-card {
        padding: 22px;
    }
}

@media (max-width: 560px) {

    .refer-support-panel,
    .refer-faq-card,
    .refer-resource-card {
        padding: 18px;
        border-radius: 14px;
    }

    .refer-support-main h3,
    .refer-faq-card h3,
    .refer-resource-card h3 {
        font-size: 1.05rem;
    }

    .js-accordion summary,
    .refer-faq-card summary {
        padding-right: 36px;
    }

    .faq-answer p,
    .js-accordion-content p {
        padding-right: 0;
    }
}

.marginBtm {
    margin-bottom: -25px !important;
}

.after-hours-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ph-border);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ph-muted);
}

.after-hours-note strong {
    color: var(--ph-text);
}

.patient-resource-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    margin: 12px auto 0;

    padding: 10px 16px;

    background: rgba(217, 164, 65, .12);
    border: 1px solid rgba(217, 164, 65, .35);
    border-radius: 10px;

    color: #8a5a00;
    font-weight: 700;
    text-decoration: none;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.patient-resource-link:hover,
.patient-resource-link:focus {
    background: var(--ph-gold);
    border-color: var(--ph-gold);
    color: #243746;

    text-decoration: none;

    transform: translateY(-1px);

    box-shadow:
        0 4px 12px rgba(217, 164, 65, .20),
        0 8px 20px rgba(217, 164, 65, .15);
}

/* =========================================================
   Responsive: Tablet / Small Desktop
   ========================================================= */
@media (max-width: 900px) {
    .provider-carousel .carousel-caption.provider-caption {
        max-width: none;
        padding-left: 32px !important;
        padding-right: 32px !important;
        box-sizing: border-box;
    }

    .hero-actions {
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-actions .btn {
        box-sizing: border-box;
        max-width: 100%;
    }

    .intro-grid,
    .referral-section,
    .feature-grid,
    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-grid {
        grid-template-columns: repeat(3, 1fr);
    }


    .provider-alert-content {
        gap: 12px;
        justify-content: center;
        text-align: center;
    }

    .provider-alert-item {
        white-space: normal;
    }

    .provider-alert-main div {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 8px;
    }
}

/* =========================================================
   Responsive: Tablet
   ========================================================= */
@media (max-width: 768px) {
    .provider-carousel .carousel-caption.provider-caption {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: clamp(22px, 4vw, 40px) !important;
        padding-right: clamp(22px, 4vw, 40px) !important;
        box-sizing: border-box;
    }

    .provider-caption h1 {
        max-width: 100%;
        font-size: clamp(1.6rem, 4vw, 2.3rem);
    }

    .provider-caption p {
        max-width: 95%;
        font-size: clamp(.95rem, 2vw, 1rem);
    }

    .hero-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .provider-alert-content {
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 12px;
        font-size: clamp(0.72rem, 1.4vw, 0.86rem);
        text-align: center;
    }

    .provider-alert-item {
        white-space: normal;
        min-width: 0;
    }

    .provider-alert-main div {
        display: inline-flex;
        align-items: center;
        gap: 4px 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        padding: 18px;
    }

    .service-grid .service-card {
        padding: 18px;
    }

    .service-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .service-card h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .service-summary {
        font-size: .9rem;
    }

    .service-points li {
        font-size: .85rem;
        line-height: 1.4;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .location-card {
        min-height: auto;
        padding: 18px;

        display: grid;
        grid-template-columns: 56px 1fr auto;
        align-items: center;
        gap: 16px;
    }

    .location-top {
        margin: 0;
    }

    .location-icon {
        font-size: 1.8rem;
    }

    .location-card h3 {
        grid-column: 2;
        margin: 0 0 6px;
        font-size: 1rem;
    }

    .location-address {
        grid-column: 2;
        margin: 0;
        font-size: .88rem;
    }

    .location-phone {
        grid-column: 3;
        grid-row: 1 / span 2;

        width: auto;
        min-width: 140px;

        margin: 0;
        padding: 10px 14px;
    }

    /* ABOUT */

    .section-header p,
    .section-lead,
    .intro-grid p {
        font-size: .98rem;
        line-height: 1.6;
    }

    /* TELEHEALTH */

    .telehealth-callout {
        padding: 20px;
    }

    .telehealth-callout-content p {
        max-width: 100%;
    }

    /* CONTACT */

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .contact-grid div {
        padding: 20px;
    }

    /* FAQ */

    .faq-section details {
        padding: 16px 18px;
    }

    .faq-section summary {
        font-size: .95rem;
    }
}

/* =========================================================
   Responsive: Mobile
   ========================================================= */
@media (max-width: 520px) {
    .provider-carousel .carousel-caption.provider-caption {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .provider-caption h1 {
        font-size: clamp(1.35rem, 6vw, 1.8rem);
        line-height: 1.15;
    }

    .provider-caption p {
        font-size: clamp(.85rem, 3.5vw, .95rem);
        line-height: 1.4;
        max-width: 100%;
    }

    .hero-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }

    .hero-actions .btn {
        flex: 1 1 180px;
        width: auto;
        max-width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .provider-alert-content {
        padding: 10px 14px;
        font-size: clamp(0.7rem, 2.5vw, 0.85rem);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        text-align: center;
    }

    .provider-alert-item {
        width: fit-content;
        white-space: normal;
        justify-content: center;
        text-align: center;
    }

    .provider-alert-main div {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px 6px;
    }

    .provider-alert-link {
        white-space: normal;
    }

    .provider-alert-divider {
        display: none;
    }

    /* SERVICES - vertical scroll area */

    .service-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 12px;
        background: #f4f8fb;
        max-height: 650px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .service-grid::-webkit-scrollbar {
        width: 6px;
    }

    .service-grid::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 999px;
    }

    .service-grid .service-card {
        display: grid;
        grid-template-columns: 42px 1fr;
        gap: 10px 12px;
        padding: 14px 16px;
        border-radius: 12px;
        min-height: auto;
    }

    .service-icon {
        grid-row: 1 / span 2;
        width: 42px;
        height: 42px;
        border-radius: 10px;
        font-size: 1rem;
        margin: 0;
    }

    .service-card h3 {
        margin: 0;
        font-size: .95rem;
        line-height: 1.25;
    }

    .service-summary {
        margin: 0;
        font-size: .88rem;
        line-height: 1.4;
    }

    .service-points {
        display: none;
    }

    .service-points li {
        font-size: .84rem;
    }

    /* LOCATIONS - mobile card layout */

    .location-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 24px;
    }

    .location-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;

        gap: 8px;
        min-height: auto;
        padding: 18px 16px;

        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(0, 59, 111, 0.06);
    }

    .location-top {
        margin: 0 0 4px;
        justify-content: center;
        align-items: center;
    }

    .location-icon {
        font-size: 1.8rem;
        filter: drop-shadow(0 4px 8px rgba(0, 90, 156, .16));
    }

    .location-card h3 {
        margin: 0;
        font-size: 1rem;
        line-height: 1.25;
        text-align: center;
    }

    .location-address {
        justify-content: center;
        align-items: flex-start;
        gap: 7px;

        margin: 2px 0 8px;
        font-size: .88rem;
        line-height: 1.45;
        text-align: left;
    }

    .location-address span {
        line-height: 1.45;
    }

    .location-address i {
        margin-top: 2px;
        font-size: .8rem;
    }

    .location-phone {
        width: 100%;
        margin-top: 4px;
        padding: 10px 12px;

        font-size: .9rem;
        border-radius: 10px;
    }

    /* ABOUT */

    .section-header p,
    .section-lead,
    .intro-grid p {
        font-size: .95rem;
    }

    /* TELEHEALTH */

    .telehealth-callout {
        padding: 18px;
    }

    .telehealth-callout-icon {
        width: 42px;
        height: 42px;
    }

    .telehealth-label {
        font-size: .68rem;
    }

    .telehealth-callout-content h3 {
        font-size: .95rem;
    }

    .telehealth-callout-content p {
        font-size: .88rem;
    }

    /* CONTACT */

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        padding: 28px 20px;
    }

    /* FAQ */

    .faq-section details {
        padding: 14px 16px;
    }
}

/* =========================================================
   Responsive: Small Mobile
   ========================================================= */
@media (max-width: 440px) {
    .provider-carousel .carousel-caption.provider-caption {
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    .provider-caption h1 {
        font-size: clamp(1.2rem, 5.5vw, 1.5rem);
        line-height: 1.15;
        margin-bottom: 8px;
    }

    .provider-caption p {
        font-size: clamp(.8rem, 3vw, .9rem);
        line-height: 1.35;
        max-width: 100%;
    }

    .hero-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 12px;
        gap: 8px;
        width: 100%;
    }

    .hero-actions .btn {
        flex: 1 1 150px;
        width: auto;
        max-width: 100%;
        padding: 10px 14px;
        font-size: .9rem;
        text-align: center;
        box-sizing: border-box;
    }
}

/* =========================================================
   Responsive: Extra Small Mobile
   ========================================================= */
@media (max-width: 320px) {
    main {
        padding: 0 !important;
    }

    .provider-carousel .carousel-caption.provider-caption {
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }

    .provider-caption h1 {
        font-size: 1.1rem;
        line-height: 1.15;
        margin-bottom: 6px;
    }

    .provider-caption p {
        font-size: .8rem;
        line-height: 1.3;
        margin-bottom: 0;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 100%;
        flex: none;
        text-align: center;
        font-size: 0.8rem !important;
        padding: 8px 10px;
        line-height: 1.2;
    }

    .provider-alert-content {
        padding: 8px 12px;
        font-size: 0.7rem;
    }

    .provider-alert-item {
        gap: 6px;
    }

    .provider-alert-message i,
    .provider-alert-link i {
        margin-right: 4px;
    }
}

/* ==========================================
   Hero Action Bar
   Moves buttons outside image hero
   ========================================== */

.hero-action-bar {
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto;

    background: #f8fbfe;
    border-bottom: 1px solid #d9e6f2;
    box-shadow: 0 3px 10px rgba(0, 59, 111, .06);
}

.hero-action-bar .hero-actions {
    max-width: 1000px;
    margin: 0 auto;
    padding: 14px 24px;

    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

/* ==========================================
   Hero Buttons - Shared Base
   ========================================== */

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    min-height: 42px;
    padding: 9px 14px;

    box-sizing: border-box;
    border-radius: 8px;

    font-size: .9rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;

    white-space: normal;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.hero-btn i {
    font-size: .9rem;
    line-height: 1;
    flex-shrink: 0;
}

.hero-btn span {
    line-height: 1.2;
}

.hero-btn:hover,
.hero-btn:focus {
    text-decoration: none;
    transform: translateY(-1px);
}

/* About Us */
.hero-btn-primary {
    background: var(--ph-gold);
    border: 1px solid var(--ph-gold);
    color: #243746;
    box-shadow: 0 3px 10px rgba(217, 164, 65, .22);
}

.hero-btn-primary:hover,
.hero-btn-primary:focus {
    background: #c39132;
    border-color: #c39132;
    color: #243746;
}

/* Our Services / For Patients */
.hero-btn-secondary {
    background: var(--ph-blue);
    border: 1px solid var(--ph-blue);
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 90, 156, .22);
}

.hero-btn-secondary:hover,
.hero-btn-secondary:focus {
    background: var(--ph-dark-blue);
    border-color: var(--ph-dark-blue);
    color: #fff;
}

/* Locations */
.hero-btn-contact {
    background: #ffffff;
    border: 1px solid #d9e6f2;
    color: var(--ph-dark-blue);
    box-shadow: 0 2px 8px rgba(0, 59, 111, .08);
}

.hero-btn-contact:hover,
.hero-btn-contact:focus {
    background: #eef6fc;
    border-color: #cfe0ee;
    color: var(--ph-blue);
}

/* Referral */
.hero-btn-tertiary,
.hero-action-bar .hero-btn-tertiary {
    background: var(--ph-dark-blue);
    border: 1px solid var(--ph-dark-blue);
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 59, 111, .20);
}

.hero-btn-tertiary:hover,
.hero-btn-tertiary:focus,
.hero-action-bar .hero-btn-tertiary:hover,
.hero-action-bar .hero-btn-tertiary:focus {
    background: #002f59;
    border-color: #002f59;
    color: #fff;
}

/* Contact */
.hero-btn-contact-us {
    background: #f3f5f7;
    color: #435463;

    border: 1px solid #d6dde4;
    border-left: 4px solid #435463;

    box-shadow: 0 1px 3px rgba(0, 59, 111, .05);
}

.hero-btn-contact-us i {
    color: #5f6f7a;
    transition: color .2s ease;
}

.hero-btn-contact-us:hover,
.hero-btn-contact-us:focus {
    background: #e8edf1;
    border-color: #c4d0da;
    border-left-color: var(--ph-blue);
    color: #243746;
    box-shadow: 0 4px 10px rgba(0, 59, 111, .08);
}

.hero-btn-contact-us:hover i,
.hero-btn-contact-us:focus i {
    color: var(--ph-blue);
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 1050px) {
    .hero-action-bar .hero-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 12px 20px;
    }
}

@media (max-width: 768px) {
    .hero-action-bar .hero-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 12px 16px;
    }

    .hero-btn {
        min-height: 40px;
        padding: 8px 10px;
        font-size: .82rem;
        border-radius: 7px;
    }

    .hero-btn i {
        font-size: .8rem;
    }
}

@media (max-width: 560px) {
    .hero-action-bar .hero-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 10px 12px;
    }

    .hero-btn {
        min-height: 38px;
        padding: 8px 9px;
        font-size: .8rem;
    }
}

@media (max-width: 360px) {
    .hero-action-bar .hero-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-btn {
        min-height: 38px;
    }
}


/* ==========================================
   TB Report / Referral Steps
   Place under TB Consultation Line banner
   ========================================== */

.tb-report-steps {
    margin-top: 15px;
    margin-bottom: 0;
    max-width: 1140px;
}

.tb-report-steps-header {
    max-width: 860px;
    margin-bottom: 28px;
}

.tb-report-kicker,
.tb-report-step-label {
    display: inline-block;

    color: var(--ph-blue);

    font-size: .72rem;
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.tb-report-steps-header h2 {
    margin-top: 8px;
}

.tb-report-steps-header p {
    margin: 0;

    color: var(--ph-muted);

    font-size: 1.02rem;
    line-height: 1.65;
}

.tb-report-flow {
    position: relative;

    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;

    margin: 0;
    padding: 6px 0 6px;

    list-style: none;
}

/*.tb-report-flow::before {
    content: "";

    position: absolute;
    top: 54px;
    left: 8%;
    right: 8%;

    height: 2px;

    background: linear-gradient(
        90deg,
        rgba(0,90,156,.18),
        rgba(14,138,138,.45),
        rgba(0,90,156,.18)
    );

    z-index: 0;
}*/

.tb-report-step {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 0;

    z-index: 1;
}

.tb-report-step-number {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;
    margin: 0 0 -29px;

    background-color: var(--ph-blue);
    /* Fallback for accessibility tools */
    background-image: linear-gradient(135deg,
            var(--ph-blue),
            var(--ph-dark-blue));

    border: 5px solid #005a9c;
    border-radius: 50%;

    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;

    box-shadow: 0 10px 22px rgba(0, 90, 156, 0.18);

    transition:
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.tb-report-step-content {
    flex: 1;
    width: 100%;

    padding: 48px 18px 18px;

    background: #fff;

    border: 1px solid var(--ph-border);
    border-top: 4px solid var(--ph-blue);
    border-radius: 16px;

    box-shadow: 0 8px 20px rgba(0, 59, 111, .06);

    transition:
        border-color .25s ease,
        border-top-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.tb-report-step:hover .tb-report-step-content,
.tb-report-step.is-active .tb-report-step-content {
    transform: translateY(-3px);

    border-color: #cfe0ee;
    border-top-color: var(--ph-gold);

    box-shadow: 0 12px 26px rgba(0, 90, 156, .12);
}

.tb-report-step:hover .tb-report-step-number,
.tb-report-step.is-active .tb-report-step-number {
    background: linear-gradient(135deg, var(--ph-gold), #c39132);
    color: #1f2937;
    border: 5px solid rgb(202, 152, 61);
    box-shadow: 0 8px 20px rgba(217, 164, 65, .22);
}

.tb-report-step-content h3 {
    margin: 8px 0 10px;
    color: var(--ph-dark-blue);
    text-transform: capitalize;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
}

.tb-report-step-content p {
    margin: 0 0 14px;

    color: var(--ph-muted);

    font-size: .9rem;
    line-height: 1.4;
}

.tb-report-step-content p:last-child {
    margin-bottom: 0;
}

.tb-report-step-content ul {
    margin: 14px 0;
    padding-left: 1.15rem;
}

.tb-report-step-content li {
    margin-bottom: 10px;

    color: var(--ph-text);

    font-size: .86rem;
    line-height: 1.55;
}

.tb-report-step-content li:last-child {
    margin-bottom: 0;
}

.tb-report-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    margin: 8px 0 12px;
    padding: 11px 16px;

    background: var(--ph-blue);
    border: 1px solid var(--ph-blue);
    border-radius: 10px;

    color: #fff !important;

    font-size: .98rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;

    text-align: center;
    white-space: nowrap;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.tb-report-phone i {
    flex-shrink: 0;
}

.tb-report-phone span {
    display: inline-block;
}

.tb-report-phone:hover,
.tb-report-phone:focus {
    background: var(--ph-dark-blue);
    border-color: var(--ph-dark-blue);

    color: #fff !important;
    text-decoration: none !important;

    transform: translateY(-1px);
}

.tb-report-note {
    color: var(--ph-dark-blue) !important;
    font-weight: 700;
    text-align: center;
}

/* Slider controls created by initReferralSlider() */

.tb-report-slider-controls {
    display: none;
}

.tb-report-slider-btn,
.tb-report-slider-dots button {
    appearance: none;
    border: 0;
    cursor: pointer;
}

.tb-report-flow,
.tb-report-flow *,
.tb-report-flow *::before,
.tb-report-flow *::after {
    box-sizing: border-box;
}

.tb-report-callout {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin: .85rem 0 .25rem;
    padding: .7rem .85rem;

    background: rgba(0, 90, 156, .04);
    border-left: 3px solid var(--ph-teal);
    border-radius: 8px;

    color: var(--ph-muted);
    font-size: .84rem;
    line-height: 1.55;
}

.tb-report-callout i {
    margin-top: .15rem;
    color: var(--ph-teal);
    flex-shrink: 0;
}

.tb-report-callout a {
    color: var(--ph-dark-blue);
    font-weight: 700;
}

.tb-report-callout a:hover,
.tb-report-callout a:focus {
    color: var(--ph-blue);
}

.tb-report-step-content li a {
    color: #8a5a00;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(217, 164, 65, .55);
    text-underline-offset: 2px;

    transition:
        color .2s ease,
        text-decoration-color .2s ease;
}

.tb-report-step-content li a:hover,
.tb-report-step-content li a:focus {
    color: var(--ph-blue);
    text-decoration-color: var(--ph-blue);
}

@media (max-width: 980px) {
    .tb-report-flow {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 0;
    }

    .tb-report-flow::before {
        display: none;
    }

    .tb-report-step {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .tb-report-step-number {
        width: 52px;
        height: 52px;
        margin: 0 0 -26px;
        font-size: 1rem;
    }

    .tb-report-step-content {
        width: 100%;
        padding: 42px 22px 22px;
    }
}

@media (max-width: 560px) {
    .tb-report-step-number {
        width: 42px;
        height: 42px;
        margin: 0 0 -21px;
        font-size: .92rem;
    }

    .tb-report-step-content {
        padding-top: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .tb-report-step-number,
    .tb-report-step-content,
    .tb-report-phone,
    .tb-report-slider-btn,
    .tb-report-slider-dots button {
        transition: none;
    }

    .tb-report-step:hover .tb-report-step-content,
    .tb-report-step.is-active .tb-report-step-content,
    .tb-report-phone:hover,
    .tb-report-phone:focus,
    .tb-report-slider-btn:hover,
    .tb-report-slider-btn:focus {
        transform: none;
    }
}

/* =========================================================
   MULTILINGUAL + RTL SUPPORT
   Languages:
   es, hy, fa, ru, ar, zh, ko, vi, fil, tl, km
   Add at the absolute end of this stylesheet
========================================================= */

/* ---------- Shared translated-content safeguards ---------- */
#main-content {
    --ph-i18n-line-height: 1.6;
    --ph-i18n-heading-line-height: 1.28;

    max-width: 100%;
    min-width: 0;

    line-height: var(--ph-i18n-line-height);
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}

#main-content,
#main-content *,
#main-content *::before,
#main-content *::after {
    box-sizing: border-box;
}

#main-content :where(h1, h2, h3, h4, h5, h6,
    p, li, dt, dd,
    a, button, label,
    summary, figcaption,
    th, td, span, strong) {
    max-width: 100%;
    min-width: 0;

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

#main-content :where(h1, h2, h3, h4, h5, h6) {
    line-height: var(--ph-i18n-heading-line-height);
    text-wrap: balance;
}

#main-content :where(p, li, dd, figcaption) {
    text-wrap: pretty;
}

#main-content :where(img, svg, video, iframe, canvas) {
    max-width: 100%;
}

#main-content :where(.section,
    .section-highlight,
    .provider-alert,
    .provider-alert-content,
    .hero-action-bar,
    .hero-actions,
    .about-difference-layout,
    .stats-inline,
    .feature-grid,
    .service-grid,
    .location-grid,
    .contact-grid,
    .referral-section,
    .refer-steps,
    .refer-info-grid,
    .tb-contact-grid,
    .tb-report-flow,
    .tb-report-step,
    .tb-report-step-content) {
    min-width: 0;
    max-width: 100%;
}

/* Allow translated labels and buttons to grow naturally */
#main-content :where(.btn,
    .hero-btn,
    .provider-alert-phone,
    .provider-alert-link,
    .location-phone,
    .tb-contact-phone,
    .patient-resource-link,
    .tb-report-phone) {
    height: auto;
    min-height: 2.5rem;
    max-width: 100%;

    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

/* Prevent nowrap utilities from causing horizontal overflow */
html:lang(es) #main-content .no-wrap,
html:lang(hy) #main-content .no-wrap,
html:lang(ru) #main-content .no-wrap,
html:lang(ar) #main-content .no-wrap,
html:lang(fa) #main-content .no-wrap,
html:lang(zh) #main-content .no-wrap,
html:lang(ko) #main-content .no-wrap,
html:lang(vi) #main-content .no-wrap,
html:lang(fil) #main-content .no-wrap,
html:lang(tl) #main-content .no-wrap,
html:lang(km) #main-content .no-wrap {
    white-space: normal;
}

/* ---------- Language-specific typography ---------- */
html:lang(es) #main-content {
    --ph-i18n-line-height: 1.65;
    --ph-i18n-heading-line-height: 1.3;
}

html:lang(hy) #main-content {
    --ph-i18n-line-height: 1.72;
    --ph-i18n-heading-line-height: 1.38;
    font-family: Arial, "Noto Sans Armenian", sans-serif;
}

html:lang(ru) #main-content {
    --ph-i18n-line-height: 1.65;
    --ph-i18n-heading-line-height: 1.32;
}

html:lang(vi) #main-content {
    --ph-i18n-line-height: 1.75;
    --ph-i18n-heading-line-height: 1.42;
    font-family: Arial, "Noto Sans", sans-serif;
}

html:lang(fil) #main-content,
html:lang(tl) #main-content {
    --ph-i18n-line-height: 1.65;
    --ph-i18n-heading-line-height: 1.32;
}

html:lang(zh) #main-content,
html:lang(zh-CN) #main-content,
html:lang(zh-SG) #main-content,
html:lang(zh-Hans) #main-content,
html:lang(zh-TW) #main-content,
html:lang(zh-HK) #main-content,
html:lang(zh-Hant) #main-content {
    --ph-i18n-line-height: 1.75;
    --ph-i18n-heading-line-height: 1.42;

    font-family:
        Arial,
        "Noto Sans CJK SC",
        "Noto Sans CJK TC",
        "Microsoft YaHei",
        "PingFang SC",
        "PingFang TC",
        sans-serif;
}

html:lang(zh) #main-content :where(h1, h2, h3, h4, h5, h6,
    p, li, a, button, th, td),
html:lang(zh-CN) #main-content :where(h1, h2, h3, h4, h5, h6,
    p, li, a, button, th, td),
html:lang(zh-TW) #main-content :where(h1, h2, h3, h4, h5, h6,
    p, li, a, button, th, td) {
    overflow-wrap: normal;
    word-break: normal;
    line-break: strict;
}

html:lang(ko) #main-content {
    --ph-i18n-line-height: 1.75;
    --ph-i18n-heading-line-height: 1.42;

    font-family:
        Arial,
        "Noto Sans KR",
        "Malgun Gothic",
        sans-serif;
}

html:lang(ko) #main-content :where(h1, h2, h3, h4, h5, h6,
    p, li, a, button, th, td) {
    overflow-wrap: normal;
    word-break: keep-all;
}

html:lang(km) #main-content {
    --ph-i18n-line-height: 1.9;
    --ph-i18n-heading-line-height: 1.55;

    font-family:
        Arial,
        "Noto Sans Khmer",
        "Khmer UI",
        sans-serif;
}

/* =========================================================
   ARABIC + FARSI RTL
========================================================= */

html:lang(ar),
html:lang(fa),
html[dir="rtl"] {
    max-width: 100%;
    overflow-x: clip;
}

@supports not (overflow: clip) {

    html:lang(ar),
    html:lang(fa),
    html[dir="rtl"] {
        overflow-x: hidden;
    }
}

html:lang(ar) body,
html:lang(fa) body,
html[dir="rtl"] body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

html:lang(ar) #main-content,
html:lang(fa) #main-content,
html[dir="rtl"] #main-content {
    --ph-i18n-line-height: 1.85;
    --ph-i18n-heading-line-height: 1.5;

    direction: rtl;
    text-align: start;

    font-family:
        Arial,
        "Noto Sans Arabic",
        Tahoma,
        sans-serif;
}

/* Keep icons and phone numbers readable */
html:lang(ar) #main-content :where(.fa, .fas, .far, .fab,
    .fa-solid, .fa-regular, .fa-brands,
    [dir="ltr"],
    .location-phone,
    .tb-contact-phone,
    .tb-report-phone,
    .provider-alert-phone),
html:lang(fa) #main-content :where(.fa, .fas, .far, .fab,
    .fa-solid, .fa-regular, .fa-brands,
    [dir="ltr"],
    .location-phone,
    .tb-contact-phone,
    .tb-report-phone,
    .provider-alert-phone),
html[dir="rtl"] #main-content :where(.fa, .fas, .far, .fab,
    .fa-solid, .fa-regular, .fa-brands,
    [dir="ltr"],
    .location-phone,
    .tb-contact-phone,
    .tb-report-phone,
    .provider-alert-phone) {
    unicode-bidi: isolate;
}

/* ---------- Hero caption ---------- */
html:lang(ar) .provider-carousel .carousel-caption.provider-caption,
html:lang(fa) .provider-carousel .carousel-caption.provider-caption,
html[dir="rtl"] .provider-carousel .carousel-caption.provider-caption {
    direction: rtl;
    text-align: right;

    /*
       Keep the centering mechanism physical/LTR.
       Changing left/right here can push the caption offscreen.
    */
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

html:lang(ar) .provider-caption h1,
html:lang(ar) .provider-caption p,
html:lang(fa) .provider-caption h1,
html:lang(fa) .provider-caption p,
html[dir="rtl"] .provider-caption h1,
html[dir="rtl"] .provider-caption p {
    margin-inline-start: 0;
    margin-inline-end: 0;
    text-align: right;
}

/* Keep carousel movement predictable */
.provider-carousel,
.provider-carousel .carousel-inner,
.provider-carousel .carousel-item {
    direction: ltr;
}

html:lang(ar) .provider-carousel .carousel-caption,
html:lang(fa) .provider-carousel .carousel-caption,
html[dir="rtl"] .provider-carousel .carousel-caption {
    direction: rtl;
}

/* ---------- Hero action bar ---------- */
html:lang(ar) .hero-action-bar .hero-actions,
html:lang(fa) .hero-action-bar .hero-actions,
html[dir="rtl"] .hero-action-bar .hero-actions {
    direction: rtl;
}

html:lang(ar) .hero-btn,
html:lang(fa) .hero-btn,
html[dir="rtl"] .hero-btn {
    direction: rtl;
}

/* Move contact-button accent to the logical start edge */
html:lang(ar) .hero-btn-contact-us,
html:lang(fa) .hero-btn-contact-us,
html[dir="rtl"] .hero-btn-contact-us {
    border-left: 1px solid #d6dde4;
    border-right: 4px solid #435463;
}

html:lang(ar) .hero-btn-contact-us:hover,
html:lang(ar) .hero-btn-contact-us:focus,
html:lang(fa) .hero-btn-contact-us:hover,
html:lang(fa) .hero-btn-contact-us:focus,
html[dir="rtl"] .hero-btn-contact-us:hover,
html[dir="rtl"] .hero-btn-contact-us:focus {
    border-left-color: #c4d0da;
    border-right-color: var(--ph-blue);
}

/* ---------- Section headings ---------- */
html:lang(ar) .section h2::after,
html:lang(fa) .section h2::after,
html[dir="rtl"] .section h2::after {
    right: 0;
    left: auto;
}

/* ---------- Inline links ---------- */
html:lang(ar) .inline-link::after,
html:lang(fa) .inline-link::after,
html[dir="rtl"] .inline-link::after {
    right: 0;
    left: auto;
    transform-origin: right center;
}

/* ---------- Embedded difference ---------- */
html:lang(ar) .embedded-difference,
html:lang(fa) .embedded-difference,
html[dir="rtl"] .embedded-difference {
    padding:
        4px 24px 0 0;
}

html:lang(ar) .embedded-difference::before,
html:lang(fa) .embedded-difference::before,
html[dir="rtl"] .embedded-difference::before {
    right: 0;
    left: auto;
}

html:lang(ar) .embedded-difference h3,
html:lang(fa) .embedded-difference h3,
html[dir="rtl"] .embedded-difference h3 {
    align-items: flex-start;
    text-align: right;
}

/* ---------- Lists and bullets ---------- */
html:lang(ar) #main-content :where(ul, ol),
html:lang(fa) #main-content :where(ul, ol),
html[dir="rtl"] #main-content :where(ul, ol) {
    padding-inline-start: 1.5rem;
    padding-inline-end: 0;
}

html:lang(ar) .service-points li,
html:lang(fa) .service-points li,
html[dir="rtl"] .service-points li {
    padding-right: 20px;
    padding-left: 0;
}

html:lang(ar) .service-points li::before,
html:lang(fa) .service-points li::before,
html[dir="rtl"] .service-points li::before {
    right: 0;
    left: auto;
}

html:lang(ar) .refer-resource-list li,
html:lang(fa) .refer-resource-list li,
html[dir="rtl"] .refer-resource-list li {
    padding-right: 18px;
    padding-left: 0;
}

html:lang(ar) .refer-resource-list li::before,
html:lang(fa) .refer-resource-list li::before,
html[dir="rtl"] .refer-resource-list li::before {
    right: 0;
    left: auto;
}

/* ---------- Referral steps ---------- */
html:lang(ar) .steps div,
html:lang(fa) .steps div,
html[dir="rtl"] .steps div {
    border-left: 0;
    border-right: 5px solid var(--ph-teal);
}

html:lang(ar) .step-number,
html:lang(fa) .step-number,
html[dir="rtl"] .step-number {
    right: auto;
    left: 18px;
}

/* ---------- Accordion ---------- */
html:lang(ar) .js-accordion summary,
html:lang(ar) .refer-faq-card summary,
html:lang(fa) .js-accordion summary,
html:lang(fa) .refer-faq-card summary,
html[dir="rtl"] .js-accordion summary,
html[dir="rtl"] .refer-faq-card summary {
    padding:
        12px 0 12px 38px;
}

html:lang(ar) .js-accordion summary::after,
html:lang(ar) .refer-faq-card summary::after,
html:lang(fa) .js-accordion summary::after,
html:lang(fa) .refer-faq-card summary::after,
html[dir="rtl"] .js-accordion summary::after,
html[dir="rtl"] .refer-faq-card summary::after {
    right: auto;
    left: 0;
}

html:lang(ar) .faq-answer p,
html:lang(ar) .js-accordion-content p,
html:lang(fa) .faq-answer p,
html:lang(fa) .js-accordion-content p,
html[dir="rtl"] .faq-answer p,
html[dir="rtl"] .js-accordion-content p {
    padding:
        0 0 14px 38px;
}

/* ---------- Location cards ---------- */
html:lang(ar) .location-card,
html:lang(fa) .location-card,
html[dir="rtl"] .location-card {
    direction: rtl;
}

html:lang(ar) .location-address,
html:lang(fa) .location-address,
html[dir="rtl"] .location-address {
    direction: rtl;
    text-align: right;
}

/* ---------- Support / contact callouts ---------- */
html:lang(ar) .telehealth-callout,
html:lang(ar) .refer-support-note,
html:lang(fa) .telehealth-callout,
html:lang(fa) .refer-support-note,
html[dir="rtl"] .telehealth-callout,
html[dir="rtl"] .refer-support-note {
    direction: rtl;
}

/* ---------- TB report flow ---------- */
html:lang(ar) .tb-report-flow,
html:lang(fa) .tb-report-flow,
html[dir="rtl"] .tb-report-flow {
    direction: rtl;
}

html:lang(ar) .tb-report-step-content,
html:lang(fa) .tb-report-step-content,
html[dir="rtl"] .tb-report-step-content {
    direction: rtl;
    text-align: right;
}

/* ---------- Prevent RTL horizontal overflow ---------- */
html:lang(ar) #main-content :where(.section,
    .section-highlight,
    .provider-carousel,
    .provider-alert,
    .hero-action-bar,
    .hero-actions,
    .about-difference-layout,
    .feature-grid,
    .service-grid,
    .location-grid,
    .contact-grid,
    .referral-section,
    .refer-steps,
    .refer-support-panel,
    .refer-info-grid,
    .tb-contact-grid,
    .tb-report-flow),
html:lang(fa) #main-content :where(.section,
    .section-highlight,
    .provider-carousel,
    .provider-alert,
    .hero-action-bar,
    .hero-actions,
    .about-difference-layout,
    .feature-grid,
    .service-grid,
    .location-grid,
    .contact-grid,
    .referral-section,
    .refer-steps,
    .refer-support-panel,
    .refer-info-grid,
    .tb-contact-grid,
    .tb-report-flow),
html[dir="rtl"] #main-content :where(.section,
    .section-highlight,
    .provider-carousel,
    .provider-alert,
    .hero-action-bar,
    .hero-actions,
    .about-difference-layout,
    .feature-grid,
    .service-grid,
    .location-grid,
    .contact-grid,
    .referral-section,
    .refer-steps,
    .refer-support-panel,
    .refer-info-grid,
    .tb-contact-grid,
    .tb-report-flow) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/*
   Replace physical negative margins with logical full-bleed
   behavior so RTL does not widen the page.
*/
html:lang(ar) .section-highlight,
html:lang(fa) .section-highlight,
html[dir="rtl"] .section-highlight {
    margin-inline: -1rem;
    margin-left: -1rem;
    margin-right: -1rem;
}

/* ---------- Responsive translated-layout safeguards ---------- */
@media (max-width: 1050px) {

    html:lang(es) .hero-action-bar .hero-actions,
    html:lang(hy) .hero-action-bar .hero-actions,
    html:lang(ru) .hero-action-bar .hero-actions,
    html:lang(ar) .hero-action-bar .hero-actions,
    html:lang(fa) .hero-action-bar .hero-actions,
    html:lang(vi) .hero-action-bar .hero-actions,
    html:lang(fil) .hero-action-bar .hero-actions,
    html:lang(tl) .hero-action-bar .hero-actions,
    html:lang(km) .hero-action-bar .hero-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {

    #main-content :where(.about-difference-layout,
        .referral-section,
        .refer-info-grid,
        .tb-report-flow) {
        grid-template-columns: 1fr;
    }

    html:lang(ar) .location-card,
    html:lang(fa) .location-card,
    html[dir="rtl"] .location-card {
        /*
           Keep physical grid columns predictable.
           Text inside remains RTL.
        */
        direction: ltr;
    }

    html:lang(ar) .location-card>*,
    html:lang(fa) .location-card>*,
    html[dir="rtl"] .location-card>* {
        direction: rtl;
    }
}

@media (max-width: 560px) {

    html:lang(es) .hero-action-bar .hero-actions,
    html:lang(hy) .hero-action-bar .hero-actions,
    html:lang(ru) .hero-action-bar .hero-actions,
    html:lang(ar) .hero-action-bar .hero-actions,
    html:lang(fa) .hero-action-bar .hero-actions,
    html:lang(vi) .hero-action-bar .hero-actions,
    html:lang(fil) .hero-action-bar .hero-actions,
    html:lang(tl) .hero-action-bar .hero-actions,
    html:lang(km) .hero-action-bar .hero-actions {
        grid-template-columns: 1fr;
    }

    #main-content :where(.hero-btn,
        .btn,
        .provider-alert-item,
        .provider-alert-phone,
        .provider-alert-link,
        .location-phone,
        .tb-contact-phone,
        .tb-report-phone) {
        width: 100%;
        max-width: 100%;
    }

    html:lang(ar) .js-accordion summary,
    html:lang(ar) .refer-faq-card summary,
    html:lang(fa) .js-accordion summary,
    html:lang(fa) .refer-faq-card summary,
    html[dir="rtl"] .js-accordion summary,
    html[dir="rtl"] .refer-faq-card summary {
        padding-left: 36px;
        padding-right: 0;
    }

    html:lang(ar) .faq-answer p,
    html:lang(ar) .js-accordion-content p,
    html:lang(fa) .faq-answer p,
    html:lang(fa) .js-accordion-content p,
    html[dir="rtl"] .faq-answer p,
    html[dir="rtl"] .js-accordion-content p {
        padding-left: 0;
        padding-right: 0;
    }
}

.hero-action-bar .hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 14px 24px;
}

.hero-action-bar .hero-actions .hero-btn {
    flex: 0 1 160px;
    width: auto;
    min-width: 0;
    box-sizing: border-box;
}