/* ============================================================
   HOME PAGE — Desktop Redesign  (min-width: 768px)
   Modern SaaS-grade clinic UI
   Applies on top of portal-modern.css + home-page-modern.css
   ============================================================ */

/* ----------------------------------------------------------
   DESIGN TOKENS — desktop extensions
   ---------------------------------------------------------- */
:root {
    --hpd-max-width:      1280px;
    --hpd-px:             32px;
    --hpd-section-py:     80px;
    --hpd-section-py-sm:  64px;
    --hpd-radius:         16px;
    --hpd-radius-sm:      10px;
    --hpd-shadow:         0 2px 16px rgba(15, 23, 42, 0.07);
    --hpd-shadow-hov:     0 10px 36px rgba(15, 23, 42, 0.14);
    --hpd-transition:     all 0.28s cubic-bezier(.4,0,.2,1);
    --hpd-primary:        #2563EB;
    --hpd-primary-dark:   #1D4ED8;
    --hpd-accent:         #0D9488;
    --hpd-accent-dark:    #0F766E;
    --hpd-text-heading:   #0F172A;
    --hpd-text-body:      #6B7280;
    --hpd-text-muted:     #94A3B8;
    --hpd-bg-alt:         #F8FAFC;
    --hpd-border:         #E2E8F0;
}

/* ----------------------------------------------------------
   CONTAINER — wider on desktop
   ---------------------------------------------------------- */
@media (min-width: 768px) {
    .container {
        max-width: var(--hpd-max-width) !important;
        padding-left:  var(--hpd-px) !important;
        padding-right: var(--hpd-px) !important;
    }
}

/* ----------------------------------------------------------
   SECTION SPACING
   ---------------------------------------------------------- */
@media (min-width: 768px) {
    .portal-section,
    section.portal-section {
        padding: var(--hpd-section-py) 0 !important;
    }
    section.section-custom-medical {
        padding-bottom: var(--hpd-section-py-sm) !important;
    }
}

/* Alternating backgrounds */
.portal-section--white  { background: #ffffff; }
.portal-section--light  { background: var(--hpd-bg-alt); }
.portal-section--subtle { background: #EFF6FF; }   /* pale blue tint for insurances */

/* ----------------------------------------------------------
   SECTION HEADERS — centered, title + optional subtitle
   ---------------------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}
.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--hpd-text-heading);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.section-header p {
    font-size: 16px;
    color: var(--hpd-text-body);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}
/* Extend existing h2::after underline to use teal accent instead of blue */
.section-header h2::after {
    background: var(--hpd-accent) !important;
    margin-top: 14px;
}

/* ----------------------------------------------------------
   HERO / SLIDER
   ---------------------------------------------------------- */
@media (min-width: 768px) {
    /* Force carousel height */
    .owl-carousel.owl-carousel-light .owl-item {
        min-height: 600px;
        display: flex;
        align-items: center;
    }

    /* Stronger gradient overlay */
    .hp-hero-slide {
        position: relative;
        background-size: cover !important;
        background-position: center !important;
        min-height: 600px;
        display: flex;
        align-items: center;
    }
    .hp-hero-slide::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
            105deg,
            rgba(15,23,42,0.78) 0%,
            rgba(37,99,235,0.45) 55%,
            rgba(13,148,136,0.25) 100%
        );
        z-index: 1;
    }
    .hp-hero-inner {
        position: relative;
        z-index: 2;
        max-width: 640px;
    }
    .hp-hero-tag {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--hpd-accent);
        margin-bottom: 18px;
    }
    .hp-hero-tag::before {
        content: '';
        width: 28px;
        height: 2px;
        background: var(--hpd-accent);
        display: inline-block;
    }
    .hp-hero-title {
        font-size: 42px;
        font-weight: 800;
        line-height: 1.2;
        color: #ffffff;
        margin-bottom: 18px;
        letter-spacing: -0.02em;
    }
    .hp-hero-subtitle {
        font-size: 18px;
        font-weight: 400;
        color: rgba(255,255,255,0.82);
        line-height: 1.6;
        margin-bottom: 36px;
    }
    .hp-hero-actions {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
        align-items: center;
    }

    /* Primary CTA — high contrast, modern sizing */
    .hp-hero-btn-primary {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        min-width: 160px;
        padding: 12px 28px;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        color: #ffffff;
        background-image: linear-gradient(90deg,#00C9A7,#00B395);
        border: 0;
        text-decoration: none;
        transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
        box-shadow: 0 6px 20px rgba(0,201,167,0.18);
        align-items: center;
    }
    .hp-hero-btn-primary i { font-size: 16px; }
    .hp-hero-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(0,201,167,0.22);
        filter: brightness(0.98);
    }

    /* Ghost / Outline CTA — subtle, transparent */
    .hp-hero-btn-ghost {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        min-width: 160px;
        padding: 12px 28px;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        color: #ffffff;
        background: transparent;
        border: 1.5px solid rgba(255,255,255,0.85);
        text-decoration: none;
        transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    }
    .hp-hero-btn-ghost i { font-size: 16px; }
    .hp-hero-btn-ghost:hover {
        transform: translateY(-2px);
        background: rgba(255,255,255,0.06);
        box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    }

    /* Focus for accessibility */
    .hp-hero-btn-primary:focus,
    .hp-hero-btn-ghost:focus {
        outline: 3px solid rgba(0,201,167,0.16);
        outline-offset: 3px;
    }
    /* Scroll hint indicator */
    .hp-hero-scroll-hint {
        position: absolute;
        bottom: 32px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 5;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        color: rgba(255,255,255,0.6);
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.05em;
        animation: hp-bounce 2s infinite;
    }
    @keyframes hp-bounce {
        0%, 100% { transform: translateX(-50%) translateY(0); }
        50%       { transform: translateX(-50%) translateY(6px); }
    }
}

/* ----------------------------------------------------------
   INFO BAR — horizontal 3-pill row on desktop
   ---------------------------------------------------------- */
@media (min-width: 768px) {
    .hp-info-bar {
        flex-direction: row;
        border-radius: var(--hpd-radius);
        box-shadow: var(--hpd-shadow);
        padding: 0;
        overflow: hidden;
        margin-bottom: 0;
        gap: 0;
        border: 1px solid var(--hpd-border);
    }
    .hp-info-pill {
        border-radius: 0;
        flex: 1;
        padding: 20px 28px;
        gap: 16px;
        border-right: 1px solid rgba(0,0,0,0.06);
    }
    .hp-info-pill:last-child { border-right: none; }
    .hp-info-pill__icon { font-size: 26px; }
    .hp-info-pill__label { font-size: 12px; margin-bottom: 4px; }
    .hp-info-pill__value { font-size: 16px; font-weight: 700; }
    .hp-hours-detail { font-size: 13px; margin-top: 2px; }
}

/* ----------------------------------------------------------
   TEXT SECTIONS (About / Mission / Vision)
   ---------------------------------------------------------- */
@media (min-width: 768px) {
    .hp-text-section {
        padding: var(--hpd-section-py-sm) 0 0;
    }
    .hp-text-section__title {
        font-size: 32px !important;
        font-weight: 700 !important;
        letter-spacing: -0.02em !important;
        color: var(--hpd-text-heading) !important;
        line-height: 1.25 !important;
        margin-bottom: 16px !important;
    }
    .hp-text-section__body {
        font-size: 16px !important;
        line-height: 1.8 !important;
        color: var(--hpd-text-body) !important;
        margin-bottom: 28px !important;
    }
    .hp-text-section__img {
        border-radius: var(--hpd-radius) !important;
        box-shadow: var(--hpd-shadow-hov) !important;
        width: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
        aspect-ratio: 4/3;
    }
}

/* Read-more link */
@media (min-width: 768px) {
    .hp-read-more {
        font-size: 15px;
        font-weight: 600;
        color: var(--hpd-primary);
        display: inline-flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        transition: var(--hpd-transition);
        padding: 10px 20px;
        border: 2px solid var(--hpd-primary);
        border-radius: 100px;
    }
    .hp-read-more:hover {
        background: var(--hpd-primary);
        color: #fff;
        transform: translateX(3px);
    }
    html[dir="rtl"] .hp-read-more:hover { transform: translateX(-3px); }
}

/* ----------------------------------------------------------
   DOCTOR CARDS — 4-column grid
   ---------------------------------------------------------- */
@media (min-width: 768px) {
    /* Grid wrapper — replaces scroll strip on desktop */
    .hpd-doctor-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
    .hpd-doctor-grid .hp-doctor-card {
        display: flex;
        flex-direction: column;
        text-decoration: none;
        background: #fff;
        border-radius: var(--hpd-radius);
        overflow: hidden;
        box-shadow: var(--hpd-shadow);
        transition: var(--hpd-transition);
        height: 100%;
    }
    .hpd-doctor-grid .hp-doctor-card:hover {
        box-shadow: var(--hpd-shadow-hov);
        transform: translateY(-5px);
    }
    .hpd-doctor-grid .hp-doctor-card__img-wrap {
        width: 100%;
        aspect-ratio: 3/4;
        overflow: hidden;
        flex-shrink: 0;
    }
    .hpd-doctor-grid .hp-doctor-card__img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }
    .hpd-doctor-grid .hp-doctor-card:hover .hp-doctor-card__img-wrap img {
        transform: scale(1.04);
    }
    .hpd-doctor-grid .hp-doctor-card__body {
        padding: 18px 20px 22px;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .hpd-doctor-grid .hp-doctor-card__dept {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        color: var(--hpd-accent);
        display: block;
    }
    .hpd-doctor-grid .hp-doctor-card__name {
        font-size: 17px;
        font-weight: 700;
        color: var(--hpd-text-heading);
        line-height: 1.3;
    }
    .hpd-doctor-grid .hp-doctor-card__bio {
        font-size: 13px;
        color: var(--hpd-text-body);
        line-height: 1.6;
        margin: 4px 0 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ----------------------------------------------------------
   DEPARTMENT CARDS — 3-column grid on desktop
   ---------------------------------------------------------- */
@media (min-width: 768px) {
    .hp-dept-card {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 28px 24px !important;
        background: #fff;
        border-radius: var(--hpd-radius);
        box-shadow: var(--hpd-shadow);
        border: 1px solid var(--hpd-border);
        text-decoration: none;
        color: inherit;
        height: 100%;
        transition: var(--hpd-transition);
    }
    .hp-dept-card:hover {
        box-shadow: var(--hpd-shadow-hov);
        transform: translateY(-4px);
        border-color: transparent;
    }
    .hp-dept-card__icon {
        width: 56px !important;
        height: 56px !important;
        border-radius: 14px !important;
        background: var(--hp-blue-light, #DBEAFE) !important;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .hp-dept-card__icon img {
        width: 32px !important;
        height: 32px !important;
        object-fit: contain;
    }
    .hp-dept-card__name {
        font-size: 17px;
        font-weight: 700;
        color: var(--hpd-text-heading);
        line-height: 1.3;
    }
    .hp-dept-card__desc {
        font-size: 14px;
        color: var(--hpd-text-body);
        line-height: 1.6;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ----------------------------------------------------------
   SERVICE CARDS — 3-column grid on desktop
   ---------------------------------------------------------- */
@media (min-width: 768px) {
    .hp-service-card {
        background: #fff;
        border-radius: var(--hpd-radius);
        box-shadow: var(--hpd-shadow);
        border: 1px solid var(--hpd-border);
        overflow: hidden;
        height: 100%;
        display: flex;
        flex-direction: column;
        transition: var(--hpd-transition);
    }
    .hp-service-card:hover {
        box-shadow: var(--hpd-shadow-hov);
        transform: translateY(-5px);
        border-color: transparent;
    }
    .hp-service-card__img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }
    .hp-service-card:hover .hp-service-card__img {
        transform: scale(1.04);
    }
    .hp-service-card__body {
        padding: 20px 22px 24px;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .hp-service-card__name {
        font-size: 17px;
        font-weight: 700;
        color: var(--hpd-text-heading);
        text-decoration: none;
        display: block;
        line-height: 1.3;
        transition: color 0.2s;
    }
    .hp-service-card__name:hover { color: var(--hpd-primary); }
    .hp-service-card__desc {
        font-size: 14px;
        color: var(--hpd-text-body);
        line-height: 1.65;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ----------------------------------------------------------
   ARTICLE CARDS — 3-column grid on desktop
   ---------------------------------------------------------- */
@media (min-width: 768px) {
    .hp-article-card {
        display: flex;
        flex-direction: column;
        background: #fff;
        border-radius: var(--hpd-radius);
        box-shadow: var(--hpd-shadow);
        border: 1px solid var(--hpd-border);
        overflow: hidden;
        height: 100%;
        text-decoration: none;
        color: inherit;
        transition: var(--hpd-transition);
    }
    .hp-article-card:hover {
        box-shadow: var(--hpd-shadow-hov);
        transform: translateY(-5px);
        border-color: transparent;
    }
    .hp-article-card__img {
        width: 100%;
        height: 210px !important;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }
    .hp-article-card:hover .hp-article-card__img {
        transform: scale(1.04);
    }
    .hp-article-card__body {
        padding: 20px 22px 24px;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .hp-article-card__meta {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        color: var(--hpd-text-muted);
    }
    .hp-article-card__meta .sep { opacity: 0.4; }
    .hp-article-card__title {
        font-size: 17px;
        font-weight: 700;
        color: var(--hpd-text-heading);
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hp-article-card__excerpt {
        font-size: 14px;
        color: var(--hpd-text-body);
        line-height: 1.65;
        flex: 1;
        margin: 4px 0 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hp-article-card__link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        font-weight: 600;
        color: var(--hpd-primary);
        margin-top: 12px;
        transition: gap 0.2s;
    }
    .hp-article-card:hover .hp-article-card__link { gap: 10px; }
}

/* ----------------------------------------------------------
   INSURANCE STRIP — centered logo grid on desktop
   ---------------------------------------------------------- */
@media (min-width: 768px) {
    .hp-insurance-strip {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
        padding: 8px 0;
        overflow: visible !important;
    }
    .hp-insurance-item {
        flex: 0 0 auto;
        width: 140px;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 16px;
        background: #fff;
        border-radius: var(--hpd-radius-sm);
        border: 1px solid var(--hpd-border);
        box-shadow: var(--hpd-shadow);
        transition: var(--hpd-transition);
    }
    .hp-insurance-item:hover {
        box-shadow: var(--hpd-shadow-hov);
        transform: translateY(-3px);
        border-color: var(--hpd-border);
    }
    .hp-insurance-item img {
        max-width: 100%;
        max-height: 52px;
        object-fit: contain;
        filter: grayscale(30%) opacity(0.85);
        transition: filter 0.25s;
    }
    .hp-insurance-item:hover img { filter: grayscale(0%) opacity(1); }
}

/* ----------------------------------------------------------
   CTA ROW — centered view-more
   ---------------------------------------------------------- */
@media (min-width: 768px) {
    .hp-cta-row {
        margin-top: 48px;
        text-align: center;
    }
    .hp-btn-outline {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 15px !important;
        font-weight: 600 !important;
        padding: 13px 32px !important;
        border-radius: 100px !important;
        border: 2px solid var(--hpd-primary) !important;
        color: var(--hpd-primary) !important;
        background: transparent;
        text-decoration: none;
        transition: var(--hpd-transition);
    }
    .hp-btn-outline:hover {
        background: var(--hpd-primary) !important;
        color: #fff !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(37,99,235,0.25);
    }
}

/* ----------------------------------------------------------
   FOOTER — 4-column modern layout
   ---------------------------------------------------------- */
@media (min-width: 768px) {
    #footer {
        background: #0F172A !important;
    }
    .footer-heading {
        font-size: 13px !important;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #F1F5F9 !important;
        margin-bottom: 20px !important;
        padding-bottom: 10px !important;
        border-bottom-color: var(--hpd-accent) !important;
        border-bottom-width: 2px;
        border-bottom-style: solid;
        display: block !important;
    }

    /* About column — clinic blurb */
    .hpd-footer-about__text {
        font-size: 14px;
        color: #94A3B8;
        line-height: 1.75;
        margin-bottom: 16px;
    }
    .hpd-footer-logo {
        margin-bottom: 16px;
        display: block;
    }
    .hpd-footer-logo img { max-height: 48px; }

    /* Nav column */
    .hpd-footer-nav {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .hpd-footer-nav li a {
        font-size: 14px;
        color: #94A3B8 !important;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: color 0.2s, gap 0.2s;
    }
    .hpd-footer-nav li a::before {
        content: '';
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--hpd-accent);
        flex-shrink: 0;
        transition: transform 0.2s;
    }
    .hpd-footer-nav li a:hover {
        color: #fff !important;
        gap: 12px;
    }
    .hpd-footer-nav li a:hover::before { transform: scale(1.4); }

    /* Contact column */
    .hpd-footer-contact {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    .hpd-contact-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }
    .hpd-contact-item__icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: rgba(255,255,255,0.07);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        color: var(--hpd-accent);
        font-size: 13px;
        margin-top: 1px;
    }
    .hpd-contact-item__body { display: flex; flex-direction: column; gap: 2px; }
    .hpd-contact-item__label { font-size: 11px; color: #64748B; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
    .hpd-contact-item__value { font-size: 14px; color: #CBD5E1; line-height: 1.5; }
    .hpd-contact-item__value a { color: #CBD5E1 !important; text-decoration: none; transition: color 0.2s; }
    .hpd-contact-item__value a:hover { color: var(--hpd-accent) !important; }

    /* Social column */
    #footer .social-icons {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    #footer .social-icons li a {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: rgba(255,255,255,0.07);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #94A3B8;
        font-size: 16px;
        transition: var(--hpd-transition);
        text-decoration: none;
        border: 1px solid rgba(255,255,255,0.08);
    }
    #footer .social-icons li a:hover {
        background: var(--hpd-accent);
        color: #fff;
        border-color: var(--hpd-accent);
        transform: translateY(-3px);
    }

    /* Copyright bar */
    .footer-copyright {
        background: rgba(0,0,0,0.25);
        border-top: 1px solid rgba(255,255,255,0.06);
        margin-top: 0 !important;
    }
    .footer-copyright p {
        font-size: 13px;
        color: #64748B;
        margin: 0;
    }

    /* Location text in footer */
    #footer .footer-links li {
        color: #94A3B8;
        font-size: 14px;
        line-height: 1.65;
    }

    /* Hours table */
    .footer-hours-block { margin-bottom: 14px; }
    .footer-hours-name { font-size: 13px; color: #CBD5E1; font-weight: 600; margin-bottom: 5px; }
    .footer-hours-row { font-size: 13px; color: #94A3B8; display: flex; justify-content: space-between; gap: 12px; }

    /* Emergency in footer */
    .footer-emergency-number {
        font-size: 1.4rem !important;
        letter-spacing: -0.01em;
    }
}

/* ----------------------------------------------------------
   SECTION CUSTOM MEDICAL (wraps info bar + about text)
   ---------------------------------------------------------- */
@media (min-width: 768px) {
    section.section-custom-medical {
        padding: 0 0 var(--hpd-section-py-sm) !important;
    }
}

/* ----------------------------------------------------------
   RTL OVERRIDES
   ---------------------------------------------------------- */
html[dir="rtl"] .hpd-footer-nav li a { flex-direction: row-reverse; }
html[dir="rtl"] .hpd-footer-nav li a::before { margin-left: 0; margin-right: 0; }
html[dir="rtl"] .hpd-contact-item { flex-direction: row-reverse; text-align: right; }
html[dir="rtl"] .hp-hero-tag::before { order: 1; }
html[dir="rtl"] .hp-read-more:hover { transform: translateX(-3px); }

/* ----------------------------------------------------------
   STATS SECTION — desktop 4-column grid
   ---------------------------------------------------------- */
@media (min-width: 768px) {
    .hp-stats-section {
        background: linear-gradient(135deg, #1E3A8A 0%, #1e40af 60%, #0D9488 100%);
        padding: 56px 0;
    }
    .hp-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        border-radius: 20px;
        gap: 2px;
        background: rgba(255,255,255,0.12);
        box-shadow: 0 8px 40px rgba(15,23,42,0.22);
    }
    .hp-stat-item {
        padding: 36px 20px;
    }
    .hp-stat-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        border-radius: 16px;
    }
    .hp-stat-number { font-size: 42px; }
    .hp-stat-label { font-size: 13px; }
}

/* ----------------------------------------------------------
   APPOINTMENT CTA BANNER — desktop 2-column layout
   ---------------------------------------------------------- */
@media (min-width: 768px) {
    .hp-appt-cta {
        padding: 72px 0;
    }
    .hp-appt-cta__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: start;
        gap: 48px;
    }
    html[dir="rtl"] .hp-appt-cta__inner { text-align: right; }
    .hp-appt-cta__text { flex: 1; }
    .hp-appt-cta__title { font-size: 36px; }
    .hp-appt-cta__subtitle { font-size: 16px; max-width: 480px; }
    .hp-appt-cta__actions {
        flex-direction: row;
        width: auto;
        max-width: none;
        flex-shrink: 0;
        gap: 14px;
    }
    .hp-appt-cta__btn {
        padding: 14px 32px;
        font-size: 15px;
        white-space: nowrap;
    }
}

/* ----------------------------------------------------------
   DOCTOR CARD FOOTER — desktop polish
   ---------------------------------------------------------- */
@media (min-width: 768px) {
    .hp-doctor-card__footer {
        padding: 12px 20px 18px;
        margin-top: auto;
    }
    .hp-doctor-card__book-btn {
        font-size: 13px;
        padding: 9px 0;
        border-radius: 8px;
        letter-spacing: 0.04em;
    }
}

