/* =========================================================
   GLOBAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #fff;
    color: #222;
}

a {
    text-decoration: none;
    color: #222;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input {
    font-family: inherit;
}


/* =========================================================
   TOP BAR
========================================================= */

.top-bar {
    width: 100%;
    height: 42px;

    background: #0b4a99;
    color: #fff;

    overflow: hidden;

    display: flex;
    align-items: center;
}

.marquee {
    width: 100%;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;

    animation: scroll 18s linear infinite;
}

.marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marquee-group span {
    display: flex;
    align-items: center;

    white-space: nowrap;

    padding: 0 40px;

    font-size: 14px;
    font-weight: 500;
}

.marquee-group i {
    color: #ffc107;

    margin-right: 8px;

    font-size: 16px;
}

.top-bar:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* =========================================================
   MAIN HEADER
========================================================= */

header {
    width: 100%;

    padding: 15px 0;

    background: #fff;

    border-bottom: 1px solid #eee;
}

.header-row {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 20px;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;

    object-fit: contain;
}


/* =========================================================
   SEARCH
========================================================= */

.search-box {
    flex: 1;
    min-width: 0;

    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    min-width: 0;

    width: 100%;
    height: 50px;

    padding: 0 18px;

    border: 1px solid #ddd;
    border-right: none;

    outline: none;

    font-size: 15px;

    border-radius: 6px 0 0 6px;

    background: #fff;
    color: #222;
}

.search-input::placeholder {
    color: #888;
}

.search-btn {
    flex: 0 0 60px;

    width: 60px;
    height: 50px;

    border: none;

    background: #1565ff;
    color: #fff;

    font-size: 20px;

    border-radius: 0 6px 6px 0;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #0b4a99;
}


/* =========================================================
   ICONS
========================================================= */

.icons {
    display: flex;
    align-items: center;

    gap: 18px;

    font-size: 24px;
}


/* =========================================================
   DESKTOP MENU
========================================================= */

.desktop-menu {
    width: 100%;

    background: #fff;

    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;

    position: relative;

    z-index: 1000;
}

.desktop-menu > .container {
    max-width: 1200px;
}


/* =========================================================
   MAIN MENU
========================================================= */

.desktop-menu .main-menu {
    width: 100%;

    min-height: 68px;

    display: flex;
    align-items: stretch;

    justify-content: space-between;
}

.desktop-menu .main-menu > li {
    position: relative;

    display: flex;
    align-items: stretch;

    flex: 0 1 auto;
}


/* =========================================================
   MAIN MENU LINKS
========================================================= */

.desktop-menu .main-menu > li > a {
    position: relative;

    min-height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    padding: 10px 14px;

    color: #111;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.35;

    text-align: center;

    white-space: normal;

    transition:
        color 0.25s ease,
        background 0.25s ease;
}

.desktop-menu .main-menu > li > a span {
    display: inline-block;
}

.desktop-menu .main-menu > li > a:hover {
    color: #0b4a99;
}


/* =========================================================
   ACTIVE / HOVER UNDERLINE
========================================================= */

.desktop-menu .main-menu > li > a::after {
    content: "";

    position: absolute;

    left: 14px;
    right: 14px;
    bottom: 0;

    height: 2px;

    background: #1565ff;

    transform: scaleX(0);

    transform-origin: center;

    transition: transform 0.25s ease;
}

.desktop-menu .main-menu > li > a:hover::after {
    transform: scaleX(1);
}


/* =========================================================
   DROPDOWN ARROW
========================================================= */

.desktop-menu .main-menu > li > a .arrow {
    flex-shrink: 0;

    font-size: 10px;

    margin-left: 2px;

    transition: transform 0.25s ease;
}

.desktop-menu .main-menu > li.dropdown:hover > a .arrow {
    transform: rotate(180deg);
}

.desktop-menu .main-menu > li.dropdown-sub:hover > a .arrow {
    transform: rotate(180deg);
}


/* =========================================================
   DESKTOP SUBMENU
========================================================= */

.desktop-menu .submenu,
.desktop-menu .sub-submenu {
    display: none;

    position: absolute;

    background: #fff;

    min-width: 220px;

    padding: 5px 0;

    border: 1px solid #eee;

    border-radius: 0 0 7px 7px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);

    z-index: 9999;
}


/* First level */

.desktop-menu .submenu {
    top: 100%;
    left: 0;
}


/* Second level */

.desktop-menu .sub-submenu {
    top: -5px;
    left: 100%;
}


/* =========================================================
   SUBMENU ITEMS
========================================================= */

.desktop-menu .submenu li,
.desktop-menu .sub-submenu li {
    position: relative;
}

.desktop-menu .submenu a,
.desktop-menu .sub-submenu a {
    width: 100%;

    min-height: 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 9px 15px;

    color: #222;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.4;

    background: #fff;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.desktop-menu .submenu a:hover,
.desktop-menu .sub-submenu a:hover {
    background: #f4f7fc;
    color: #0b4a99;
}


/* =========================================================
   SHOW DROPDOWNS
========================================================= */

.desktop-menu .dropdown:hover > .submenu {
    display: block;
}

.desktop-menu .dropdown-sub:hover > .sub-submenu {
    display: block;
}


/* =========================================================
   SUBMENU ARROWS
========================================================= */

.desktop-menu .submenu .arrow,
.desktop-menu .sub-submenu .arrow {
    font-size: 9px;

    margin-left: 10px;
}


/* =========================================================
   MOBILE TOGGLE
========================================================= */

.menu-toggle {
    display: none;

    width: 45px;
    height: 45px;

    border: 1px solid #ddd;

    background: #fff;

    color: #0b4a99;

    border-radius: 6px;

    font-size: 28px;

    cursor: pointer;

    align-items: center;
    justify-content: center;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.menu-toggle:hover {
    background: #0b4a99;
    color: #fff;
}


/* =========================================================
   MOBILE OVERLAY
========================================================= */

.menu-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

    z-index: 9998;
}

.menu-overlay.active {
    visibility: visible;
    opacity: 1;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
    position: fixed;

    top: 0;
    right: -340px;

    width: 320px;
    max-width: 90%;

    height: 100vh;

    background: #fff;

    transition: right 0.35s ease;

    overflow-y: auto;

    z-index: 9999;

    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.20);
}

.mobile-menu.active {
    right: 0;
}


/* =========================================================
   MOBILE HEADER
========================================================= */

.mobile-header {
    position: sticky;

    top: 0;

    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 20px;

    border-bottom: 1px solid #eee;

    background: #fff;

    z-index: 10;
}

.mobile-header h4 {
    margin: 0;

    font-size: 22px;
    font-weight: 600;

    color: #111;
}

.close-menu {
    border: none;

    background: transparent;

    width: 40px;
    height: 40px;

    display: flex;
    justify-content: center;
    align-items: center;

    color: #222;

    cursor: pointer;

    border-radius: 6px;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.close-menu:hover {
    background: #f2f5fa;
    color: #0b4a99;
}

.close-menu i {
    font-size: 24px;
}

.mobile-header button {
    border: none;

    background: none;

    font-size: 30px;

    cursor: pointer;
}


/* =========================================================
   MOBILE MAIN MENU
========================================================= */

.mobile-menu .main-menu {
    display: block;

    width: 100%;
}

.mobile-menu .main-menu li {
    position: relative;

    width: 100%;

    border-bottom: 1px solid #eee;
}

.mobile-menu .main-menu li a {
    width: 100%;

    min-height: 52px;

    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 15px 20px;

    color: #222;

    font-size: 15px;
    font-weight: 500;

    line-height: 1.4;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.mobile-menu .main-menu li a:hover {
    background: #f5f8fd;
    color: #0b4a99;
}


/* =========================================================
   MOBILE SUBMENU
========================================================= */

.mobile-menu .submenu {
    display: none;

    position: static;

    width: 100%;

    background: #fafafa;

    box-shadow: none;

    border: none;
}

.mobile-menu .sub-submenu {
    display: none;

    position: static;

    width: 100%;

    background: #f4f4f4;

    box-shadow: none;

    border: none;
}

.mobile-menu .submenu li,
.mobile-menu .sub-submenu li {
    border-bottom: 1px solid #e8e8e8;
}

.mobile-menu .submenu li a {
    padding-left: 40px;

    font-size: 14px;
}

.mobile-menu .sub-submenu li a {
    padding-left: 60px;

    font-size: 14px;
}


/* =========================================================
   MOBILE DROPDOWN ACTIVE
========================================================= */

.mobile-menu .dropdown.active > .submenu {
    display: block;
}

.mobile-menu .dropdown-sub.active > .sub-submenu {
    display: block;
}


/* =========================================================
   MOBILE ARROWS
========================================================= */

.mobile-menu .arrow {
    flex-shrink: 0;

    font-size: 12px;

    transition: transform 0.3s ease;
}

.mobile-menu .dropdown.active > .menu-link .arrow {
    transform: rotate(180deg);
}

.mobile-menu .dropdown-sub.active > .menu-link .arrow {
    transform: rotate(180deg);
}


/* =========================================================
   DESKTOP - LARGE SCREEN
========================================================= */

@media (min-width: 1200px) {

    .desktop-menu > .container {
        max-width: 1200px;
    }

    .desktop-menu .main-menu {
        min-height: 68px;
    }

    .desktop-menu .main-menu > li > a {
        min-height: 68px;

        padding: 10px 12px;

        font-size: 13px;

        gap: 5px;
    }

    .desktop-menu .main-menu > li > a::after {
        left: 12px;
        right: 12px;
    }

    .desktop-menu .main-menu > li > a .arrow {
        font-size: 9px;
    }
}


/* =========================================================
   DESKTOP - MEDIUM SCREEN
========================================================= */

@media (min-width: 992px) and (max-width: 1199px) {

    .desktop-menu > .container {
        max-width: 100%;

        padding-left: 10px;
        padding-right: 10px;
    }

    .desktop-menu .main-menu {
        min-height: 64px;
    }

    .desktop-menu .main-menu > li > a {
        min-height: 64px;

        padding: 8px 9px;

        font-size: 12px;

        gap: 4px;
    }

    .desktop-menu .main-menu > li > a .arrow {
        font-size: 8px;
    }

    .desktop-menu .main-menu > li > a::after {
        left: 9px;
        right: 9px;
    }
}


/* =========================================================
   TABLET + MOBILE
========================================================= */

@media (max-width: 991px) {

    /* -------------------------
       TOP BAR
    ------------------------- */

    .top-bar {
        height: 38px;
    }

    .marquee-group span {
        padding: 0 25px;

        font-size: 12px;
    }

    .marquee-group i {
        font-size: 14px;

        margin-right: 6px;
    }


    /* -------------------------
       HEADER
    ------------------------- */

    header {
        padding: 12px 0;
    }

    .header-row {
        display: grid;

        grid-template-columns: 1fr auto;

        gap: 15px;

        align-items: center;
    }


    /* Logo */

    .logo {
        grid-column: 1;
    }

    .logo img {
        height: 48px;
    }


    /* Menu button */

    .menu-toggle {
        grid-column: 2;

        display: flex;

        align-items: center;
        justify-content: center;

        width: 42px;
        height: 42px;
    }


    /* -------------------------
       SEARCH
    ------------------------- */

    .search-box {
        grid-column: 1 / 3;

        width: 100%;

        margin-top: 5px;

        display: flex;
    }

    .search-input {
        height: 45px;

        padding: 0 12px;

        font-size: 14px;
    }

    .search-btn {
        width: 48px;
        height: 45px;
    }


    /* -------------------------
       HIDE DESKTOP MENU
    ------------------------- */

    .desktop-menu {
        display: none;
    }


    /* -------------------------
       HIDE ICONS
    ------------------------- */

    .icons {
        display: none;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 576px) {

    /* Top bar */

    .top-bar {
        height: 36px;
    }

    .marquee-group span {
        padding: 0 18px;

        font-size: 11px;
    }

    .marquee-group i {
        font-size: 13px;
    }


    /* Header */

    header {
        padding: 10px 0;
    }

    .header-row {
        gap: 10px;
    }


    /* Logo */

    .logo img {
        height: 38px;
    }


    /* Menu */

    .menu-toggle {
        width: 38px;
        height: 38px;

        font-size: 24px;
    }


    /* Search */

    .search-box {
        margin-top: 2px;
    }

    .search-input {
        height: 43px;

        padding: 0 12px;

        font-size: 13px;
    }

    .search-btn {
        width: 46px;
        height: 43px;

        font-size: 17px;
    }


    /* Mobile menu */

    .mobile-menu {
        width: 310px;
    }

    .mobile-header {
        padding: 16px 18px;
    }

    .mobile-header h4 {
        font-size: 20px;
    }

    .mobile-menu .main-menu li a {
        padding: 14px 18px;

        font-size: 14px;
    }

    .mobile-menu .submenu li a {
        padding-left: 35px;

        font-size: 13px;
    }

    .mobile-menu .sub-submenu li a {
        padding-left: 52px;

        font-size: 13px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .logo img {
        height: 34px;
    }

    .mobile-menu {
        width: 290px;
    }

    .mobile-menu .main-menu li a {
        padding-left: 15px;
        padding-right: 15px;
    }

    .mobile-menu .submenu li a {
        padding-left: 28px;
    }

    .mobile-menu .sub-submenu li a {
        padding-left: 43px;
    }
}