.nt-phone-hero,
.nt-site-header__hero-login {
    display: none;
}

@font-face {
    font-family: "Netthub Hero Figtree";
    src: url("../fonts/figtree/Figtree-Bold-latin.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.nt-home-hero__picture {
    display: contents;
}

@media (max-width: 47.9375rem) {
    .nt-home-page .nt-home-hero {
        display: none;
    }

    #home-phone-hero {
        --nt-phone-hero-navy: #13253A;
        position: relative;
        display: flex;
        flex-direction: column;
        min-height: calc(var(--nt-phone-hero-vh, 1vh) * 100 - var(--nt-public-header-height));
        overflow: hidden;
        background: var(--nt-phone-hero-navy);
        color: #D8DEE6;
        font-family: var(--nt-font-family);
    }

    @supports (height: 100svh) {
        #home-phone-hero {
            min-height: calc(100svh - var(--nt-public-header-height));
        }
    }

    #home-phone-hero .nt-phone-hero__photo {
        position: relative;
        flex: 1 0 14rem;
        min-height: 14rem;
        margin-block-end: -5.5rem;
    }

    #home-phone-hero .nt-phone-hero__photo img {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: 58% 30%;
    }

    #home-phone-hero .nt-phone-hero__photo::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to bottom,
            rgba(19, 37, 58, 0.64) 0,
            rgba(19, 37, 58, 0.6) 3rem,
            rgba(19, 37, 58, 0.2) 5.25rem,
            rgba(19, 37, 58, 0) 6.875rem,
            rgba(19, 37, 58, 0) calc(100% - 9.5rem),
            rgba(19, 37, 58, 0.88) calc(100% - 5.5rem),
            var(--nt-phone-hero-navy) calc(100% - 2.5rem)
        );
        pointer-events: none;
    }

    #home-phone-hero .nt-phone-hero__content {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        padding: 0 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
        text-align: start;
    }

    #home-phone-hero .nt-phone-hero__eyebrow {
        margin: 0 0 0.375rem;
        color: #D9B77A;
        font-family: var(--nt-font-family);
        font-size: 0.875rem;
        font-weight: 600;
        line-height: 1.6;
        letter-spacing: 0;
        text-transform: none;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    }

    #home-phone-hero .nt-phone-hero__title {
        max-width: none;
        margin: 0;
        color: #F8F2E8;
        font-family: var(--nt-font-family-display);
        font-size: clamp(2.125rem, 10.5vw, 2.75rem);
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -0.01em;
        text-align: start;
        text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
    }

    #home-phone-hero .nt-phone-hero__title span {
        display: block;
    }

    #home-phone-hero .nt-phone-hero__text {
        max-width: 34rem;
        margin: 1rem 0 0;
        color: #D8DEE6;
        font-family: var(--nt-font-family);
        font-size: 0.96875rem;
        font-weight: 400;
        line-height: 1.8;
    }

    #home-phone-hero .nt-phone-hero__button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 3.25rem;
        margin-block-start: 1.375rem;
        padding: 0.625rem 1.25rem;
        border: 0;
        border-radius: 12px;
        background: #F3ECE0;
        color: #13253A;
        font-family: "Netthub Hero Figtree", var(--nt-font-family);
        font-size: 1.0625rem;
        font-weight: 700;
        line-height: 1.4;
        text-align: center;
        text-decoration: none;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
        unicode-bidi: normal;
    }

    #home-phone-hero .nt-phone-hero__button:hover {
        background: #FFFFFF;
        color: #13253A;
    }

    #home-phone-hero .nt-phone-hero__how {
        display: inline-flex;
        align-items: center;
        align-self: center;
        min-height: 2.75rem;
        margin-block-start: 0.375rem;
        padding-inline: 0.5rem;
        color: #D8DEE6;
        font-family: var(--nt-font-family);
        font-size: 0.875rem;
        font-weight: 400;
        line-height: 1.5;
        text-decoration: underline;
        text-decoration-color: #D9B77A;
        text-decoration-thickness: 1px;
        text-underline-offset: 5px;
    }

    #home-phone-hero .nt-phone-hero__how:hover {
        color: #FFFFFF;
    }

    #home-phone-hero .nt-phone-hero__button:focus-visible,
    #home-phone-hero .nt-phone-hero__how:focus-visible {
        outline: 3px solid #D9B77A;
        outline-offset: 3px;
    }

    body.nt-home-page:has(#home-phone-hero):not(:has(.nt-inapp-tip:not([hidden]), .nt-impersonation-banner)) {
        padding-block-start: 0;
    }

    body.nt-home-page:has(#home-phone-hero):not(:has(.nt-inapp-tip:not([hidden]), .nt-impersonation-banner)) #home-phone-hero {
        min-height: calc(var(--nt-phone-hero-vh, 1vh) * 100);
    }

    @supports (height: 100svh) {
        body.nt-home-page:has(#home-phone-hero):not(:has(.nt-inapp-tip:not([hidden]), .nt-impersonation-banner)) #home-phone-hero {
            min-height: 100svh;
        }
    }

    body.nt-home-page:has(#home-phone-hero):not(:has(.nt-inapp-tip:not([hidden]), .nt-impersonation-banner)) header.nt-site-header--hero-overlay:not(.is-past-hero) {
        border-bottom-color: rgba(255, 255, 255, 0.14);
        background: rgba(19, 37, 58, 0.94);
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }

    body.nt-home-page:has(#home-phone-hero):not(:has(.nt-inapp-tip:not([hidden]), .nt-impersonation-banner)) header.nt-site-header--hero-overlay.is-at-top:not(.is-past-hero) {
        border-bottom-color: transparent;
        background: transparent;
    }

    body.nt-home-page:has(#home-phone-hero):not(:has(.nt-inapp-tip:not([hidden]), .nt-impersonation-banner)) .nt-site-header--hero-overlay:not(.is-past-hero) .nt-site-header__brand img {
        filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
    }

    body.nt-home-page:has(#home-phone-hero):not(:has(.nt-inapp-tip:not([hidden]), .nt-impersonation-banner)) .nt-site-header--hero-overlay:not(.is-past-hero) .nt-site-header__join-mobile {
        display: none;
    }

    body.nt-home-page:has(#home-phone-hero):not(:has(.nt-inapp-tip:not([hidden]), .nt-impersonation-banner)) .nt-site-header--hero-overlay:not(.is-past-hero) .nt-site-header__hero-login {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 2.75rem;
        min-height: 2.75rem;
        padding-inline: 0.5rem;
        color: #FFFFFF;
        font-size: 0.9375rem;
        font-weight: 600;
        line-height: 1.5;
        text-decoration: none;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 0, 0, 0.45);
        white-space: nowrap;
    }

    body.nt-home-page:has(#home-phone-hero):not(:has(.nt-inapp-tip:not([hidden]), .nt-impersonation-banner)) .nt-site-header--hero-overlay:not(.is-past-hero) .nt-mobile-menu summary {
        border-color: rgba(255, 255, 255, 0.75);
        background: rgba(19, 37, 58, 0.2);
    }

    body.nt-home-page:has(#home-phone-hero):not(:has(.nt-inapp-tip:not([hidden]), .nt-impersonation-banner)) .nt-site-header--hero-overlay:not(.is-past-hero) .nt-mobile-menu summary span {
        background: #FFFFFF;
    }

    body.nt-home-page:has(#home-phone-hero):not(:has(.nt-inapp-tip:not([hidden]), .nt-impersonation-banner)) .nt-site-header--hero-overlay:not(.is-past-hero) :is(.nt-site-header__brand, .nt-site-header__hero-login, .nt-mobile-menu summary):focus-visible {
        outline: 3px solid #FFFFFF;
        outline-offset: 2px;
    }
}

@media (max-width: 47.9375rem) {
    html[lang="fa"] #home-phone-hero .nt-phone-hero__button {
        font-family: var(--nt-font-family);
    }

    html[lang="fa"] #home-phone-hero .nt-phone-hero__text-part {
        display: block;
    }

    html[dir="rtl"] body.nt-home-page:has(#home-phone-hero):not(:has(.nt-inapp-tip:not([hidden]), .nt-impersonation-banner)) .nt-site-header--hero-overlay:not(.is-past-hero) .nt-site-header__hero-login {
        font-size: 1rem;
    }
}

@media (min-width: 20rem) and (max-width: 47.9375rem) {
    #home-phone-hero .nt-phone-hero__title span {
        white-space: nowrap;
    }

    html[lang="fa"] #home-phone-hero .nt-phone-hero__title {
        font-size: clamp(2.375rem, 12vw, 3rem);
    }
}

@media (max-width: 19.5rem) {
    #home-phone-hero .nt-phone-hero__photo {
        flex-basis: 20rem;
        min-height: 20rem;
    }

    #home-phone-hero .nt-phone-hero__photo::after {
        background: linear-gradient(
            to bottom,
            rgba(19, 37, 58, 0.64) 0,
            rgba(19, 37, 58, 0.6) 6rem,
            rgba(19, 37, 58, 0.2) 8.25rem,
            rgba(19, 37, 58, 0) 9.5rem,
            rgba(19, 37, 58, 0) calc(100% - 9.5rem),
            rgba(19, 37, 58, 0.88) calc(100% - 5.5rem),
            #13253A calc(100% - 2.5rem)
        );
    }
}

@media (max-width: 19.9375rem) {
    #home-phone-hero .nt-phone-hero__title {
        font-size: clamp(1.625rem, 10.5vw, 2.125rem);
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {
    header.nt-site-header--hero-overlay {
        transition: none !important;
    }
}
