/* Mobile header repair and visual refresh for the existing The7 header. */
@media screen and (max-width: 1000px) {
    .masthead:not(.side-header) {
        background: #fff !important;
        border: 0 !important;
        box-shadow: 0 8px 24px rgba(13, 17, 124, 0.12);
        position: relative;
        z-index: 9500;
    }

    .masthead .mobile-header-bar {
        align-items: center !important;
        background: #fff;
        border-bottom: 3px solid #f8d405;
        box-sizing: border-box;
        min-height: 78px !important;
        padding: 8px 16px !important;
    }

    .masthead .mobile-header-bar .mobile-branding {
        align-items: center;
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
        order: 0 !important;
    }

    .mobile-branding > a {
        align-items: center;
        display: flex;
        padding: 0 !important;
    }

    .mobile-branding img {
        height: auto !important;
        max-height: 58px !important;
        max-width: 126px !important;
        width: auto !important;
    }

    .masthead .mobile-mini-widgets {
        display: none !important;
    }

    .idea-mobile-call {
        align-items: center;
        background: rgba(13, 17, 124, 0.07);
        border: 1px solid rgba(13, 17, 124, 0.12);
        border-radius: 999px;
        box-sizing: border-box;
        color: #0d117c !important;
        display: inline-flex;
        flex: 0 0 auto;
        font: 700 13px/1 "Open Sans", Arial, sans-serif;
        gap: 7px;
        min-height: 44px;
        order: 1;
        padding: 0 13px;
        text-decoration: none !important;
        transition: background-color 180ms ease, transform 180ms ease;
    }

    .idea-mobile-call:hover,
    .idea-mobile-call:focus {
        background: #f8d405;
        color: #0d117c !important;
        outline: 2px solid transparent;
        transform: translateY(-1px);
    }

    .idea-mobile-call svg {
        fill: currentColor;
        height: 18px;
        width: 18px;
    }

    .masthead .mobile-header-bar .mobile-navigation {
        align-items: center;
        display: flex;
        flex: 0 0 auto;
        justify-content: flex-end;
        order: 2 !important;
    }

    .mobile-header-bar .dt-mobile-menu-icon {
        align-items: center;
        background: #0d117c;
        border-radius: 14px;
        box-shadow: 0 8px 18px rgba(13, 17, 124, 0.22);
        box-sizing: border-box;
        height: 48px;
        justify-content: center;
        margin: 0 0 0 10px !important;
        padding: 0 !important;
        width: 48px;
    }

    .mobile-header-bar .dt-mobile-menu-icon:hover,
    .mobile-header-bar .dt-mobile-menu-icon:focus {
        background: #10169d;
        outline: 3px solid rgba(248, 212, 5, 0.65);
        outline-offset: 2px;
    }

    .mobile-header-bar .dt-mobile-menu-icon .lines,
    .mobile-header-bar .dt-mobile-menu-icon .lines:before,
    .mobile-header-bar .dt-mobile-menu-icon .lines:after {
        background-color: #fff !important;
    }

    .dt-mobile-header {
        background: linear-gradient(155deg, #111697 0%, #090d64 100%) !important;
        box-shadow: -18px 0 45px rgba(5, 7, 51, 0.3);
        box-sizing: border-box;
        padding: 84px 28px 32px !important;
    }

    .dt-mobile-header:before {
        color: #fff;
        content: "Menü";
        font: 800 18px/1 "Open Sans", Arial, sans-serif;
        left: 28px;
        letter-spacing: 0.02em;
        position: absolute;
        top: 29px;
    }

    .dt-mobile-header .mobile-main-nav {
        margin: 0 !important;
    }

    .dt-mobile-header .mobile-main-nav > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    }

    .dt-mobile-header .mobile-main-nav > li:before {
        display: none !important;
    }

    .dt-mobile-header .mobile-main-nav > li > a {
        align-items: center;
        display: flex;
        min-height: 54px;
        padding: 4px 6px !important;
    }

    .dt-mobile-header .mobile-main-nav li > a,
    .dt-mobile-header .mobile-main-nav li > a .menu-text {
        background: none !important;
        color: #fff !important;
        font: 700 15px/1.35 "Open Sans", Arial, sans-serif !important;
        letter-spacing: 0.025em;
        text-transform: none !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: currentColor !important;
    }

    .dt-mobile-header .mobile-main-nav li.act > a,
    .dt-mobile-header .mobile-main-nav li.act > a .menu-text,
    .dt-mobile-header .mobile-main-nav li > a:hover,
    .dt-mobile-header .mobile-main-nav li > a:hover .menu-text,
    .dt-mobile-header .mobile-main-nav li > a:focus,
    .dt-mobile-header .mobile-main-nav li > a:focus .menu-text {
        color: #f8d405 !important;
    }

    .dt-mobile-header .mobile-main-nav li.act > a {
        padding-left: 16px !important;
        position: relative;
    }

    .dt-mobile-header .mobile-main-nav li.act > a:before {
        background: #f8d405;
        border-radius: 99px;
        content: "";
        height: 24px;
        left: 0;
        position: absolute;
        width: 4px;
    }

    .dt-mobile-header .fb-link a .fa {
        color: #fff !important;
        font-size: 24px !important;
    }

    .dt-mobile-header .mobile-mini-widgets-in-menu {
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        display: block !important;
        margin-top: 28px;
        padding-top: 22px;
    }

    .dt-mobile-header .mobile-mini-widgets-in-menu > * {
        color: rgba(255, 255, 255, 0.86) !important;
        display: block !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
        margin: 0 0 9px !important;
    }

    .dt-mobile-header .mobile-mini-widgets-in-menu p {
        margin: 0 !important;
    }

    .dt-close-mobile-menu-icon {
        height: 54px !important;
        width: 54px !important;
    }

    .dt-close-mobile-menu-icon span {
        background: #f8d405 !important;
        border-radius: 0 0 0 14px;
        color: #0d117c !important;
        height: 54px;
        width: 54px;
    }

    .dt-close-mobile-menu-icon span:before,
    .dt-close-mobile-menu-icon span:after {
        background: #0d117c !important;
    }

    .mobile-sticky-header-overlay.active {
        background: rgba(5, 7, 40, 0.62);
        backdrop-filter: blur(3px);
    }
}

@media screen and (max-width: 360px) {
    .masthead .mobile-header-bar {
        min-height: 72px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .mobile-branding img {
        max-height: 52px !important;
        max-width: 112px !important;
    }

    .idea-mobile-call {
        height: 42px;
        justify-content: center;
        min-height: 42px;
        padding: 0;
        width: 42px;
    }

    .idea-mobile-call span {
        display: none;
    }

    .mobile-header-bar .dt-mobile-menu-icon {
        height: 44px;
        margin-left: 8px !important;
        width: 44px;
    }

    .dt-mobile-header {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .idea-mobile-call,
    .mobile-header-bar .dt-mobile-menu-icon {
        transition: none !important;
    }
}
