﻿@font-face {
    font-family: 'Lato-Black';
    src: url('../Fonts/Lato-Black.ttf') format('truetype');
}

@font-face {
    font-family: 'Lato-BlackItalic';
    src: url('../Fonts/Lato-BlackItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'Lato-Bold';
    src: url('../Fonts/Lato-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Lato-BoldItalic';
    src: url('../Fonts/Lato-BoldItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'Lato-Italic';
    src: url('../Fonts/Lato-Italic.ttf') format('truetype');
}

@font-face {
    font-family: 'Lato-Light';
    src: url('../Fonts/Lato-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Lato-LightItalic';
    src: url('../Fonts/Lato-LightItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'Lato-Regular';
    src: url('../Fonts/Lato-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Lato-ThinItalic';
    src: url('../Fonts/Lato-ThinItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'Lato-Thin';
    src: url('../Fonts/Lato-Thin.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
}

.Sticker {
    position: sticky;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    height: 85px;
    background-color: #001d5a;
    /* background-image: linear-gradient(to bottom, #bdcbe3, #b9c8e2, #b5c5e0, #b1c3df, #adc0dd, #a9bddc, #a6bbda, #a2b8d9, #9fb5d8, #9cb3d6, #98b0d5, #95aed3);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);*/
    z-index: 9999;
    opacity: .80;
    animation: fadeInAnimation ease 1s;
}
@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: .9;
    }
}
nav {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 70px;
    background-color: #001d5a;
    /* background-image: linear-gradient(to bottom, #bdcbe3, #b9c8e2, #b5c5e0, #b1c3df, #adc0dd, #a9bddc, #a6bbda, #a2b8d9, #9fb5d8, #9cb3d6, #98b0d5, #95aed3);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);*/
    z-index: 99;
    padding-bottom: 20px;
}

    nav .navbar {
        height: 100%;
        max-width: 1250px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: auto;
        /* background: red; */
        padding: 0 50px;
    }
.navbar .logo a {
    position: relative;
    top: 13px;
    font-size: 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

nav .navbar .nav-links {
    line-height: 70px;
    height: 100%;
}

nav .navbar .links {
    display: flex;
}

.navhover {
    margin: 0 auto;
    font-family: 'Lato-Regular';
}

    .navhover:hover {
        background-color: #9cb3d6;
        transition: all .9s ease-out;
    }
    nav .navbar .links li {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        list-style: none;
        padding: 0 14px;
    
    }

        nav .navbar .links li a {
            height: 100%;
            text-decoration: none;
            white-space: nowrap;
            color: #fff;
            font-size: 15px;
            font-weight: 500;
        }

.links li:hover .htmlcss-arrow
/*.links li:hover .js-arrow*/ {
    transform: rotate(180deg);
    cursor: pointer;
}


nav .navbar .links li .arrow {
    /* background: red; */
    height: 100%;
    width: 22px;
    line-height: 70px;
    text-align: center;
    display: inline-block;
    color: #fff;
    transition: all 0.3s ease;
}

nav .navbar .links li .sub-menu {
    position: absolute;
    top: 70px;
    left: 0;
    line-height: 40px;
    background-color: #E6F2FF;
    color: #333333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
    display: none;
    z-index: 2;
}

nav .navbar .links li:hover .htmlCss-sub-menu,
nav .navbar .links li:hover .js-sub-menu {
    display: block !important;
}

.navbar .links li .sub-menu li {
    border-bottom: none;
    padding: 0 15px; /* Adjust padding for mobile */
}

.navbar .links li .sub-menu a {
    color: #000;
    font-size: 15px;
    font-weight: 500;
}

.navbar .links li .sub-menu .more-arrow {
    line-height: 40px;
}

.navbar .links li .htmlCss-more-sub-menu {
    /* line-height: 40px; */
}

.navbar .links li .sub-menu .more-sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    border-radius: 0 4px 4px 4px;
    z-index: 1;
    display: none;
}

.links li .sub-menu .more:hover .more-sub-menu {
    display: block;
}

.navbar .search-box {
    position: relative;
    top: -2px;
    height: 40px;
    width: 40px;
}

    .navbar .search-box i {
        position: absolute;
        height: 100%;
        width: 100%;
        line-height: 40px;
        text-align: center;
        font-size: 22px;
        color: #fff;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .navbar .search-box .input-box {
        position: absolute;
        right: calc(100% - 32px);
        top: 180px;
        height: 40px;
        width: 220px;
        background: #7999c9;
        border-radius: 6px;
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s ease;
    }

.navbar.showInput .search-box .input-box {
    top: 50px;
    opacity: 1;
    pointer-events: auto;
    background: #7999c9;
}

.search-box .input-box::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    background: #7999c9;
    right: 10px;
    top: -6px;
    transform: rotate(45deg);
}

.search-box .input-box .TextSearch {
    position: absolute;
    top: 50%;
    left: 45%;
    border-radius: 4px;
    border: 1px solid #3fbcea;
    transform: translate(-50%, -50%);
    height: 35px;
    width: 180px;
    outline: none;
    padding: 0 15px;
    font-family: 'Lato-Light';
    font-size: calc(10px + (11- 10) * ((100vw - 300px) / (1600 - 300)));
    background: #586f92;
    color: #dcedf4;
}
.LogoTextSearch {
    position: relative;
    top: -6px;
    left: -70px;
    font-family: 'Lato-Light';
    font-size: 14px;
    color: #fff;
}
.TextSearch::placeholder {
    color: #dcedf4; /* Red color */
    opacity: 1; /* Ensure full visibility (some browsers may reduce opacity by default) */
}
.MenuSearch {
    position: absolute;
    top: 11px;
    Right: 4px;
}
.navbar .nav-links .sidebar-logo {
    display: none;
}

.navbar .bx-menu {
    position: relative;
    top: 10px;
    display: none; /* Hidden by default on desktop */
    color: #fff;
    cursor: pointer;
    font-size: 1.8rem;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

@media (max-width:920px) {
    nav .navbar {
        max-width: 100%;
        padding: 0 25px;
    }

        nav .navbar .logo a {
            font-size: 27px;
        }

        nav .navbar .links li {
            padding: 0 10px;
            white-space: nowrap;
        }

            nav .navbar .links li a {
                font-size: 15px;
            }
}
/* Landscape-specific adjustments */
@media (max-width: 800px) and (orientation: landscape) {
    nav .navbar .nav-links {
        max-height: 100vh; /* Ensure it fits within viewport */
        overflow-y: auto; /* Scrollable in landscape */
    }

    nav .navbar .links li .sub-menu {
        max-height: 30vh; /* Reduce height in landscape */
        overflow-y: auto; /* Scroll if content overflows */
    }
}
@media (max-width:800px) {
    nav {
        /* position: relative; */
    }
 
   .navbar .bx-menu {
        display: block;
    }

    nav .navbar .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        display: block;
        max-width: 270px;
        width: 100%;
        height: 100vh; /* Full viewport height */
        background-color: #001d5a;
        /* background-image: linear-gradient(to bottom, #bdcbe3, #b9c8e2, #b5c5e0, #b1c3df, #adc0dd, #a9bddc, #a6bbda, #a2b8d9, #9fb5d8, #9cb3d6, #98b0d5, #95aed3);*/
        line-height: 40px;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        transition: all 0.5s ease;
        z-index: 1000;
        overflow-y: auto; /* Allow scrolling if content overflows */
    }

    .navbar .nav-links .sidebar-logo {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .sidebar-logo .logo-name {
        font-size: 25px;
        color: #fff;
    }

    .sidebar-logo i,
    .navbar .bx-menu {
        font-size: 25px;
        color: #fff;
    }

    nav .navbar .links {
        display: block;
        margin-top: 20px;
    }

        nav .navbar .links li .arrow {
            line-height: 40px;
        }

        nav .navbar .links li {
            display: block;
        }

            nav .navbar .links li .sub-menu {
                position: relative;
                top: 0;
                box-shadow: none;
                display: none;
            }

                nav .navbar .links li .sub-menu li {
                    border-bottom: none;
                }

    .navbar .links li .sub-menu .more-sub-menu {
        display: none;
        position: relative;
        left: 0;
    }

        .navbar .links li .sub-menu .more-sub-menu li {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

    .links li:hover .htmlcss-arrow,
    .links li:hover .js-arrow {
        transform: rotate(0deg);
    }

    .navbar .links li .sub-menu .more-sub-menu {
        display: none;
    }

    .navbar .links li .sub-menu .more span {
        /* background: red; */
        display: flex;
        align-items: center;
        /* justify-content: space-between; */
    }

    .links li .sub-menu .more:hover .more-sub-menu {
        display: none;
    }

    nav .navbar .links li:hover .htmlCss-sub-menu,
    nav .navbar .links li:hover .js-sub-menu {
        display: none;
    }

    .navbar .nav-links.show1 .links .htmlCss-sub-menu,
    .navbar .nav-links.show3 .links .js-sub-menu,
    .navbar .nav-links.show2 .links .more .more-sub-menu {
        display: block !important;
    }

    .navbar .nav-links.show1 .links .htmlcss-arrow,
    .navbar .nav-links.show3 .links .js-arrow {
        transform: rotate(180deg);
    }

    .navbar .nav-links.show2 .links .more-arrow {
        transform: rotate(90deg);
    }
}

.button-as-link {
    /* Remove default button styling */
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    /* Apply link-like styles */
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    display: inline;
    /* Optional hover/focus states to match link behavior */
}
@media (max-width:370px) {
    nav .navbar .nav-links {
        max-width: 100%;
    }
    .navbar .search-box {
        left: 24px;
    }
    .LogoTextSearch {
       
    }
}
.mobile-menu-toggle {
    display: none; /* Hidden by default on desktop */
    color: #fff;
    cursor: pointer;
    font-size: 1.8rem;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.close-menu {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

    .close-menu::before,
    .close-menu::after {
        content: none;
    }
/* Show the appropriate toggle based on screen size */
@media (max-width: 800px) {
    nav .navbar {
        max-width: 100%;
        padding: 0V 15px; /* Minimal left padding for tight alignment */
        display: flex;
        flex-direction: row; /* Horizontal layout */
        justify-content: flex-start; /* Align items to the left */
        align-items: center; /* Vertically center items */
        flex-wrap: nowrap; /* Prevent wrapping */
    }

    .navbar .logo {
        margin: 0; /* Remove centering margins */
        text-align: left; /* Align logo content to the left */
        order: 0; /* Logo comes first */
    }

        .navbar .logo a {
            display: inline-block;
        }

        .navbar .logo img {
            max-height: 50px; /* Adjust based on logo size */
            width: auto;
        }

    .navbar .bx-menu {
        display: block; /* Show hamburger menu */
        margin-left: 30px; /* Space between logo and hamburger */
        margin-right: 0; /* Remove right margin */
        order: 1; /* Hamburger comes after logo */
        font-size: 1.8rem;
        color: #fff;
        background: none;
        border: none;
        cursor: pointer;
    }

    nav .navbar .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        display: block;
        max-width: 270px;
        width: 100%;
        background-color: #001d5a;
        line-height: 40px;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        transition: all 0.5s ease;
        z-index: 1000;
    }

    .navbar .search-box {
        margin-left: auto; /* Push search box to the right */
        order: 2; /* Search box comes last */
    }
}
/* Arrow base style with transition */
.htmlcss-arrow {
    transition: transform 0.3s ease; /* Smooth rotation */
}

    /* Rotate arrow when active */
    .htmlcss-arrow.rotate-180 {
        transform: rotate(180deg);
    }

/* Desktop hover (unchanged) */
.links li:hover .htmlcss-arrow {
    transform: rotate(180deg);
}

/* Disable hover rotation on touch devices */
@media (max-width: 800px) {
    .links li:hover .htmlcss-arrow {
        transform: rotate(0deg);
    }
}