/* Header */
header {
    background-color: #1b3b6b;
}

header .main-header-wrapper {
    max-width: 1440px;
    margin: auto;
}

header .site-logo {
    margin: 0;
}

header .site-logo a {
    text-decoration: none;
}

header .site-logo img {
    width: 100px;
    height: auto;
}

header .row.align-items-center {
    display: grid;
    grid-template-columns: auto 1fr;
    justify-content: space-between;
    align-items: center;
}

header span.site-logo-text {
    font-family: 'Montserrat';
    font-size: 32px;
    color: #FFFFFF;
    font-weight: 500;
    text-decoration: none;
    margin-left: 5px;
    text-decoration: none;
}

header .header-menu {
    justify-content: end;
    display: flex;
}

header .header-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

header .header-menu li {
    margin-left: 20px;
}

header .header-menu li a {
    font-family: 'Montserrat';
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    text-decoration: none;
    text-transform: uppercase;
    vertical-align: middle;
}

header .header-menu li a:hover {
    font-weight: 700;
}

header .social-links {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 10px 240px;
    background: #FFF;
}

header .social-links .social img {
    width: 17px;
    height: 16px;
    object-fit: contain;
}

header .header-menu li:nth-child(5) {
    position: relative;
}

header .header-menu li:nth-child(5) .sub-menu-toggle {
    display: none;
}

header .header-menu li:nth-child(5) .sub-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #fff;
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 9999;
    width: max-content;
}

header .header-menu li:nth-child(5) .sub-menu li {
    margin: 0;
    padding: 10px
}

header .header-menu li:nth-child(5) .sub-menu li a {
    color: #1b3b6b;
}

/* Initially hide the hamburger menu */
header .hamburger-menu {
    display: none;
}

/* Mobile menu transition */
header .mobile-menu {
    display: none;
    /* Initially hidden */
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

header .mobile-menu.show {
    display: block;
    opacity: 1;
    max-height: 500px;
    /* Adjust this value based on the content */
}


/* Responsiveness */
@media (max-width: 1800px) {
    header .social-links {
        padding: 10px 171px;
    }
}

@media (max-width: 1700px) {
    header .social-links {
        padding: 10px 121px;
    }
}

@media (max-width: 1600px) {
    header .social-links {
        padding: 10px 80px;
    }
}

@media (max-width:1440px) {
    header .social-links {
        padding: 10px 62px;
    }

    header .main-header-wrapper {
        max-width: 1300px;
    }

    header .header-menu li a {
        font-size: 13px;
    }

    header span.site-logo-text {
        font-size: 20px;
    }
}

@media (max-width:1340px) {
    header .social-links {
        padding: 10px 40px;
    }

    header .main-header-wrapper {
        max-width: 1200px;
    }

    header .header-menu li {
        margin-left: 17px;
    }

    header span.site-logo-text {
        font-size: 18px;
    }

    header .header-menu li a {
        font-size: 12px;
    }
}

@media (max-width: 1279px) {
    header span.site-logo-text {
        font-size: 22px;
    }
    
    header .main-header-wrapper {
        max-width: unset;
        padding: 0 40px;
    }

    header .social-links {
        padding: 10px 40px;
    }

    header .header-menu {
        display: none;
    }

    header .hamburger-menu {
        display: block;
        text-align: right;
    }

    header .mobile-menu.show {
        max-height: 800px;
    }

    header .mobile-menu.show ul {
        text-align: center;
        padding: 0
    }

    header .mobile-menu.show ul li {
        margin-bottom: 30px;
    }

    header .mobile-menu.show ul li a {
        color: #FFFFFF;
        text-decoration: none;
        text-transform: uppercase;
    }

    header .mobile-menu.show ul li:first-child {
        margin-top: 30px
    }

    header .mobile-menu.show ul li:last-child {
        margin-bottom: 50px;
    }

    header .mobile-menu.show ul li:nth-child(6) button {
        display: none;
    }

    header .mobile-menu.show ul li:nth-child(6) a {
        display: none;
    }

    header .mobile-menu.show ul li:nth-child(6) ul li a {
        display: block !important;
    }

    header .mobile-menu.show ul li:nth-child(6) ul li {
        margin-bottom: 30px;
    }

    header .mobile-menu.show ul li:nth-child(5) a {
        display: none;
    }

    header .mobile-menu.show ul li:nth-child(5) ul.sub-menu li a {
        display: block;
    }

    header .mobile-menu.show ul li:nth-child(5) ul.sub-menu li {
        margin-bottom: 30px;
    }

    header .mobile-menu.show ul li:nth-child(5) button.sub-menu-toggle {
        display: none;
    }

    header .mobile-menu.show ul li:nth-child(6) {
        display: none;
    }
}

@media (max-width: 767px) {
    header .main-header-wrapper {
        max-width: unset;
        padding: 0 20px;
    }

    header .social-links {
        padding: 10px 20px;
    }

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

    header .site-logo img {
        width: 70px;
    }

    header span.site-logo-text {
        font-size: 16px;
    }

    header .mobile-menu.show ul li a {
        font-size: 14px;
    }

    header .mobile-menu.show ul li {
        margin-bottom: 10px;
    }

    header .mobile-menu.show ul li:first-child {
        margin-top: 10px;
    }

    header .mobile-menu.show ul li:nth-child(6) ul li {
        margin-bottom: 10px;
    }

    header .mobile-menu.show ul li:last-child {
        margin-bottom: 30px;
    }
}

@media (max-width: 430px) {
    header span.site-logo-text {
        font-size: 12px;
    }
}