/* ============================================================
   EPC — Inner Page Header Banner
   Used by: heropage, heropageuni, heropagecountry, herocorner
   HTML: section.header-slider.single_page
   ============================================================ */


/* ============================================================
   1. ROOT SECTION
   Background image is set inline by the blade template.
   ============================================================ */
.header-slider.single_page {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 3.25rem;
    min-height: 360px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 40%;
    border-bottom: 0.25rem solid #C2C2C2;
    font-family: Roboto, sans-serif;
    color: #fff;
    z-index: 2;
    transition: background 0.3s;
}


/* ============================================================
   2. HEADER-DECORATE — Blue Diagonal Overlay
   Hidden off-screen on desktop; slides into view on mobile
   via the @media rule below.
   ============================================================ */
.header-slider.single_page .header-decorate {
    position: absolute;
    top: -154%;       /* pushed off-screen on desktop */
    left: 0;
    width: 100%;
    background: rgba(0, 161, 248, 0.85);
    border-radius: 0.625rem;
    pointer-events: none;
}

.header-slider.single_page .header-decorate .header-decorate__inner {
    position: absolute;
    border-radius: 0.625rem;
    background: linear-gradient(
        188.65deg,
        rgba(0, 102, 255, 0.85) -31.31%,
        rgba(0, 54,  156, 0.85)  31.43%,
        rgba(0, 49,  196, 0.85) 114.40%,
        rgba(1, 145, 246, 0.85) 114.41%
    );
}


/* ============================================================
   3. DECORATIVE ARROWS
   .header_arrows wraps two SVG arrow images (arr-transparent
   + arr-white) positioned top-right on desktop, hidden mobile.
   Also covers the two standalone .arrow-decorate images.
   ============================================================ */

/* Arrow-image wrapper div */
.header-slider.single_page .header_arrows {
    position: absolute;
    top: 0;
    right: 215px;
    z-index: 2;
    pointer-events: none;
}

.header-slider.single_page .header_arrows .rectangle-decorate-block__arr-white {
    position: absolute;
    top: -77px;
    left: -28px;
    z-index: 3;
}

.header-slider.single_page .header_arrows .rectangle-decorate-block__arr-transparent {
    position: absolute;
    top: -77px;
    left: -5px;
    z-index: 3;
}

/* Left arrow-decorate SVG */
.header-slider.single_page .arrow-decorate--left {
    position: absolute;
    top: -0.25rem;
    left: 0;
    z-index: 10;
    pointer-events: none;
}

/* Right arrow-decorate SVG — hidden on desktop (too wide) */
.header-slider.single_page .arrow-decorate--right {
    display: none;
}


/* ============================================================
   4. CONNECTION INFO BAR
   Top bar: phone numbers, email, stream search, Apply button.
   ============================================================ */
.header-slider.single_page .connection-info {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.875rem;
    padding-bottom: 1.25rem;
    z-index: 3;
}

.header-slider.single_page .connection-info__item {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.8125rem;
    white-space: nowrap;
}


/* ============================================================
   5. NAVIGATION ITEMS — Phone & Email
   ============================================================ */
.header-slider.single_page .navigation-item {
    display: flex;
    align-items: center;
}

.header-slider.single_page .navigation-item--phones {
    margin-right: 2.375rem;
    font-size: 0.8125rem;
}

.header-slider.single_page .navigation-item__inner {
    display: flex;
    flex-direction: column;
}

.header-slider.single_page .container_navigation-item__link {
    display: flex;
    flex-direction: column;
}

.header-slider.single_page .navigation-item__icon {
    margin-right: 0.625rem;
    border-radius: 50%;
    background-color: transparent;
    height: 100%;
}

.header-slider.single_page .navigation-item__link {
    display: block;
    font-family: Roboto, sans-serif;
    color: #fff;
    letter-spacing: -0.02em;
    white-space: nowrap;
    text-decoration: none;
}

.header-slider.single_page .navigation-item__link:hover {
    text-decoration: underline;
    color: #fff;
}


/* ============================================================
   6. STREAM SEARCH DROPDOWN
   ============================================================ */
.header-slider.single_page .search {
    position: relative;
    margin-right: 60px;
}

.header-slider.single_page .search__input {
    width: 233px;
    border: 1px solid #0031C4;
    background: #fff;
    border-radius: 21px;
    padding: 9px 17px;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    line-height: 16px;
    color: #333;
    cursor: pointer;
    appearance: none;
}

.header-slider.single_page .search__btn {
    position: absolute;
    top: -0.0625rem;
    right: -9px;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(188.21deg, #0066ff -8.5%, #00369c 51.46%, #0031c4 130.73%, #018ff6 130.74%);
    cursor: pointer;
}

.header-slider.single_page .search__btn img {
    width: 18px;
    height: 18px;
}


/* ============================================================
   7. APPLY ONLINE BUTTON
   ============================================================ */
.header-slider.single_page .connection-info__btn,
.header-slider.single_page .btn--header {
    padding: 6px 37px;
    background: linear-gradient(186.68deg, #ff0000 9.11%, #ce0000 98.12%);
    border-radius: 1.875rem;
    font-weight: bold;
    font-size: 16px;
    color: #fff;
    border: none;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.header-slider.single_page .connection-info__btn:hover,
.header-slider.single_page .btn--header:hover {
    background: linear-gradient(188.21deg, #0066ff -8.5%, #00369c 51.46%, #0031c4 130.73%, #0191f6 130.74%);
    color: #fff;
}


/* ============================================================
   8. CONTENT BLOCK — Page Title + Subtitle
   ============================================================ */
.header-slider.single_page .header-slider__block {
    position: relative;
    max-width: 445px;
    z-index: 2;
}

.header-slider.single_page .head_slider_title_container {
    display: flex;
    align-items: center;
}

/* h1 page title */
.header-slider.single_page .header-slider__mail-title {
    font-style: italic;
    font-weight: 500;
    font-size: 4.25rem;          /* ~68px */
    text-transform: uppercase;
    margin-top: 1.875rem;
    margin-bottom: 0.25rem;
    line-height: 1;
    color: #fff;
}

/* "Edu plan / Consultants" subtitle row */
.header-slider.single_page .subtitle-wrap {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.header-slider.single_page .subtitle-wrap .dots-img {
    margin-right: 1.5rem;
    margin-top: 0.4375rem;
    width: 4rem;
    height: 3.125rem;
    flex-shrink: 0;
}

.header-slider.single_page .header-slider__subtitle {
    font-style: italic;
    font-weight: bold;
    font-size: 1.75rem;
    color: #FF0000;
    line-height: 1.2;
}

.header-slider.single_page .header-subtitle-decorate {
    display: block;
    margin-left: -3.125rem;
}


/* ============================================================
   9. TABLET — max-width 1200px
   Slight adjustments before the full mobile layout kicks in.
   ============================================================ */
@media screen and (max-width: 1200px) {
    .header-slider.single_page .search {
        margin-right: 30px;
    }
    .header-slider.single_page .search__input {
        width: 190px;
    }
    .header-slider.single_page .navigation-item--phones {
        margin-right: 1.5rem;
    }
    .header-slider.single_page .header-slider__mail-title {
        font-size: 3.5rem;
    }
}


/* ============================================================
   10. MOBILE — max-width 991.99px
   Section shrinks to fixed height; connection bar hides;
   header-decorate blue panel appears as diagonal overlay;
   title centered and scaled down.
   ============================================================ */
@media screen and (max-width: 991.99px) {

    /* Root section */
    .header-slider.single_page {
        overflow: hidden;
        border-radius: 0 0 1.25rem 1.25rem;
        height: 24.6875rem;        /* 395px */
        margin-bottom: 1.5625rem;
        background-position: 50% 0;
        background-size: 100% auto;
        padding-top: 0;
    }

    /* Hide the contact/search bar completely */
    .header-slider.single_page .connection-info {
        display: none;
    }

    /* Hide decorative arrows on mobile */
    .header-slider.single_page .header_arrows,
    .header-slider.single_page .arrow-decorate--left,
    .header-slider.single_page .header-decorate img,
    .header-slider.single_page .decor-arrow {
        display: none;
    }

    /* Blue diagonal overlay panel */
    .header-slider.single_page .header-decorate {
        position: absolute;
        top: 15rem;
        left: 1.8125rem;
        width: 200%;
        height: 12.5rem;
        transform-origin: 0 0;
        transform: rotate(2.5deg) skew(-58deg);
        background: rgba(0, 161, 248, 0.85);
        box-shadow: 0 -0.125rem 0.875rem rgba(0, 0, 0, 0.25);
        border-radius: 0.625rem;
    }

    .header-slider.single_page .header-decorate .header-decorate__inner {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0.6875rem;
        left: 1.25rem;
        border-radius: 0.625rem;
        background: linear-gradient(
            188.65deg,
            rgba(0, 102, 255, 0.85) -31.31%,
            rgba(0, 54,  156, 0.85)  31.43%,
            rgba(0, 49,  196, 0.85) 114.40%,
            rgba(1, 145, 246, 0.85) 114.41%
        );
    }

    /* Content block: overlap the blue panel */
    .header-slider.single_page .header-slider__block {
        position: absolute;
        top: 12.5rem;
        left: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    /* Title container: centered */
    .header-slider.single_page .head_slider_title_container {
        width: 100%;
        justify-content: center;
    }

    /* h1 page title */
    .header-slider.single_page .header-slider__mail-title {
        font-weight: 600;
        font-size: 2.02rem;
        text-align: center;
        margin-top: 0;
        margin-bottom: 0;
        text-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.25);
    }

    /* Subtitle row */
    .header-slider.single_page .subtitle-wrap {
        justify-content: center;
        margin-top: 0.375rem;
    }

    /* Hide dots image on mobile */
    .header-slider.single_page .subtitle-wrap .dots-img {
        display: none;
    }

    /* "Edu plan / Consultants" subtitle */
    .header-slider.single_page .header-slider__subtitle {
        display: block;
        text-align: center;
        font-size: 0.875rem;
        text-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.25);
        position: relative;
    }

    /* Decorative arrow pseudo-elements beside subtitle */
    .header-slider.single_page .header-slider__subtitle::before,
    .header-slider.single_page .header-slider__subtitle::after {
        content: "";
        position: absolute;
        top: 7.875rem;
        left: 0.9375rem;
        width: 2.5rem;
        height: 1.9375rem;
        background: url('/edu/img/icons/dotted_arrow_mobile.svg') 0 0 / 2.5rem auto no-repeat;
    }

    .header-slider.single_page .header-slider__subtitle::after {
        left: auto;
        right: 0.9375rem;
        background:
            url('/edu/img/icons/arrow_mobile_right_2.svg') 0.3125rem 0 / 1.375rem auto no-repeat,
            url('/edu/img/icons/arrow_mobile_right_1.svg') 0       0 / 1.375rem auto no-repeat;
    }

    /* Inline subtitle span */
    .header-slider.single_page .header-subtitle-decorate {
        margin: 0;
        display: inline-block;
    }
}


/* ============================================================
   11. SMALL PHONES — max-width 480px
   ============================================================ */
@media screen and (max-width: 480px) {
    .header-slider.single_page {
        height: 22rem;
    }
    .header-slider.single_page .header-slider__mail-title {
        font-size: 1.7rem;
    }
}
