@font-face {
    font-family: IRANSans;
    src: url("../../doctorPanel/assets/fonts/1-IranSansWeb/IRANSansWeb.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: IRANSans;
    src: url("../../doctorPanel/assets/fonts/1-IranSansWeb/IRANSansWeb_Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1440px;
    min-height: clamp(312px, calc(55.83vw - 291px), 513px);
    margin-inline: auto;
    padding: clamp(64px, calc(14.44vw - 92px), 116px) 24px 48px;
    border: 1px solid #3b3e40;
    border-top: 0;
    border-radius: 0 0 24px 24px;
    background: url("../images/home-hero-desktop.webp") center bottom / cover no-repeat,
        linear-gradient(#3e77fa, #5d97fd);
    font-family: IRANSans, sans-serif;
}

.home-hero__title {
    margin: 0;
    color: #eff5ff;
    font-size: clamp(18px, calc(3.33vw - 18px), 30px);
    font-weight: 700;
    line-height: clamp(28px, calc(4.44vw - 20px), 44px);
    text-align: center;
    text-wrap: balance;
}

.home-hero__search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    width: min(100%, clamp(436px, calc(78.89vw - 418px), 720px));
    height: clamp(36px, calc(6.67vw - 36px), 60px);
    margin-top: clamp(16px, calc(2.5vw - 11px), 25px);
    padding: 2px 3px;
    border: 1px solid #e9eef4;
    border-radius: 999px;
    background: #fff;
    color: #5d97fd;
    font-size: clamp(10px, calc(1.67vw - 8px), 16px);
}

.home-hero__keyword {
    flex: 1;
    min-width: 0;
    height: 100%;
    background: transparent;
    color: #161e55;
}

.home-hero__keyword::placeholder {
    color: #5d97fd;
    opacity: 1;
}

.home-hero__keyword:focus {
    outline: none;
}

.home-hero__search:focus-within {
    outline: 2px solid #161e55;
    outline-offset: 2px;
}

.home-hero__submit,
.home-hero__city {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-radius: 999px;
}

.home-hero__submit {
    width: clamp(16px, 1.8vw, 26px);
    margin-inline-start: 4px;
}

.home-hero__submit svg {
    width: clamp(14px, calc(2.78vw - 16px), 24px);
}

.home-hero__city {
    gap: 6px;
    min-width: clamp(62px, calc(12.78vw - 76px), 108px);
    max-width: 45%;
    padding-inline: 8px;
    background: #2d59f0;
    color: #fff;
    white-space: nowrap;
}

.home-hero__city svg {
    flex: none;
    width: clamp(16px, calc(2.22vw - 8px), 24px);
}

.home-hero__city span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-hero__stats {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    width: min(100%, clamp(287px, calc(53.61vw - 293px), 480px));
    min-height: clamp(62px, calc(11.67vw - 64px), 104px);
    margin-top: clamp(18px, calc(3.89vw - 24px), 32px);
    padding: clamp(13px, calc(2.5vw - 14px), 22px) clamp(24px, calc(4.44vw - 24px), 40px);
    border-radius: clamp(9px, 1.04vw, 16px);
    background: #eff9ff;
    color: #64748b;
    text-align: center;
}

.home-hero__stat {
    display: grid;
    align-content: center;
    gap: 3px;
    font-size: clamp(11px, calc(2.5vw - 16px), 20px);
    line-height: 1.5;
}

.home-hero__stat strong {
    font-family: YekanBakh-ExtraBold, IRANSans, sans-serif;
    color: #2d59f0;
    font-size: clamp(14px, calc(2.78vw - 16px), 24px);
    font-weight: 800;
    line-height: 1.15;
}

.home-hero__separator {
    width: 1px;
    flex: 0 0 1px;
    background: #e2e8f0;
}

@media (max-width: 767px) {
    .home-hero {
        min-height: 392px;
        padding: 61px 24px 48px;
        border-width: 0;
        background: url("../images/home-hero-mobile.webp") center top / auto 500px repeat-x,
            linear-gradient(#3770fa, #5d97fd);
    }

    .home-hero__title {
        max-width: 420px;
        font-size: 23.75px;
        line-height: 36px;
    }

    .home-hero__search {
        width: min(calc(100% - 2px), 436px);
        height: 47px;
        margin-top: 25px;
        padding: 3px;
        font-size: 12px;
    }

    .home-hero__submit {
        width: 24px;
        margin-inline-start: 3px;
    }

    .home-hero__submit svg {
        width: 18px;
    }

    .home-hero__city {
        min-width: 81px;
    }

    .home-hero__city svg {
        width: 22px;
    }

    .home-hero__stats {
        width: min(100%, 436px);
        min-height: 81px;
        margin-top: 24px;
        padding: 16px 12px;
        border-radius: 12px;
    }

    .home-hero__stat {
        font-size: 14px;
    }

    .home-hero__stat strong {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .home-hero {
        padding-inline: 16px;
    }

    .home-hero__title {
        font-size: 21px;
        line-height: 32px;
    }
}
