/* =========================================================
   MEDICAL HERO
========================================================= */

.medical-hero {

    --blue: #0877ff;
    --blue-dark: #0758c9;
    --cyan: #27c8ff;

    --text: #10233f;
    --muted: #64748b;

    position: relative;

    width: 100%;
    min-height: 650px;

    overflow: hidden;

    direction: rtl;

    background:
        radial-gradient(
            circle at 76% 45%,
            rgba(39,200,255,.14),
            transparent 31%
        ),
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #eef6ff 50%,
            #f9fcff 100%
        );

    font-family: inherit;

    isolation: isolate;
}


/* =========================================================
   BACKGROUND
========================================================= */

.mh-bg {

    position: absolute;

    inset: 0;

    pointer-events: none;

    z-index: -1;
}


.mh-grid {

    position: absolute;

    width: 780px;
    height: 780px;

    right: -210px;
    top: -100px;

    opacity: .18;

    background-image:
        linear-gradient(
            rgba(8,119,255,.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(8,119,255,.08) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    mask-image:
        radial-gradient(
            circle,
            black 20%,
            transparent 72%
        );

    animation: mhGridMove 20s linear infinite;
}


@keyframes mhGridMove {

    to {
        transform: translate3d(-45px,45px,0);
    }

}


.mh-glow {

    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(65px);
}


.mh-glow-1 {

    width: 260px;
    height: 260px;

    right: 24%;
    top: 10%;

    background: rgba(39,200,255,.16);

    animation:
        mhGlowFloat 8s ease-in-out infinite;
}


.mh-glow-2 {

    width: 190px;
    height: 190px;

    right: 5%;
    bottom: 0;

    background: rgba(8,119,255,.10);

    animation:
        mhGlowFloat 10s ease-in-out infinite reverse;
}


.mh-glow-3 {

    width: 160px;
    height: 160px;

    left: 8%;
    top: 20%;

    background: rgba(79,129,255,.07);
}


@keyframes mhGlowFloat {

    0%,
    100% {
        transform: translate3d(0,0,0);
    }

    50% {
        transform: translate3d(0,-20px,0);
    }

}


/* =========================================================
   CONTAINER
========================================================= */

.medical-hero-container {

    position: relative;

    z-index: 2;

    width: min(
        1180px,
        calc(100% - 50px)
    );

    min-height: 650px;

    margin: auto;

    display: grid;

    grid-template-columns:
        .9fr
        1.1fr;

    align-items: center;

    gap: 50px;
}


/* =========================================================
   CONTENT
========================================================= */

.mh-content {

    position: relative;

    z-index: 5;

    max-width: 560px;

    text-align: right;
}


.mh-eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 8px 13px;

    border-radius: 50px;

    color: var(--blue);

    background: rgba(255,255,255,.72);

    border: 1px solid rgba(8,119,255,.11);

    box-shadow:
        0 8px 30px rgba(20,80,140,.06);

    backdrop-filter: blur(10px);

    font-size: 13px;

    font-weight: 700;
}


.mh-pulse {

    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #21c77a;

    animation: mhPulse 1.8s infinite;
}


@keyframes mhPulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(33,199,122,.35);
    }

    70% {
        box-shadow:
            0 0 0 8px rgba(33,199,122,0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(33,199,122,0);
    }

}


/* =========================================================
   TITLE
========================================================= */

.mh-title {

    margin: 20px 0 16px;

    color: var(--text);

    font-size: clamp(
        32px,
        3.4vw,
        45px
    );

    line-height: 1.45;

    font-weight: 900;

    letter-spacing: -1px;
}


.mh-title::after {

    content: "";

    display: block;

    width: 62px;
    height: 4px;

    margin-top: 17px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--cyan)
        );
}


/* =========================================================
   DESCRIPTION
========================================================= */

.mh-description {

    max-width: 510px;

    margin: 0;

    color: var(--muted);

    font-size: 16px;

    line-height: 2;
}


/* =========================================================
   ACTIONS
========================================================= */

.mh-actions {

    display: flex;

    align-items: center;

    gap: 23px;

    margin-top: 28px;
}


.mh-button {

    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    padding: 14px 20px;

    min-height: 48px;

    border-radius: 14px;

    color: #fff !important;

    background:
        linear-gradient(
            135deg,
            #0877ff,
            #075fd2
        );

    text-decoration: none !important;

    font-size: 13px;

    font-weight: 800;

    box-shadow:
        0 14px 32px rgba(8,119,255,.23);

    overflow: hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


.mh-button::before {

    content: "";

    position: absolute;

    left: -120%;
    top: 0;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.28),
            transparent
        );

    transform: skewX(-20deg);

    transition: left .7s ease;
}


.mh-button:hover {

    transform: translateY(-3px);

    box-shadow:
        0 20px 40px rgba(8,119,255,.30);
}


.mh-button:hover::before {
    left: 140%;
}


.mh-button svg {

    width: 19px;
    height: 19px;

    flex: 0 0 19px;

    transition:
        transform .3s ease;
}


.mh-button:hover svg {
    transform: translateX(-4px);
}


.mh-small-info {

    display: flex;

    align-items: center;

    gap: 8px;

    color: #64748b;

    font-size: 11px;
}


.mh-check {

    display: grid;

    place-items: center;

    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    border-radius: 50%;

    color: var(--blue);

    background: #e8f3ff;
}


.mh-check svg {

    width: 15px;
    height: 15px;
}


/* =========================================================
   VISUAL
========================================================= */

.mh-visual {

    position: relative;

    height: 560px;

    display: grid;

    place-items: center;
}


/* =========================================================
   CIRCLES
========================================================= */

.mh-circle {

    position: absolute;

    border: 1px solid rgba(8,119,255,.12);

    border-radius: 50%;

    transform-origin: center;
}


.mh-circle-1 {

    width: 520px;
    height: 520px;

    animation:
        mhRotate 30s linear infinite;
}


.mh-circle-2 {

    width: 400px;
    height: 400px;

    border-style: dashed;

    animation:
        mhRotate 22s linear infinite reverse;
}


.mh-circle-3 {

    width: 620px;
    height: 620px;

    opacity: .4;

    animation:
        mhRotate 45s linear infinite;
}


@keyframes mhRotate {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   MAIN OBJECT
========================================================= */

.mh-object {

    position: relative;

    width: 310px;
    height: 310px;

    display: grid;

    place-items: center;
}


.mh-object-glow {

    position: absolute;

    width: 270px;
    height: 270px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(39,200,255,.25),
            rgba(8,119,255,.07) 45%,
            transparent 72%
        );

    filter: blur(8px);

    animation:
        mhCorePulse 4s ease-in-out infinite;
}


@keyframes mhCorePulse {

    0%,
    100% {
        transform: scale(.95);
        opacity: .65;
    }

    50% {
        transform: scale(1.07);
        opacity: 1;
    }

}


/* =========================================================
   INNER CIRCLE
========================================================= */

.mh-object-inner {

    position: relative;

    width: 230px;
    height: 230px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.98),
            rgba(235,246,255,.92)
        );

    border:
        1px solid rgba(255,255,255,.95);

    box-shadow:

        0 30px 70px rgba(10,80,140,.16),

        inset 0 0 50px rgba(39,200,255,.08);

    overflow: hidden;

    backdrop-filter: blur(12px);
}


.mh-object-inner::before {

    content: "";

    position: absolute;

    inset: 15px;

    border-radius: 50%;

    border:
        1px solid rgba(8,119,255,.08);

    pointer-events: none;

    z-index: 1;
}


/* =========================================================
   ICON CONTAINER
========================================================= */

.mh-icons {

    position: absolute;

    inset: 0;

    display: grid;

    place-items: center;

    z-index: 2;
}


/* =========================================================
   SVG ICON
========================================================= */

.mh-medical-icon {

    position: absolute;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 10px;

    width: 150px;
    height: 150px;

    opacity: 0;

    transform:
        scale(.72)
        rotate(-8deg);

    pointer-events: none;

    transition:
        opacity .45s ease,
        transform .65s cubic-bezier(.16,1,.3,1);
}


.mh-medical-icon.is-active {

    opacity: 1;

    transform:
        scale(1)
        rotate(0);

}


.mh-medical-icon img {

    display: block;

    width: 105px;
    height: 105px;

    object-fit: contain;

    /*
     * SVG files remain their own source.
     * The default blue appearance is handled
     * when SVGs use currentColor.
     */

    filter: none;

    user-select: none;

    -webkit-user-drag: none;
}


/*
 * If SVG itself is blue this is perfect.
 * For uploaded SVGs with another color,
 * use monochrome blue filter.
 */

.mh-medical-icon.is-active img {

    filter:
        brightness(0)
        saturate(100%)
        invert(38%)
        sepia(97%)
        saturate(2431%)
        hue-rotate(201deg)
        brightness(101%)
        contrast(103%);
}


/* =========================================================
   ICON TITLE
========================================================= */

.mh-icon-title {

    padding: 5px 10px;

    border-radius: 20px;

    color: #49617e;

    background: rgba(255,255,255,.75);

    font-size: 10px;

    font-weight: 800;

    white-space: nowrap;

    box-shadow:
        0 5px 15px rgba(20,70,110,.06);
}


/* =========================================================
   EMPTY ICON
========================================================= */

.mh-empty-icon {

    display: grid;

    place-items: center;

    width: 90px;
    height: 90px;

    border-radius: 50%;

    color: var(--blue);

    border:
        2px solid rgba(8,119,255,.15);

    font-size: 45px;

    font-weight: 300;
}


/* =========================================================
   INNER RING
========================================================= */

.mh-inner-ring {

    position: absolute;

    inset: 25px;

    border-radius: 50%;

    border:
        1px solid rgba(8,119,255,.07);

    pointer-events: none;

    z-index: 1;
}


/* =========================================================
   SCANNER
========================================================= */

.mh-scanner {

    position: absolute;

    left: 5px;
    right: 5px;

    height: 2px;

    z-index: 4;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(39,200,255,.8),
            transparent
        );

    animation:
        mhScanner 3.5s ease-in-out infinite;
}


@keyframes mhScanner {

    0% {
        transform: translateY(-105px);
        opacity: 0;
    }

    15% {
        opacity: .9;
    }

    85% {
        opacity: .9;
    }

    100% {
        transform: translateY(105px);
        opacity: 0;
    }

}


/* =========================================================
   LABEL
========================================================= */

.mh-object-label {

    position: absolute;

    right: -48px;
    bottom: 18px;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 9px 13px;

    border-radius: 11px;

    color: #263d5b;

    background:
        rgba(255,255,255,.84);

    border:
        1px solid rgba(8,119,255,.10);

    box-shadow:
        0 15px 35px rgba(30,80,120,.10);

    backdrop-filter: blur(12px);

    font-size: 11px;

    font-weight: 800;

    animation:
        mhLabelFloat 4s ease-in-out infinite;
}


@keyframes mhLabelFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

}


.mh-label-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #21c77a;

    box-shadow:
        0 0 0 4px rgba(33,199,122,.08);
}


/* =========================================================
   FLOATING CARDS
========================================================= */

.mh-floating-card {

    position: absolute;

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 11px 13px;

    border-radius: 13px;

    color: #304967;

    background:
        rgba(255,255,255,.78);

    border:
        1px solid rgba(255,255,255,.95);

    box-shadow:
        0 20px 45px rgba(20,70,110,.11);

    backdrop-filter: blur(14px);

    font-size: 10px;

    font-weight: 800;

    white-space: nowrap;

    z-index: 5;
}


.mh-card-icon {

    display: grid;

    place-items: center;

    width: 30px;
    height: 30px;

    border-radius: 9px;

    color: var(--blue);

    background: #eaf4ff;
}


.mh-card-icon svg {

    width: 16px;
    height: 16px;
}


.mh-card-1 {

    top: 95px;
    right: 20px;

    animation:
        mhCardFloat1 5s ease-in-out infinite;
}


.mh-card-2 {

    bottom: 90px;
    left: 20px;

    animation:
        mhCardFloat2 6s ease-in-out infinite;
}


.mh-card-3 {

    top: 165px;
    left: 5px;

    animation:
        mhCardFloat1 7s ease-in-out infinite reverse;
}


.mh-card-3 b {

    display: grid;

    place-items: center;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    color: #fff;

    background: #20bd78;
}


@keyframes mhCardFloat1 {

    0%,
    100% {
        transform: translate3d(0,0,0);
    }

    50% {
        transform: translate3d(7px,-12px,0);
    }

}


@keyframes mhCardFloat2 {

    0%,
    100% {
        transform: translate3d(0,0,0);
    }

    50% {
        transform: translate3d(-8px,10px,0);
    }

}


/* =========================================================
   PARTICLES
========================================================= */

.mh-particle {

    position: absolute;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #45bfff;

    box-shadow:
        0 0 14px rgba(39,200,255,.75);

    animation:
        mhParticle 5s ease-in-out infinite;
}


.p1 {
    top: 80px;
    left: 30%;
}

.p2 {
    top: 30%;
    right: 8%;
    animation-delay: 1s;
}

.p3 {
    bottom: 20%;
    right: 20%;
    animation-delay: 2s;
}

.p4 {
    bottom: 10%;
    left: 35%;
    animation-delay: 3s;
}

.p5 {
    top: 20%;
    left: 10%;
    animation-delay: 1.5s;
}


@keyframes mhParticle {

    0%,
    100% {
        transform: translate3d(0,0,0) scale(1);
        opacity: .4;
    }

    50% {
        transform: translate3d(10px,-20px,0) scale(1.8);
        opacity: 1;
    }

}


/* =========================================================
   BOTTOM
========================================================= */

.mh-bottom {

    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    height: 65px;

    z-index: 10;

    border-top:
        1px solid rgba(8,119,255,.08);

    background:
        rgba(255,255,255,.45);

    backdrop-filter: blur(10px);
}


.mh-bottom-inner {

    width: min(
        1180px,
        calc(100% - 50px)
    );

    height: 100%;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 25px;

    color: #718096;

    font-size: 11px;

    font-weight: 700;
}


.mh-bottom-inner i {

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #56bfff;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .medical-hero {

        min-height: auto;
    }


    .medical-hero-container {

        width: min(
            calc(100% - 32px),
            650px
        );

        padding:
            65px 0
            85px;

        display: flex;

        flex-direction: column;

        gap: 15px;
    }


    .mh-content {

        width: 100%;

        max-width: 600px;

        text-align: center;
    }


    .mh-eyebrow {

        margin-inline: auto;
    }


    .mh-title {

        font-size: 34px;

        letter-spacing: -.7px;
    }


    .mh-title::after {

        margin:
            17px
            auto
            0;
    }


    .mh-description {

        margin-inline: auto;

        font-size: 15px;
    }


    .mh-actions {

        justify-content: center;

        flex-wrap: wrap;
    }


    .mh-visual {

        width: 100%;

        height: 430px;

        transform: scale(.82);
    }


    .mh-circle-1 {

        width: 420px;
        height: 420px;
    }


    .mh-circle-2 {

        width: 330px;
        height: 330px;
    }


    .mh-circle-3 {

        width: 500px;
        height: 500px;
    }


    .mh-card-1 {

        right: 5%;
    }


    .mh-card-2 {

        left: 4%;
    }


    .mh-bottom {

        position: relative;

        height: 55px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {

    .medical-hero-container {

        width: calc(100% - 24px);

        padding-top: 50px;
    }


    .mh-title {

        font-size: 28px;

        line-height: 1.5;
    }


    .mh-description {

        font-size: 14px;

        line-height: 1.9;
    }


    .mh-actions {

        flex-direction: column;

        gap: 14px;
    }


    .mh-button {

        width: 100%;

        max-width: 300px;
    }


    .mh-small-info {

        font-size: 10px;
    }


    .mh-visual {

        height: 350px;

        transform: scale(.63);

        margin:
            -20px 0;
    }


    .mh-bottom-inner {

        width: calc(100% - 20px);

        gap: 9px;

        font-size: 8.5px;

        white-space: nowrap;
    }


    .mh-object-label {

        right: -35px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .medical-hero *,
    .medical-hero *::before,
    .medical-hero *::after {

        animation: none !important;

        transition: none !important;
    }

}



/* =========================================
   کاهش فاصله هیرو در موبایل
========================================= */

@media (max-width: 767px) {

    /* ارتفاع بخش تصویری کمتر شود */
    .mh-visual {
        height: 300px !important;
        margin-top: -35px !important;
        margin-bottom: -45px !important;
        transform: scale(.62) !important;
    }

    /* فاصله کلی کانتینر کمتر شود */
    .medical-hero-container {
        padding-top: 45px !important;
        padding-bottom: 45px !important;
        gap: 5px !important;
    }

    /* نوار سه‌تایی پایین نزدیک‌تر شود */
    .mh-bottom {
        height: 52px !important;
    }

    .mh-bottom-inner {
        height: 52px !important;
    }
}