/* --------------------------------------
   FONTS
-------------------------------------- */
@font-face {
    font-family: 'Euclid Circular A Regular';
    src: url(/font/Euclid\ Circular\ A\ Regular.woff) format('woff'),
        url(/font/Euclid\ Circular\ A\ Regular.woff2) format('woff2');
}

@font-face {
    font-family: 'Austin News Headline Light';
    src: url(../font/Austin\ News\ Headline\ Light.woff) format('woff'),
        url(../font/Austin\ News\ Headline\ Light.woff2) format('woff2');
}
#header-spacer {
  height: 0;
  transition: height 0.3s ease;
}
/* --------------------------------------
   HEADER BASE
-------------------------------------- */
#smartHeader {
    width: 85%;
    background: #111;
    color: #fff;
    padding: 8px 0;
    text-align: center;
    font-size: 22px;
    position: fixed;
    left: 50%;
    bottom: 0;
    transition: all .5s ease;
    z-index: 9999;
    transform: translate(-50%);
}

/* Scroll hone ke baad TOP par chala jaye */
#smartHeader.fixedTop {
    bottom: auto;
    top: 0;
    width: 100%;
}

.inner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    backdrop-filter: blur(2px);
}

.logo {
    max-width: 54px;
    position: relative;
    padding: 10px;
}

/* --------------------------------------
   DESKTOP MENU
-------------------------------------- */
.menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu ul li {
    position: relative;
    border-radius: 16px;
    margin-right: 10px;
}

.menu ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 17px;
    padding: 0px 11px;
    text-transform: uppercase;
    transition: all 0.5s ease;
    letter-spacing: 1px;
    font-family: 'Euclid Circular A Regular';
}

/* Submenu base styling */
.menu ul li .submenu {
    display: none;
    position: absolute;
    backdrop-filter: blur(15px);
    left: 0;
    min-width: 250px;
    z-index: 999;
}

/* Hover show */
.menu ul li:hover>.submenu {
    display: block;
}

.menu ul li .submenu li {
    margin: 0;
    background: #d9d6d6;
    margin-bottom: 10px;
}

.menu ul li .submenu li a {
    color: #333;
    padding: 5px 15px;
    display: block;
    text-transform: capitalize;
}

.menu ul li .submenu li:hover {
    background: #f4511e;
    border: 1px solid #f4511e;
}

.menu ul li .submenu li:hover a {
    color: #fff !important;
}

/* --------------------------------------
   DESKTOP SUBMENU DIRECTION FIX
-------------------------------------- */

/* Header bottom → submenu UPAR open */
#smartHeader .dropdown .submenu {
    position: absolute !important;
    bottom: 100% !important;
    top: auto !important;
}

/* Header TOP → submenu NICHE open */
#smartHeader.fixedTop .dropdown .submenu {
    position: absolute !important;
    top: 100% !important;
    bottom: auto !important;
}

/* --------------------------------------
   MOBILE MENU + SUBMENU FIX
-------------------------------------- */
@media (max-width: 991px) {

    #smartHeader {
        top: 0 !important;
        bottom: auto !important;
        width: 100% !important;
    }

    .menu ul {
        display: none;
    }

    .button_container {
        display: block;
        cursor: pointer;
        width: 30px;
        position: relative;
        z-index: 10001;
    }

    .button_container span {
        background: #fff;
        height: 3px;
        width: 100%;
        display: block;
        margin: 5px 0;
        transition: 0.3s ease;
    }

    /* Overlay menu */
    .overlay {
        position: fixed;
        height: auto;
        width: 100%;
        background: rgba(0, 0, 0, 0.92);
        top: 79px;
        left: 0;
        display: none;
        z-index: 10000;
        padding-top: 15px;

        /* ⭐ SCROLL FIX ADDED */
        max-height: calc(100vh - 80px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .overlay.open {
        display: block;
    }

    .overlay-menu ul {
        display: block !important;
        text-align: left;
        padding-left: 30px;
    }

    .overlay-menu ul li {
        margin-bottom: 20px;
    }

    .overlay-menu ul li a {
        font-size: 17px;
        color: #fff;
    }

    /* MOBILE SUBMENU FIX */
    .overlay-menu .submenu {
        display: none !important;
        position: relative !important;
        background: transparent !important;
        padding-left: 15px;
        margin-top: 10px;
    }

    /* When li has class .open => show submenu */
    .overlay-menu li.open>.submenu {
        display: block !important;
    }

    #smartHeader .dropdown .submenu {
        position: relative !important;
        bottom: 100% !important;
        top: 0 !important;
        padding: 15px 5px;
    }

    .menu ul li {
        border-radius: 0px;
        margin-right: 10px;
        padding-bottom: 10px;
        border-bottom: 1px dashed;
    }

    #smartHeader .dropdown .submenu li {
        padding-bottom: 0;
    }

    /* Toggle icon animation */
    .button_container.open span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .button_container.open span:nth-child(2) {
        opacity: 0;
    }

    .button_container.open span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Smooth animation */
    .button_container span {
        transition: 0.4s ease;
    }
}

/* --------------------------------------
   SMALL DEVICES
-------------------------------------- */
@media (max-width: 575px) {
    #smartHeader {
        padding: 6px 0;
    }

    .logo {
        max-width: 45px;
    }

    .overlay {
        top: 64px;
    }
}