/* =========================================================
   Patient Welcome Section
   ========================================================= */
.patient-kicker {
    display: inline-block;
    margin-bottom: 10px;
    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: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.patient-welcome-intro p {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Important Things Banner */

.patient-important-banner {
    margin: 32px 0 24px;
    padding: 28px 32px;
    background:
        linear-gradient(135deg,
            var(--ph-dark-blue) 0%,
            var(--ph-blue) 100%);
    border-radius: 18px;
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 59, 111, .18);
}

.patient-important-banner-top {
    display: flex;
    align-items: center;
    gap: 22px;
}

.patient-important-banner-top i {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    color: #fff;
    font-size: 1.6rem;
}

.patient-important-label {
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 8px;

    background: var(--ph-dark-blue);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;

    color: #ffffff;

    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.patient-important-banner h3 {
    margin: 0 0 8px;
    color: #ffffff;

    font-size: clamp(1.35rem, 2.3vw, 1.75rem);
    font-weight: 800;
    line-height: 1.25;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.patient-important-banner p {
    margin: 0;
    color: rgba(255, 255, 255, .92);
    line-height: 1.6;
}

/* Important Things Cards */

.patient-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.patient-info-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ph-border);
    border-top: 4px solid var(--ph-blue);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(0, 59, 111, .05);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.patient-info-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 90, 156, .04), transparent 45%);
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}

.patient-info-card:hover,
.patient-info-card:focus-within {
    border-color: #c9d9e8;
    border-top-color: var(--ph-gold);
    box-shadow: 0 12px 24px rgba(0, 59, 111, .1);
}

.patient-info-card:hover::before,
.patient-info-card:focus-within::before {
    opacity: 1;
}

.patient-info-icon {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 14px;
    background: rgba(0, 90, 156, .08);
    color: var(--ph-blue);
    font-size: 1.15rem;
}

.patient-info-card h4 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    color: var(--ph-dark-blue);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.patient-info-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--ph-muted);
    font-size: .92rem;
    line-height: 1.55;
}

/* Responsive */

@media (max-width: 1000px) {
    .patient-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .patient-important-banner {
        padding: 24px;
    }

    .patient-important-banner-top {
        align-items: flex-start;
    }

    .patient-important-banner-top i {
        width: 54px;
        height: 54px;
        font-size: 1.35rem;
    }
}

@media (max-width: 560px) {

    .patient-important-banner {
        padding: 22px;
        border-radius: 14px;
    }

    .patient-important-banner-top {
        flex-direction: column;
        gap: 14px;
    }

    .patient-info-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .patient-info-card {
        padding: 18px;
    }
}

/* =========================================================
   Patient First Visit Section
   ========================================================= */

.patient-first-visit-card,
.patient-first-visit-card * {
    box-sizing: border-box;
}

.first-visit-layout {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(0, 2fr);
    gap: 28px;
    margin-top: 28px;
    min-width: 0;
}

/* What to Bring */

.what-to-bring-card {
    min-width: 0;
    height: fit-content;
    background: linear-gradient(180deg, #fff9ee 0%, #fff4da 100%);
    border: 1px solid #f0d59a;
    border-left: 5px solid var(--ph-gold);
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 6px 18px rgba(0, 59, 111, .06);
}

.what-to-bring-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 14px;
    background: rgba(217, 164, 65, .15);
    color: #8a5a00;
    font-size: 1.4rem;
}

.what-to-bring-card h3 {
    margin: 0 0 12px;
    color: #5f4300;
    font-size: 1.25rem;
    font-weight: 800;
}

.what-to-bring-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.what-to-bring-card li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .65);
    border: 1px solid rgba(217, 164, 65, .25);
    border-radius: 12px;
    color: var(--ph-dark-blue);
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.4;
}

.what-to-bring-card li:last-child {
    margin-bottom: 0;
}

.what-to-bring-card li::before {
    content: "\f15c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--ph-gold);
    font-size: 1rem;
    flex-shrink: 0;
}

/* What to Expect */

.what-to-expect-panel {
    min-width: 0;
    border: 1px solid #cfe0ee;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.what-to-expect-header {
    padding: 22px 26px;
    background: linear-gradient(135deg, var(--ph-dark-blue), var(--ph-blue));
    border-bottom: 4px solid var(--ph-gold);
}

.what-to-expect-header h3 {
    margin-top: 0;
    margin-bottom: 6px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    text-align: center;
}

.what-to-expect-header p {
    margin: 0;
    color: rgba(255, 255, 255, .9);
}

/* Visit Steps */

.visit-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: #fff;
    overflow: hidden;
}

.visit-step {
    min-width: 0;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 22px;
    background: #fff;
    border-right: 1px solid #d9e6f2;
    border-bottom: 1px solid #d9e6f2;
    overflow: hidden;

    transition:
        background-color .2s ease,
        box-shadow .2s ease;
}

.visit-step:nth-child(even) {
    border-right: none;
}

.visit-step:nth-last-child(-n + 2) {
    border-bottom: none;
}

.visit-step:hover,
.visit-step:focus-within {
    background: #f8fbfe;
    box-shadow: inset 0 4px 0 var(--ph-gold);
}

.visit-step-icon {
    width: clamp(54px, 6vw, 86px);
    height: clamp(54px, 6vw, 86px);

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #005a9c,
        #0077c8
    );

    color: #fff;

    box-shadow:
        0 8px 20px rgba(0, 90, 156, .18);
}

.visit-step-icon i {
    font-size: clamp(1.55rem, 3vw, 2.36rem);
    line-height: 1;
}

.visit-step-icon img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.visit-step-content {
    min-width: 0;
    overflow-wrap: break-word;
    margin-left: 6px;
}

.visit-step h4 {
    margin: 0 0 6px;
    color: var(--ph-dark-blue);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.visit-step p {
    margin: 0;
    color: var(--ph-muted);
    font-size: .9rem;
    line-height: 1.5;
}

/* ==========================================
   Large Tablet / Small Laptop
   769px - 1050px
   ========================================== */

@media (min-width: 769px) and (max-width: 1050px) {

    .visit-step {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 14px;
        padding: 18px;
    }

    .visit-step-icon {
        width: 62px;
        height: 62px;
    }

    .visit-step-icon i {
        font-size: 1.85rem;
    }

    .visit-step-content {
        margin-left: 0;
    }

    .visit-step h4 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .visit-step p {
        font-size: .9rem;
        line-height: 1.45;
    }
}

/* ==========================================
   Mobile
   ========================================== */

@media (max-width: 768px) {

    .visit-steps {
        display: block;
        padding: 8px 0;
    }

    .visit-step {
        position: relative;
        display: grid;
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 14px;
        padding: 16px 18px;

        border-right: none;
        border-bottom: 1px solid #d9e6f2;
    }

    .visit-step:nth-child(even) {
        border-right: none;
    }

    .visit-step:nth-last-child(-n + 2) {
        border-bottom: 1px solid #d9e6f2;
    }

    .visit-step:last-child {
        border-bottom: none;
    }

    .visit-step-icon {
        width: 54px;
        height: 54px;
        border-radius: 14px;
    }

    .visit-step-icon i {
        font-size: 1.65rem;
    }

    .visit-step-content {
        margin-left: 0;
    }

    .visit-step h4 {
        font-size: .95rem;
    }

    .visit-step p {
        font-size: .86rem;
        line-height: 1.45;
    }
}

/* ==========================================
   Small Mobile
   ========================================== */

@media (max-width: 480px) {

    .visit-step {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 12px;
        padding: 15px;
    }

    .visit-step-icon {
        width: 50px;
        height: 50px;
    }

    .visit-step-icon i {
        font-size: 1.5rem;
    }

    .visit-step h4 {
        font-size: .92rem;
    }

    .visit-step p {
        font-size: .84rem;
        line-height: 1.42;
    }
}

/* =========================================================
   Responsive: Tablet and Mobile
   ========================================================= */

@media (max-width: 975px) {
    .first-visit-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .what-to-bring-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0 18px;
        align-items: start;
    }

    .what-to-bring-icon {
        grid-row: 1 / span 2;
        margin-bottom: 0;
    }

    .what-to-bring-card h3 {
        margin-top: 0;
    }

    .what-to-bring-card ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .what-to-bring-card li {
        margin-bottom: 0;
    }

    .visit-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .visit-step:nth-last-child(-n + 2) {
        border-bottom: 1px solid #d9e6f2;
    }

    .visit-step:last-child {
        border-bottom: none;
    }

    .visit-step {
        grid-template-columns: 76px minmax(0, 1fr);
        padding: 20px;
    }

    .visit-step-icon {
        width: 68px;
        height: 68px;
        max-width: 68px;
        max-height: 68px;
    }
}

@media (max-width: 768px) {
    .first-visit-layout {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    /* Compact mobile checklist */
    .what-to-bring-card {
        display: block;
        order: 1;
        padding: 16px;
        border-left: none;
        border-top: 5px solid var(--ph-gold);
    }

    .what-to-bring-icon {
        display: none;
    }

    .what-to-bring-card h3 {
        margin: 0 0 10px;
        font-size: 1.05rem;
    }

    .what-to-bring-card ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .what-to-bring-card li {
        margin: 0;
        padding: 8px 10px;
        border-radius: 999px;
        font-size: .82rem;
        line-height: 1.2;
    }

    .what-to-bring-card li::before {
        font-size: .8rem;
    }

    /* Mobile timeline */
    .what-to-expect-panel {
        order: 2;
        border-radius: 14px;
    }

    .what-to-expect-header {
        padding: 18px;
    }

    .visit-steps {
        display: block;
        padding: 8px 0;
    }

    .visit-step {
        position: relative;
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 14px;
        padding: 16px 18px;
        border-right: none;
        border-bottom: 1px solid #d9e6f2;
    }

    .visit-step:last-child {
        border-bottom: none;
    }

    .visit-step-icon {
        width: 48px;
        height: 48px;
        max-width: 48px;
        max-height: 48px;
        padding: 6px;
        border-radius: 12px;
    }

    .visit-step h4 {
        font-size: .95rem;
    }

    .visit-step p {
        font-size: .86rem;
        line-height: 1.45;
    }
}

@media (max-width: 480px) {
    .patient-first-visit-card {
        padding: 0;
    }

    .what-to-bring-card,
    .what-to-expect-panel {
        border-radius: 14px;
    }

    .what-to-bring-card li {
        font-size: .8rem;
    }

    .visit-step {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 15px;
    }

    .visit-step-icon {
        width: 42px;
        height: 42px;
    }
}

/* =========================================================
   Patient Education & TB Information
   ========================================================= */
.resource-section,
.resource-grid,
.resource-card,
.resource-dropdown {
    overflow: visible !important;
}

.resource-card:has(.resource-dropdown[open]) {
    z-index: 9999;
    overflow: visible !important;
}

.resource-dropdown[open] {
    overflow: visible !important;
}

.resource-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 22px;
    margin-top: 28px;
    align-items: stretch;
    overflow: visible;
}

.resource-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;

    background: #fff;
    border: 1px solid var(--ph-border);
    border-top: 4px solid var(--ph-blue);
    border-radius: 16px;
    padding: 22px;

    box-shadow: 0 4px 14px rgba(0, 59, 111, .05);
    transition: box-shadow .2s ease, border-top-color .2s ease;
}

.resource-card:hover {
    border-top-color: var(--ph-gold);
    box-shadow: 0 12px 24px rgba(0, 59, 111, .10);
}

.resource-card:has(.resource-dropdown[open]) {
    z-index: 1000;
}

.resource-card-top {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 14px;
    min-width: 0;
}

.resource-image {
    width: 68px;
    height: 68px;
    object-fit: contain;
    background: #f8fbfe;
    border: 1px solid #d9e6f2;
    border-radius: 14px;
    padding: 10px;
}

.resource-card h3 {
    margin: 0 14px;
    color: var(--ph-dark-blue);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.resource-description {
    margin: 0 0 18px;
    color: var(--ph-muted);
    font-size: .92rem;
    line-height: 1.6;
}

/* Video Resource Link */

.resource-video-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 14px 16px;
    background: linear-gradient(180deg, #f8fbfe 0%, #eef6fc 100%);
    border: 1px solid #d9e6f2;
    border-radius: 14px;
    color: var(--ph-dark-blue);
    font-size: .92rem;
    font-weight: 800;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.resource-video-link i {
    color: var(--ph-blue);
    font-size: 1.2rem;
}

.resource-video-link:hover,
.resource-video-link:focus-visible {
    background: rgba(198, 146, 20, .08);
    color: var(--ph-dark-blue);
    text-decoration: none;
    border-color: var(--ph-gold);
}

.resource-video-link:hover i,
.resource-video-link:focus-visible i {
    color: var(--ph-gold);
}

.resource-video-link:focus-visible {
    outline: 3px solid var(--ph-blue);
    outline-offset: 3px;
}

/* =========================================================
   Floating Resource Dropdown
   ========================================================= */

.resource-dropdown {
    position: relative;
    margin-top: auto;
    border: 1px solid #d9e6f2;
    border-radius: 14px;
    background: #fff;
    overflow: visible;
}

.resource-dropdown summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    list-style: none;
    padding: 14px 16px;
    background: linear-gradient(180deg, #f8fbfe 0%, #eef6fc 100%);
    border-radius: 14px;
    color: var(--ph-dark-blue);
    font-size: .92rem;
    font-weight: 800;
}

.resource-dropdown summary::-webkit-details-marker {
    display: none;
}

.resource-dropdown summary::before {
    content: "\f15c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;

    background: #fff;
    border: 1px solid #d9e6f2;
    border-radius: 10px;

    color: var(--ph-blue);
    font-size: .95rem;
}

.resource-dropdown summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--ph-blue);
    font-size: .8rem;
    transition: transform .2s ease;
}

.resource-dropdown[open] summary::after {
    transform: rotate(180deg);
}

/* Hidden by default so it does not affect layout */
.resource-dropdown-content {
    display: none;
}

/* Show only when open, floated out of layout */
.resource-dropdown[open] .resource-dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;

    display: grid;
    gap: 0;

    width: 100%;
    min-width: 280px;
    max-width: min(420px, 90vw);

    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;

    padding: 8px;

    background: #fff;
    border: 1px solid #d9e6f2;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 59, 111, .22);

    z-index: 99999;
}

/* For cards on the right side, open inward */
.resource-card:nth-child(2n) .resource-dropdown[open] .resource-dropdown-content {
    left: auto;
    right: 0;
}

.resource-dropdown-content a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    color: var(--ph-dark-blue);
    background: #fff;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
    transition: background-color .2s ease, color .2s ease;
}

.resource-dropdown-content a::before {
    content: "\f15b";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--ph-dark-blue);
    font-size: .82rem;
}

.resource-dropdown-content a::after {
    content: "\f019";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--ph-blue);
    font-size: .82rem;
}

.resource-dropdown-content a:hover,
.resource-dropdown-content a:focus {
    background: rgba(198, 146, 20, .08);
    color: var(--ph-gold);
    text-decoration: none;
}

.resource-dropdown-content a:hover::after,
.resource-dropdown-content a:focus::after,
.resource-dropdown-content a:hover::before,
.resource-dropdown-content a:focus::before {
    color: var(--ph-gold);
}

/* =========================================================
   Resource Footer (Footnote Style)
   ========================================================= */

.resource-footer {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-top: 24px;
    padding: 14px 16px;

    background: rgba(0, 90, 156, .04);
    border: 1px solid rgba(0, 90, 156, .08);
    border-radius: 10px;
}

.resource-footer i {
    margin-top: 2px;
    flex-shrink: 0;

    color: var(--ph-blue);
    font-size: .9rem;
    opacity: .75;
}

.resource-footer p {
    margin: 0;

    color: var(--ph-muted);
    font-size: .875rem;
    line-height: 1.6;
}

.resource-footer a {
    color: var(--ph-blue);
    font-weight: 600;
    text-decoration: none;

    transition: color .2s ease;
}

@media (max-width: 768px) {
    .resource-footer {
        padding: 12px 14px;
        gap: 8px;
    }

    .resource-footer p {
        font-size: .85rem;
    }
}


.resource-dropdown-content a {
    position: relative;
    overflow: visible;
}

.resource-language-name {
    min-width: 0;
}

.resource-dropdown-content a {
    position: relative;
}

.resource-tooltip {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);

    transform: translateX(-50%) translateY(-4px);

    padding: 7px 10px;
    background: var(--ph-dark-blue);
    color: #fff;
    border-radius: 8px;

    font-size: .72rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    box-shadow: 0 8px 18px rgba(0, 59, 111, .18);
    z-index: 9999;

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}

.resource-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);

    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--ph-dark-blue);
}

.resource-dropdown-content a:hover .resource-tooltip,
.resource-dropdown-content a:focus .resource-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* JS-applied: tooltip below */
.resource-tooltip.tooltip-below {
    top: calc(100% + 8px);
    bottom: auto;
    transform: translateX(-50%) translateY(-4px);
}

.resource-tooltip.tooltip-below::after {
    top: auto;
    bottom: 100%;

    border-top: none;
    border-bottom: 6px solid var(--ph-dark-blue);
}

/* JS-applied: tooltip above */
.resource-tooltip.tooltip-above {
    top: auto;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
}

.resource-tooltip.tooltip-above::after {
    top: 100%;
    bottom: auto;

    border-bottom: none;
    border-top: 6px solid var(--ph-dark-blue);
}

.resource-dropdown-content a:hover .resource-tooltip.tooltip-above,
.resource-dropdown-content a:focus .resource-tooltip.tooltip-above,
.resource-dropdown-content a:hover .resource-tooltip.tooltip-below,
.resource-dropdown-content a:focus .resource-tooltip.tooltip-below {
    transform: translateX(-50%) translateY(0);
}

.resource-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.resource-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: rgba(0, 90, 156, .08);
    border: 1px solid rgba(0, 90, 156, .12);
    border-radius: 12px;

    transition: all .25s ease;
}

.resource-icon i {
    color: var(--ph-blue);
    font-size: 1.35rem;

    transition: color .25s ease;
}

/* Hover */
.resource-card:hover .resource-icon {
    background: rgba(217, 164, 65, .12);
    border-color: rgba(217, 164, 65, .35);
}

.resource-card:hover .resource-icon i {
    color: var(--ph-gold);
}


.services-panel {
    background: #fff;
    border: 1px solid var(--ph-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 59, 111, .05);
}

.services-panel-header {
    padding: 24px 28px;
    background: linear-gradient(135deg,
            var(--ph-dark-blue),
            var(--ph-blue));
    border-bottom: 4px solid var(--ph-gold);
}

.services-panel-header h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.4rem;
}

.services-panel-header p {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.services-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-item {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 20px 24px;

    border-right: 1px solid #d9e6f2;
    border-bottom: 1px solid #d9e6f2;

    transition: background .2s ease;
}

.service-item:nth-child(even) {
    border-right: none;
}

.service-item i {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    background: rgba(0, 90, 156, .08);
    border-radius: 12px;

    color: var(--ph-blue);
    font-size: 1.1rem;
}

.service-item span {
    font-weight: 700;
    color: var(--ph-dark-blue);
    line-height: 1.4;
}

.service-item:hover {
    background: #f8fbfe;
}

.service-item:hover i {
    color: var(--ph-gold);
}

.services-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
}

.services-heading-icon {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 16px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);

    color: var(--ph-gold);
    font-size: 1.5rem;
}

.services-panel-header h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
}

.services-panel-header p {
    margin: 0;
    color: rgba(255, 255, 255, 1);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

@media (max-width: 768px) {
    .services-list {
        grid-template-columns: 1fr;
    }

    .service-item {
        border-right: none;
    }
}

#tb-information,
#tb-information .resource-grid,
#tb-information .resource-card,
#tb-information .resource-dropdown {
    overflow: visible !important;
}

#tb-information .resource-card:has(.resource-dropdown[open]) {
    position: relative;
    z-index: 9999;
}

#tb-information .resource-dropdown-content {
    display: none;
}

#tb-information .resource-dropdown[open] .resource-dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;

    display: grid;
    width: 100%;
    min-width: 280px;
    max-width: 420px;
    max-height: 260px;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 8px;
    background: #fff;
    border: 1px solid #d9e6f2;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 59, 111, .22);
    z-index: 99999;
}

#tb-information .resource-card:nth-child(2n) .resource-dropdown[open] .resource-dropdown-content {
    left: auto;
    right: 0;
}

/* Open bottom-row dropdowns upward so they do not create page scroll */
#tb-information .resource-card:nth-last-child(-n + 2) .resource-dropdown[open] .resource-dropdown-content {
    top: auto;
    bottom: calc(100% + 8px);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {
    .resource-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .resource-card {
        padding: 20px;
    }

    .resource-card-top {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 14px;
    }

    .resource-image {
        width: 58px;
        height: 58px;
        padding: 8px;
    }

    .resource-card h3 {
        font-size: 1.02rem;
    }

    .resource-description {
        font-size: .88rem;
    }

    .resource-footer {
        padding: 18px;
    }

    /* HERO / HEADER */

    .provider-carousel .carousel-caption.provider-caption {
        width: 100% !important;
        max-width: 100% !important;

        padding-left: 22px !important;
        padding-right: 22px !important;
        padding-top: 12px !important;
        padding-bottom: 18px !important;

        box-sizing: border-box;
    }

    .provider-caption h1 {
        max-width: 100%;
        margin: 0 0 10px;

        font-size: clamp(1.45rem, 4vw, 2rem);
        line-height: 1.1;
    }

    .hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 0;
        max-width: 100%;
    }

    .hero-btn {
        flex: 0 1 auto;

        min-height: 38px;
        padding: 0 11px;

        border-radius: 6px;

        font-size: .78rem;
        line-height: 1.15;
        white-space: nowrap;
    }

    .hero-btn i {
        font-size: .78rem;
    }

    .hero-btn span {
        white-space: nowrap;
    }
}

@media (max-width: 520px) {
    .resource-card-top {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .resource-image {
        width: 52px;
        height: 52px;
    }

    .resource-dropdown-content a {
        grid-template-columns: auto 1fr;
    }

    .resource-dropdown-content a::after {
        display: none;
    }
}

/* ==========================================
   Public Health Infoline Callout
   ========================================== */

.public-health-callout {
    display: flex;
    align-items: stretch;
    gap: 24px;
    margin: 40px 0;
    padding: 28px 32px;

    background: linear-gradient(135deg, var(--ph-dark-blue) 0%, var(--ph-blue) 100%);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0, 59, 111, .18);

    color: #ffffff;
}

.public-health-callout-content {
    flex: 1;
    min-width: 0;
}

.public-health-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
}

.public-health-header-content {
    min-width: 0;
}

.public-health-callout-icon {
    width: 64px;
    height: 64px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;

    color: #fff;
    font-size: 1.5rem;
}

.public-health-label {
    display: inline-block;

    margin-bottom: 8px;
    padding: 6px 12px;

    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;

    color: rgba(255, 255, 255, .92);

    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.public-health-callout-content h2 {
    margin: 0;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
}

.public-health-callout-content p {
    margin: 0;
    color: rgba(255, 255, 255, .92);
    line-height: 1.6;
}

.public-health-callout-action {
    width: 380px;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;

    padding: 20px;

    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
}

.public-health-action-label {
    color: rgba(255, 255, 255, .82);
    text-align: center;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.public-health-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    min-width: 0;
    padding: 15px 18px;
    box-sizing: border-box;

    background: var(--ph-gold);
    color: #1d2d3a;

    border-radius: 12px;

    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;

    transition: all .2s ease;
}

.public-health-phone:hover,
.public-health-phone:focus {
    background: #c39132;
    color: #1d2d3a;
    text-decoration: none;
}

.public-health-hours {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 14px;

    background: rgba(255, 255, 255, .1);
    border-radius: 12px;

    color: rgba(255, 255, 255, .92);
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.35;
}

.public-health-hours i {
    color: var(--ph-gold);
    flex-shrink: 0;
}

/* ==========================================
   Hero Actions
   ========================================== */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    min-height: 52px;
    padding: 0 20px;

    border-radius: 8px;

    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.hero-btn i {
    font-size: .95rem;
}

.hero-btn:hover,
.hero-btn:focus {
    text-decoration: none;
    transform: translateY(-1px);
}

/* What to Expect */
.hero-btn-primary {
    background: var(--ph-gold);
    border: 1px solid var(--ph-gold);
    color: #243746;

    box-shadow: 0 4px 12px rgba(217, 164, 65, .28);
}

.hero-btn-primary:hover,
.hero-btn-primary:focus {
    background: #c39132;
    border-color: #c39132;
    color: #243746;
}

/* Find a Clinic */
.hero-btn-secondary {
    background: var(--ph-blue);
    border: 1px solid var(--ph-blue);
    color: #fff;

    box-shadow: 0 4px 12px rgba(0, 90, 156, .25);
}

.hero-btn-secondary:hover,
.hero-btn-secondary:focus {
    background: var(--ph-dark-blue);
    border-color: var(--ph-dark-blue);
    color: #fff;
}

/* Contact */
.hero-btn-contact {
    background: #ffffff;
    border: 1px solid #ffffff;
    color: var(--ph-dark-blue);

    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.hero-btn-contact:hover,
.hero-btn-contact:focus {
    background: #f3f8fc;
    border-color: #f3f8fc;
    color: var(--ph-blue);
}

/* Resources */
.hero-btn-tertiary {
    background: rgba(0, 59, 111, .76);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;

    backdrop-filter: blur(4px);
}

.hero-btn-tertiary:hover,
.hero-btn-tertiary:focus {
    background: rgba(0, 59, 111, .94);
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

/* ==========================================
   Tablet / Small Desktop
   ========================================== */

@media (max-width: 950px) {

    .public-health-callout {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 24px;
    }

    .public-health-callout-content {
        width: 100%;
    }

    .public-health-callout-action {
        width: 100%;
        box-sizing: border-box;

        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;

        gap: 12px;

        padding: 18px 20px;

        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .15);
        border-radius: 14px;
    }

    .public-health-action-label {
        margin: 0;
        flex-shrink: 0;
    }

    .public-health-phone {
        min-width: 0;
        width: auto;
        max-width: 100%;

        padding: 14px 18px;

        font-size: 1.1rem;
    }
}

/* ==========================================
   Mobile
   ========================================== */

@media (max-width: 950px) {

    .public-health-callout {
        text-align: center;
        padding: 22px;
    }

    .public-health-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .public-health-callout-content p {
        text-align: center;
        max-width: none;
    }

    .public-health-callout-action {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .public-health-phone {
        width: 100%;
        min-width: 0;
    }
}

/* ==========================================
   Small Mobile
   ========================================== */

@media (max-width: 480px) {

    .public-health-callout {
        gap: 18px;
        margin: 28px 0;
        padding: 20px 16px;
        border-radius: 14px;
    }

    .public-health-header {
        gap: 10px;
    }

    .public-health-callout-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        font-size: 1.2rem;
    }

    .public-health-label {
        padding: 5px 10px;
        font-size: .68rem;
        letter-spacing: .06em;
    }

    .public-health-callout-content h2 {
        font-size: 1.28rem;
        line-height: 1.25;
    }

    .public-health-callout-content p {
        font-size: .92rem;
        line-height: 1.55;
    }

    .public-health-callout-action {
        padding: 14px;
        gap: 10px;
        border-radius: 12px;
    }

    .public-health-action-label {
        font-size: .68rem;
        text-align: center;
    }

    .public-health-phone {
        width: 100%;
        justify-content: center;

        font-size: 1rem;
        padding: 13px 14px;

        border-radius: 10px;
    }
}

/* ==========================================
   Extra Small Mobile
   ========================================== */

@media (max-width: 410px) {

    .public-health-callout {
        gap: 16px;
        margin: 24px 0;
        padding: 16px 14px;
        border-radius: 12px;
    }

    .public-health-header {
        gap: 8px;
    }

    .public-health-callout-icon {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .public-health-label {
        padding: 4px 8px;
        font-size: .65rem;
        letter-spacing: .05em;
    }

    .public-health-callout-content h2 {
        font-size: 1.15rem;
        line-height: 1.25;
    }

    .public-health-callout-content p {
        font-size: .88rem;
        line-height: 1.5;
    }

    .public-health-callout-action {
        padding: 12px;
        gap: 8px;
        border-radius: 10px;
    }

    .public-health-action-label {
        font-size: .65rem;
        letter-spacing: .06em;
    }

    .public-health-phone {
        width: 100%;
        min-width: 0;

        padding: 12px;
        gap: 8px;

        font-size: .95rem;
        line-height: 1.2;

        border-radius: 8px;
    }

    .public-health-phone i {
        font-size: .9rem;
    }
}

/* ==========================================
   Patient Page Hero Action Bar
   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: 12px 24px;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

/* Only affects buttons inside the action bar */
.hero-action-bar .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    min-height: 40px;
    padding: 8px 14px;

    box-sizing: border-box;
    border-radius: 7px;

    font-size: .88rem;
    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-action-bar .hero-btn i {
    font-size: .86rem;
    line-height: 1;
    flex-shrink: 0;
}

.hero-action-bar .hero-btn span {
    line-height: 1.2;
}

.hero-action-bar .hero-btn:hover,
.hero-action-bar .hero-btn:focus {
    text-decoration: none;
    transform: translateY(-1px);
}

/* Resources needs a darker color on light bar */
.hero-action-bar .hero-btn-tertiary {
    background: var(--ph-dark-blue);
    border-color: var(--ph-dark-blue);
    color: #fff;
}

.hero-action-bar .hero-btn-tertiary:hover,
.hero-action-bar .hero-btn-tertiary:focus {
    background: #002f59;
    border-color: #002f59;
    color: #fff;
}

/* Tablet */
@media (max-width: 768px) {
    .hero-action-bar .hero-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 10px 16px;
        gap: 8px;
    }

    .hero-action-bar .hero-btn {
        min-height: 38px;
        padding: 7px 10px;
        font-size: .78rem;
        border-radius: 6px;
    }

    .hero-action-bar .hero-btn i {
        font-size: .76rem;
    }
}

/* Small mobile */
@media (max-width: 520px) {
    .hero-action-bar .hero-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 10px 12px;
    }

    .hero-action-bar .hero-btn {
        min-height: 38px;
        padding: 8px 9px;
        font-size: .8rem;
    }
}

/* Extra small */
@media (max-width: 340px) {
    .hero-action-bar .hero-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}