/* =========================================================
   ANWAR & SONS — MEDICAL SOLUTIONS HERO
   Elementor version of the original ZIP demo hero.

   IMPORTANT:
   - Core layout values below are copied from the supplied demo.
   - No JavaScript is required for this hero widget.
   - Elementor controls only override these values when used.
========================================================= */

.elementor-widget-anwar_medical_hero {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.elementor-widget-anwar_medical_hero > .elementor-widget-container {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.anwar-medhero-scope,
.anwar-medhero-scope *,
.anwar-medhero-scope *::before,
.anwar-medhero-scope *::after {
    box-sizing: border-box;
}

.anwar-medhero-scope img,
.anwar-medhero-scope svg {
    display: block;
}

.anwar-medhero-scope img {
    max-width: 100%;
}

/* =========================================================
   FULL-WIDTH BREAKOUT
   The plain HTML demo is full viewport width. Elementor may
   place the widget inside a boxed container, so the section
   must break out of that parent to reproduce the demo.
========================================================= */

.anwar-medhero-scope.hero {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    isolation: isolate;
    min-height: clamp(520px, 46vw, 820px);
    overflow: hidden;
    background: #f6faff;
}

/* =========================================================
   BACKGROUND — exact desktop behavior from supplied demo
========================================================= */

.anwar-medhero-scope.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--anwar-hero-desktop-bg, none);
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

.anwar-medhero-scope.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: none;
    opacity: 1;
}

/* Desktop overlay modes */
.anwar-medhero-scope.hero.overlay-desktop-demo::after {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, .32),
        rgba(255, 255, 255, .14) 23%,
        rgba(255, 255, 255, 0) 47%
    );
    opacity: 1;
}

.anwar-medhero-scope.hero.overlay-desktop-solid::after {
    background: var(--anwar-overlay-desktop-color, #ffffff);
    opacity: var(--anwar-overlay-desktop-opacity, .20);
}

/* =========================================================
   DEMO CONTAINER
   Original .container is width:100%; max-width:none.
========================================================= */

.anwar-medhero-scope .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: clamp(26px, 2.6vw, 74px);
}

/* =========================================================
   HERO INNER — exact original values
========================================================= */

.anwar-medhero-scope .hero-inner {
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: clamp(520px, 46vw, 820px);
    padding: clamp(51px, 2.1vw, 100px) clamp(28px, 4.1vw, 100px) 48px;
}

/* =========================================================
   LEFT CONTENT
========================================================= */

.anwar-medhero-scope .hero-content {
    position: relative;
    z-index: 2;
    width: min(46.5vw, 860px);
    min-width: 0;
    margin: 0;
}

/* =========================================================
   KICKER
========================================================= */

.anwar-medhero-scope .hero-kicker {
    display: block;
    margin: 0 0 clamp(24px, 2.9vw, 53px);
    color: #4e7dbd;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(10px, .8vw, 15px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .27em;
    text-transform: none;
}

/* =========================================================
   HEADING
========================================================= */

.anwar-medhero-scope .hero-heading {
    margin: 0 0 clamp(15px, 1.75vw, 30px);
    padding: 0;
    color: #141b29;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(43px, 3.1vw, 90px);
    font-weight: 800;
    letter-spacing: -.054em;
    line-height: 1.02;
}

.anwar-medhero-scope .hero-heading-highlight {
    display: block;
    color: #3769b3;
    white-space: nowrap;
}

/* =========================================================
   DESCRIPTION
========================================================= */

.anwar-medhero-scope .hero-description {
    width: min(100%, 670px);
    margin: 0 0 clamp(20px, 2.2vw, 37px);
    padding: 0;
    color: #57677c;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(14px, 1.27vw, 23px);
    font-weight: 400;
    line-height: 1.43;
}

/* =========================================================
   STATISTICS — exact 3-column desktop row
========================================================= */

.anwar-medhero-scope .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.15fr;
    align-items: center;
    width: min(100%, 735px);
    margin: 0 0 clamp(25px, 3vw, 51px);
}

.anwar-medhero-scope .hero-stat {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 17px);
    min-width: 0;
    padding-right: clamp(8px, 1.2vw, 20px);
}

.anwar-medhero-scope .hero-stat + .hero-stat {
    padding-left: clamp(9px, 1.3vw, 22px);
}

.anwar-medhero-scope .hero-stats.has-dividers .hero-stat + .hero-stat {
    border-left: 1px solid #d6e2f1;
}

/* =========================================================
   STAT ICON
========================================================= */

/* =========================================================
   STAT ICON
========================================================= */

.anwar-medhero-scope .stat-icon {
    display: grid;
    place-items: center;

    flex:
        0 0
        clamp(
            40px,
            3.5vw,
            59px
        );

    width:
        clamp(
            40px,
            3.5vw,
            59px
        );

    height:
        clamp(
            40px,
            3.5vw,
            59px
        );

    border-radius:
        50%;

    overflow:
        hidden;

    background:
        #ebf3fc;

    color:
        #3769b3;
}


/* =========================================================
   ICON SIZE
========================================================= */

.anwar-medhero-scope
.stat-icon
>
.stat-icon-demo-svg,

.anwar-medhero-scope
.stat-icon
>
.stat-icon-image,

.anwar-medhero-scope
.stat-icon
>
i,

.anwar-medhero-scope
.stat-icon
.e-font-icon-svg {
    width:
        57%;

    height:
        57%;
}


/* =========================================================
   ORIGINAL DEMO SVG

   Only the built-in demo SVG should inherit the widget color.
========================================================= */

.anwar-medhero-scope
.stat-icon
>
.stat-icon-demo-svg {
    fill:
        none;

    stroke:
        currentColor;
}


/* =========================================================
   PNG / CUSTOM SVG IMAGE

   Do NOT apply fill, stroke or color manipulation.
========================================================= */

.anwar-medhero-scope
.stat-icon
>
.stat-icon-image {
    display:
        block;

    object-fit:
        contain;

    object-position:
        center;

    max-width:
        100%;

    max-height:
        100%;
}


/*
 * Custom SVG uploaded through Elementor.
 *
 * Keep the SVG exactly as uploaded.
 */

.anwar-medhero-scope
.stat-icon
>
.stat-icon-image--svg {
    object-fit:
        contain;

    /*
     * IMPORTANT:
     *
     * Do NOT add:
     *
     * fill
     * stroke
     * filter
     * color
     *
     * The SVG file controls its own appearance.
     */
}


/* =========================================================
   NORMAL ELEMENTOR / FONT AWESOME ICON

   These can still use the Elementor color control.
========================================================= */

.anwar-medhero-scope
.stat-icon
.e-font-icon-svg {
    fill:
        currentColor;

    stroke:
        none;
}

/* =========================================================
   STAT TEXT
========================================================= */

.anwar-medhero-scope .stat-content {
    min-width: 0;
}

.anwar-medhero-scope .stat-content strong {
    display: block;
    margin: 0 0 4px;
    color: #274f86;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(12px, 1.08vw, 19px);
    font-weight: 700;
    line-height: 1.12;
}

.anwar-medhero-scope .stat-content span {
    display: block;
    color: #5b6b7b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(10px, .78vw, 14px);
    font-weight: 400;
    line-height: 1.33;
}

/* =========================================================
   BOTTOM TEXT + LINE
========================================================= */

.anwar-medhero-scope .hero-bottom-line {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 650px;
    margin: 0;
    color: #82979b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(9px, .8vw, 13px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .27em;
    white-space: nowrap;
}

.anwar-medhero-scope .hero-bottom-line.has-rule::after {
    content: "";
    flex: 1;
    min-width: 50px;
    height: 1px;
    background: #dce7f4;
}

/* =========================================================
   RIGHT VISUAL
========================================================= */

.anwar-medhero-scope .hero-visual {
    position: static;
}

/* =========================================================
   CATEGORY CARDS — exact original desktop placement
========================================================= */

.anwar-medhero-scope .hero-cards {
    position: absolute;
    z-index: 3;
    right: clamp(26px, 3.5vw, 78px);
    bottom: clamp(16px, 2vw, 40px);
    width: min(47vw, 930px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 1vw, 18px);
}

.anwar-medhero-scope .hero-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding: clamp(11px, 1.25vw, 21px);
    border: 2px solid #fff;
    border-radius: clamp(10px, 1.1vw, 17px);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 17px 43px #173d711a;
    color: inherit;
    text-decoration: none;
    transition: transform .26s, box-shadow .26s;
}

.anwar-medhero-scope .hero-card:is(:hover, :focus-visible) {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px #173d712d;
    outline-color: #77a0d1;
}

.anwar-medhero-scope .hero-card-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: clamp(94px, 8.9vw, 158px);
    margin: 0 0 clamp(9px, 1vw, 15px);
    overflow: hidden;
}

.anwar-medhero-scope .hero-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anwar-medhero-scope .hero-card h4 {
    max-width: calc(100% - 25px);
    margin: 0;
    padding: 0;
    color: #152233;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(13px, 1.13vw, 21px);
    font-weight: 700;
    line-height: 1.12;
}

/* =========================================================
   MEDIUM LAPTOP — copied from the ZIP demo
========================================================= */

@media (min-width: 1025px) and (max-width: 1399px) {

    .anwar-medhero-scope.hero {
        min-height: clamp(525px, 46vw, 645px);
    }

    .anwar-medhero-scope .hero-inner {
        min-height: clamp(525px, 46vw, 645px);
    }

    .anwar-medhero-scope .hero-content {
        width: 47vw;
    }

    .anwar-medhero-scope .hero-kicker {
        margin-bottom: 25px;
    }

    .anwar-medhero-scope .hero-heading {
        font-size: clamp(43px, 4.6vw, 63px);
    }

    .anwar-medhero-scope .hero-description {
        max-width: 510px;
        font-size: clamp(14px, 1.22vw, 17px);
    }

    .anwar-medhero-scope .hero-stats {
        width: 100%;
    }

    .anwar-medhero-scope .hero-cards {
        width: 46vw;
    }
}

/* =========================================================
   TABLET — copied from the ZIP demo
========================================================= */

@media (min-width: 769px) and (max-width: 1024px) {

    .anwar-medhero-scope.hero,
    .anwar-medhero-scope .hero-inner {
        min-height: 660px;
    }

    .anwar-medhero-scope.hero::before {
        background-position: 58% top;
    }

    /* Overlay is controlled by Elementor. Default PHP setting = original demo gradient. */
    .anwar-medhero-scope.hero::after {
        background: none;
        opacity: 1;
    }

    .anwar-medhero-scope.hero.overlay-tablet-demo::after {
        background: linear-gradient(
            90deg,
            rgba(255, 255, 255, .91),
            rgba(255, 255, 255, .67) 55%,
            rgba(255, 255, 255, .06)
        );
        opacity: 1;
    }

    .anwar-medhero-scope.hero.overlay-tablet-solid::after {
        background: var(--anwar-overlay-tablet-color, #ffffff);
        opacity: var(--anwar-overlay-tablet-opacity, .35);
    }

    .anwar-medhero-scope .hero-content {
        width: min(65%, 610px);
    }

    .anwar-medhero-scope .hero-kicker {
        margin-bottom: 26px;
    }

    .anwar-medhero-scope .hero-heading {
        font-size: clamp(44px, 5.1vw, 58px);
    }

    .anwar-medhero-scope .hero-description {
        font-size: 16px;
    }

    .anwar-medhero-scope .hero-cards {
        display: none;
    }
}

/* =========================================================
   MOBILE — copied from the ZIP demo
========================================================= */

@media (max-width: 768px) {

    .anwar-medhero-scope .container {
        padding-inline: 20px;
    }

    .anwar-medhero-scope.hero {
        min-height: 920px;
        background: #f8fbff;
    }

    .anwar-medhero-scope.hero::before {
        background-image: var(--anwar-hero-mobile-bg, var(--anwar-hero-desktop-bg, none));
        background-size: cover;
        background-position: center bottom;
    }

    /* Overlay is controlled by Elementor. Default PHP setting = original demo gradient. */
    .anwar-medhero-scope.hero::after {
        background: none;
        opacity: 1;
    }

    .anwar-medhero-scope.hero.overlay-mobile-demo::after {
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, .98) 0%,
            rgba(255, 255, 255, .97) 31%,
            rgba(255, 255, 255, .92) 53%,
            rgba(255, 255, 255, .53) 74%,
            rgba(255, 255, 255, .05) 100%
        );
        opacity: 1;
    }

    .anwar-medhero-scope.hero.overlay-mobile-solid::after {
        background: var(--anwar-overlay-mobile-color, #ffffff);
        opacity: var(--anwar-overlay-mobile-opacity, .35);
    }

    .anwar-medhero-scope .hero-inner {
        min-height: 920px;
        display: block;
        padding: 48px 22px 320px;
    }

    .anwar-medhero-scope .hero-content {
        width: 100%;
        max-width: 590px;
    }

    .anwar-medhero-scope .hero-kicker {
        margin-bottom: 24px;
        font-size: 10px;
        letter-spacing: .18em;
    }

    .anwar-medhero-scope .hero-heading {
        margin-bottom: 23px;
        font-size: clamp(35px, 8.2vw, 55px);
    }

    .anwar-medhero-scope .hero-heading-highlight {
        white-space: normal;
    }

    .anwar-medhero-scope .hero-description {
        max-width: 520px;
        margin-bottom: 24px;
        font-size: clamp(14px, 3.6vw, 16px);
        line-height: 1.5;
    }

    .anwar-medhero-scope .hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        max-width: 540px;
        margin-bottom: 26px;
    }

    .anwar-medhero-scope .stat-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .anwar-medhero-scope .stat-content strong {
        font-size: 13px;
    }

    .anwar-medhero-scope .stat-content span {
        font-size: 10px;
    }

    .anwar-medhero-scope .hero-bottom-line {
        font-size: 9px;
        letter-spacing: .14em;
    }

    .anwar-medhero-scope .hero-cards {
        display: none;
    }
}

/* =========================================================
   SMALL MOBILE — copied from the ZIP demo
========================================================= */

@media (max-width: 510px) {

    .anwar-medhero-scope.hero {
        min-height: 965px;
    }

    .anwar-medhero-scope .hero-inner {
        min-height: 965px;
        padding-inline: 20px;
        padding-top: 37px;
        padding-bottom: 300px;
    }

    .anwar-medhero-scope.hero::before {
        background-size: auto 89%;
        background-position: 56% bottom;
    }

    /* Small-mobile version of the optional original demo overlay. */
    .anwar-medhero-scope.hero.overlay-mobile-demo::after {
        background: linear-gradient(
            180deg,
            #fff 0%,
            rgba(255, 255, 255, .985) 37%,
            rgba(255, 255, 255, .91) 57%,
            rgba(255, 255, 255, .35) 83%,
            transparent 100%
        );
        opacity: 1;
    }

    .anwar-medhero-scope.hero.overlay-mobile-solid::after {
        background: var(--anwar-overlay-mobile-color, #ffffff);
        opacity: var(--anwar-overlay-mobile-opacity, .35);
    }

    .anwar-medhero-scope .hero-heading {
        font-size: clamp(34px, 9.2vw, 46px);
    }

    .anwar-medhero-scope .hero-stats {
        grid-template-columns: 1fr;
        gap: 9px;
        max-width: 400px;
    }

    .anwar-medhero-scope .hero-stat,
    .anwar-medhero-scope .hero-stat + .hero-stat {
        padding: 0;
        border: 0;
        gap: 12px;
    }

    .anwar-medhero-scope .stat-icon {
        flex-basis: 39px;
        width: 39px;
        height: 39px;
    }

    .anwar-medhero-scope .stat-content strong {
        font-size: 13px;
    }

    .anwar-medhero-scope .stat-content span {
        font-size: 11px;
    }

    .anwar-medhero-scope .hero-bottom-line {
        display: none;
    }
}

/* =========================================================
   VERY LARGE DESKTOP
   The ZIP demo increases global container padding >=1600px.
========================================================= */

@media (min-width: 1600px) {
    .anwar-medhero-scope .container {
        padding-inline: clamp(54px, 4.3vw, 84px);
    }
}

/* =========================================================
   FIT TO SCREEN

   Enabled only when "Fit Hero to Screen" is switched on.
   The normal/original demo layout above remains untouched
   while the option is OFF.
========================================================= */

.anwar-medhero-scope.hero.is-fit-screen {
    height: calc(100vh - var(--anwar-fit-screen-offset, 0px)) !important;
    height: calc(100svh - var(--anwar-fit-screen-offset, 0px)) !important;

    min-height: calc(100vh - var(--anwar-fit-screen-offset, 0px)) !important;
    min-height: calc(100svh - var(--anwar-fit-screen-offset, 0px)) !important;

    max-height: calc(100vh - var(--anwar-fit-screen-offset, 0px)) !important;
    max-height: calc(100svh - var(--anwar-fit-screen-offset, 0px)) !important;
}

.anwar-medhero-scope.hero.is-fit-screen .hero-inner {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
}


/* =========================================================
   FIT TO SCREEN — DESKTOP / LAPTOP
========================================================= */

@media (min-width: 1025px) {

    .anwar-medhero-scope.hero.is-fit-screen .hero-inner {
        padding-top: clamp(28px, 5.5svh, 78px);
        padding-bottom: clamp(20px, 4svh, 48px);
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-kicker {
        margin-bottom: clamp(15px, 3.7svh, 53px);
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-heading {
        font-size: clamp(
            40px,
            min(3.1vw, 7.6svh),
            90px
        );

        margin-bottom: clamp(12px, 2.5svh, 30px);
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-description {
        font-size: clamp(
            13px,
            min(1.27vw, 2.7svh),
            23px
        );

        margin-bottom: clamp(14px, 3svh, 37px);
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-stats {
        margin-bottom: clamp(15px, 4svh, 51px);
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-cards {
        bottom: clamp(12px, 2.2svh, 40px);
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-card-image {
        height: clamp(
            78px,
            min(8.9vw, 18svh),
            158px
        );
    }
}


/* =========================================================
   FIT TO SCREEN — TABLET
========================================================= */

@media (min-width: 769px) and (max-width: 1024px) {

    .anwar-medhero-scope.hero.is-fit-screen .hero-inner {
        padding:
            clamp(26px, 5svh, 48px)
            clamp(24px, 4vw, 42px)
            clamp(22px, 4svh, 42px);
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-content {
        width: min(65%, 610px);
        max-height: 100%;
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-kicker {
        margin-bottom: clamp(14px, 3svh, 26px);
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-heading {
        font-size: clamp(
            38px,
            min(5.1vw, 7svh),
            58px
        );

        margin-bottom: clamp(12px, 2.5svh, 23px);
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-description {
        font-size: clamp(
            13px,
            min(2vw, 2.5svh),
            16px
        );

        line-height: 1.45;
        margin-bottom: clamp(16px, 3svh, 28px);
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-stats {
        margin-bottom: clamp(16px, 3.5svh, 32px);
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-bottom-line {
        font-size: clamp(8px, 1.1vw, 11px);
    }
}


/* Short landscape tablets / small-height browser windows. */
@media (min-width: 769px) and (max-width: 1024px) and (max-height: 650px) {

    .anwar-medhero-scope.hero.is-fit-screen .hero-inner {
        padding-top: 22px;
        padding-bottom: 20px;
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-kicker {
        margin-bottom: 12px;
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-heading {
        font-size: clamp(34px, 5vw, 48px);
        margin-bottom: 10px;
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-description {
        font-size: 13px;
        line-height: 1.38;
        margin-bottom: 14px;
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-stats {
        margin-bottom: 14px;
    }

    .anwar-medhero-scope.hero.is-fit-screen .stat-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
}


/* =========================================================
   FIT TO SCREEN — MOBILE
========================================================= */

@media (max-width: 768px) {

    .anwar-medhero-scope.hero.is-fit-screen .hero-inner {
        height: 100% !important;

        padding:
            clamp(24px, 5svh, 48px)
            22px
            clamp(145px, 25svh, 260px);
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-kicker {
        margin-bottom: clamp(14px, 3svh, 24px);
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-heading {
        font-size: clamp(
            32px,
            min(8.2vw, 6.6svh),
            55px
        );

        margin-bottom: clamp(13px, 2.7svh, 23px);
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-description {
        font-size: clamp(
            13px,
            min(3.6vw, 2.15svh),
            16px
        );

        line-height: 1.45;
        margin-bottom: clamp(15px, 2.8svh, 24px);
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-stats {
        margin-bottom: clamp(14px, 3svh, 26px);
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-bottom-line {
        font-size: clamp(8px, 2vw, 9px);
    }
}


/* =========================================================
   FIT TO SCREEN — SMALL MOBILE
========================================================= */

@media (max-width: 510px) {

    .anwar-medhero-scope.hero.is-fit-screen .hero-inner {
        padding:
            clamp(22px, 4.5svh, 37px)
            20px
            clamp(130px, 22svh, 220px);
    }

    .anwar-medhero-scope.hero.is-fit-screen::before {
        background-size: auto 89%;
        background-position: 56% bottom;
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-kicker {
        margin-bottom: clamp(12px, 2.4svh, 20px);
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-heading {
        font-size: clamp(
            31px,
            min(9vw, 6.2svh),
            44px
        );

        margin-bottom: clamp(12px, 2.2svh, 20px);
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-description {
        font-size: clamp(12.5px, 3.5vw, 14px);
        line-height: 1.43;
        margin-bottom: clamp(13px, 2.3svh, 20px);
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-stats {
        gap: clamp(5px, 1svh, 9px);
        margin-bottom: 0;
    }

    .anwar-medhero-scope.hero.is-fit-screen .stat-icon {
        width: clamp(34px, 5.2svh, 39px);
        height: clamp(34px, 5.2svh, 39px);
        flex-basis: clamp(34px, 5.2svh, 39px);
    }

    .anwar-medhero-scope.hero.is-fit-screen .stat-content strong {
        font-size: clamp(12px, 3.4vw, 13px);
    }

    .anwar-medhero-scope.hero.is-fit-screen .stat-content span {
        font-size: clamp(10px, 2.9vw, 11px);
    }
}


/* Very short phone screens: compress only when Fit to Screen is ON. */
@media (max-width: 510px) and (max-height: 700px) {

    .anwar-medhero-scope.hero.is-fit-screen .hero-inner {
        padding-top: 18px;
        padding-bottom: 105px;
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-kicker {
        margin-bottom: 10px;
        font-size: 8px;
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-heading {
        font-size: 29px;
        margin-bottom: 9px;
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-description {
        font-size: 12px;
        line-height: 1.35;
        margin-bottom: 10px;
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-stats {
        gap: 4px;
    }

    .anwar-medhero-scope.hero.is-fit-screen .hero-stat,
    .anwar-medhero-scope.hero.is-fit-screen .hero-stat + .hero-stat {
        gap: 9px;
    }

    .anwar-medhero-scope.hero.is-fit-screen .stat-icon {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }

    .anwar-medhero-scope.hero.is-fit-screen .stat-content strong {
        font-size: 11px;
        margin-bottom: 1px;
    }

    .anwar-medhero-scope.hero.is-fit-screen .stat-content span {
        font-size: 9.5px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .anwar-medhero-scope *,
    .anwar-medhero-scope *::before,
    .anwar-medhero-scope *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* =========================================================
   OVERLAY DEVICE FIX
   Keeps the existing layout untouched.

   Elementor's tablet preview commonly resolves at 768px.
   Treat 768px as Tablet for overlay controls, while Mobile
   begins at 767px. These final rules also prevent the Desktop
   overlay class from leaking into Tablet/Mobile.
========================================================= */

@media (min-width: 1025px) {

    .anwar-medhero-scope.hero::after {
        background: none !important;
        opacity: 0 !important;
    }

    .anwar-medhero-scope.hero.overlay-desktop-demo::after {
        background: linear-gradient(
            90deg,
            rgba(255, 255, 255, .32),
            rgba(255, 255, 255, .14) 23%,
            rgba(255, 255, 255, 0) 47%
        ) !important;

        opacity: 1 !important;
    }

    .anwar-medhero-scope.hero.overlay-desktop-solid::after {
        background: var(
            --anwar-overlay-desktop-color,
            #ffffff
        ) !important;

        opacity: var(
            --anwar-overlay-desktop-opacity,
            .20
        ) !important;
    }
}


@media (min-width: 768px) and (max-width: 1024px) {

    .anwar-medhero-scope.hero::after,
    .anwar-medhero-scope.hero.overlay-tablet-none::after {
        background: none !important;
        opacity: 0 !important;
    }

    .anwar-medhero-scope.hero.overlay-tablet-demo::after {
        background: linear-gradient(
            90deg,
            rgba(255, 255, 255, .91),
            rgba(255, 255, 255, .67) 55%,
            rgba(255, 255, 255, .06)
        ) !important;

        opacity: 1 !important;
    }

    .anwar-medhero-scope.hero.overlay-tablet-solid::after {
        background: var(
            --anwar-overlay-tablet-color,
            #ffffff
        ) !important;

        opacity: var(
            --anwar-overlay-tablet-opacity,
            .35
        ) !important;
    }
}


@media (max-width: 767px) {

    .anwar-medhero-scope.hero::after,
    .anwar-medhero-scope.hero.overlay-mobile-none::after {
        background: none !important;
        opacity: 0 !important;
    }

    .anwar-medhero-scope.hero.overlay-mobile-demo::after {
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, .98) 0%,
            rgba(255, 255, 255, .97) 31%,
            rgba(255, 255, 255, .92) 53%,
            rgba(255, 255, 255, .53) 74%,
            rgba(255, 255, 255, .05) 100%
        ) !important;

        opacity: 1 !important;
    }

    .anwar-medhero-scope.hero.overlay-mobile-solid::after {
        background: var(
            --anwar-overlay-mobile-color,
            #ffffff
        ) !important;

        opacity: var(
            --anwar-overlay-mobile-opacity,
            .35
        ) !important;
    }
}


@media (max-width: 510px) {

    .anwar-medhero-scope.hero.overlay-mobile-demo::after {
        background: linear-gradient(
            180deg,
            #ffffff 0%,
            rgba(255, 255, 255, .985) 37%,
            rgba(255, 255, 255, .91) 57%,
            rgba(255, 255, 255, .35) 83%,
            transparent 100%
        ) !important;

        opacity: 1 !important;
    }
}
