﻿/* Header 1 */
.contact-header {
    background-color: white;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 30px;
    padding-right: 50px;
}

.language-switch i {
    color: #323232;
}

    .language-switch i:hover {
        color: rgb(230, 230, 230);
    }

.contact-header .language-switch a {
    margin-left: 10px;
    margin-right: 10px;
}

.contact-header .language-switch a:last-child {
    margin-right: 0px;
}

    .contact-header .language-switch a:first-child {
        margin-left: 0px;
    }

.contact i:hover, .contact a:hover {
    color: #bf8c4c !important;
}

.contact a {
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    display: flex;
    color: #323232;
}

.contact span {
    margin: auto;
    margin-left: 10px;
}

.contact {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

    .contact div {
        padding-right: 25px;
    }

.language-switch {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    flex-wrap: wrap;
    text-align: right;
}

.contact-header nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.language-switch a {
    color: #323232;
    text-decoration: none;
}

    .language-switch a.active {
        color: #bf8c4c;
    }

/* Responsivity */
/* Mobile view adjustments */
@media (max-width: 919.98px) {
    .contact-header {
        padding-left: 20px;
        padding-right: 20px;
    }

    header .contact {
        font-size: 14px;
    }

    .language-switch {
        font-size: 14px;
    }

    .contact a {
        font-size: 13px;
    }

    .contact span {
        margin-left: 5px;
    }

    .small-icon {
        height: 25px;
        width: 25px;
    }

    #header-2 .div1 {
        width: 150px !important;
    }

    .logo {
        width: 45px !important;
        height: 45px !important;
    }

    #header-2 .div1 p {
        font-size: 12px !important;
    }

    #header-2 .div2 a {
        font-size: 16px !important;
    }
}

@media (max-width: 798.98px) {
    header .contact {
        font-size: 14px;
        max-width: 410px;
        flex-wrap: wrap;
    }

    .language-switch {
        font-size: 14px;
    }
}

@media (max-width: 540.98px) {
    header .contact {
        font-size: 14px;
        max-width: 260px;
        flex-wrap: wrap;
    }
}

@media (max-width: 419.98px) {
    header .contact, .language-switch {
        font-size: 12px;
    }

    header .contact {
        max-width: 230px;
    }
}


@media (max-width: 350.98px) {
    .language-switch {
        margin-top: 5px;
        margin-bottom: 5px;
    }
}



/* Header 2 */
#header-2 {
    background-color: #52a7c1;
    background-image: linear-gradient(315deg, #52a7c1 0%, rgba(134, 192, 207, 1) 74%);
    display: flex;
    flex-direction: row;
    padding: 10px 30px;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.logo {
    width: 50px;
    height: 50px;
}

#header-2 .div1 p {
    color: white;
    line-height: 15px;
    margin: auto;
    font-size: 14px;
    font-weight: 400;
    padding-left: 5px;
}

#header-2 .div1 {
    display: flex;
    flex-direction: row;
    width: 170px;
    text-decoration: none;
}

#header-2 .div2 {
    display: flex;
    justify-content: center;
    color: white;
}

    #header-2 .div2 a {
        margin: auto 10px;
        text-decoration: none;
        color: white !important;
        font-size: 20px;
        font-weight: 300;
    }

        #header-2 .div2 a:hover {
            color: white !important;
        }

#header-2 .nav-item {
    position: relative;
}

    #header-2 .nav-item:after {
        background: none repeat scroll 0 0 transparent;
        bottom: 0;
        content: "";
        display: block;
        height: 2px;
        left: 50%;
        position: absolute;
        background: white !important;
        transition: width 0.3s ease 0s, left 0.3s ease 0s;
        width: 0;
    }

    #header-2 .nav-item:hover:after {
        width: 100%;
        left: 0;
        color: white !important;
    }

#header-2 .nav.item:hover {
    color: white !important;
}

#header-2 .div1 p {
    text-decoration: none;
}

#header-2 .div1 {
    cursor: pointer;
    opacity: 0.9;
}

/*----- Mobile header -----*/
@media (max-width: 519.98px) {
    #mobile-header {
        display: block; /* Show the mobile header only on small screens */
    }

    .div2 {
        display: none; /* Hide the desktop navigation on small screens */
    }

    .content {
        display: none; /* Initially hide the mobile navigation on small screens */
    }
}

@media (min-width: 520px) {
    #mobile-header {
        display: none; /* Hide the mobile header on larger screens */
    }

    .div2 {
        display: block; /* Show the desktop navigation on larger screens */
    }
}

/* Existing styles for the hamburger menu animation */
.hamburger-menu {
    top: 1rem;
    right: 2rem;
    z-index: 10;
    cursor: pointer;
    margin: auto 0;
}

.menu-bar1,
.menu-bar2,
.menu-bar3 {
    width: 2rem;
    height: 0.1rem;
    background-color: white;
    margin: 0.8rem 0;
    transition: 0.4s;
    margin: 0.2rem 0 0.2rem 0;
    margin-left: auto;
}

.menu-bar2 {
    width: 1rem;
}

/* ROTATE FIRST BAR */
.active .menu-bar1 {
    transform: rotate(-45deg) translate(-0.1rem, 0.3rem)
}

/* FADE OUT SECOND BAR */
.active .menu-bar2 {
    opacity: 0;
}

/* ROTATE LAST BAR */
.active .menu-bar3 {
    transform: rotate(45deg) translate(-0.1rem, -0.3rem);
}

/* Mobile Drawer */
.mobile-drawer {
    position: absolute;
    top: calc(100% + 1px); /* Starts right under the header */
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background-color: #fff;
    z-index: 100;
}

    .mobile-drawer.open {
        max-height: 300px; /* Adjust based on your need */
    }

/* Drawer Links */
.drawer-link {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #e5e5e5;
    transition: background-color 0.3s;
}

a.drawer-link:hover {
    background-color: #f5f5f5;
    color: rgba(134, 192, 207, 1) !important;
}

/* Mobile-first approach */

/* By default, only show the mobile hamburger menu */
.div2 {
    display: flex;
}

.hamburger-menu {
    display: none;
}

@media screen and (max-width: 767.98px) {
    #header-2 {
        padding: 10px 20px;
    }
}

/* When the screen width is greater than 519.98px, hide the hamburger and show the desktop links */
@media screen and (max-width: 565.98px) {

    .hamburger-menu,
    #mobile-drawer {
        display: block;
    }

    #header-2 .div2 {
        display: none;
    }

    #header-2 {
        padding: 10px 20px;
    }

    .drawer-link {
        font-size: 14px;
    }
}

@media screen and (max-width: 419.98px) {

    header {
        padding: 10px 10px !important;
    }
}