/* Background only for navbar section */
.header-area {
    /* background-color: rgba(255, 255, 255, 0.8); */
    background-color: #ffffff;
    background-image: url("../images/header-background-img.png");
    background-size: 100% auto;
    background-position: center 50%;
    background-repeat: no-repeat;
    /* background: linear-gradient(90deg, #3bbf8f, #1e4ea7); */
    /* background: linear-gradient(90deg, #0BA360, #3CBA92); */
    /* background: linear-gradient(90deg, #2AB7A9, #2E77CE); */
    box-shadow: 20px 20px 10px rgba(0, 0, 0, 0.41);
    padding: 30px 0 5px;
    position: relative;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    /* overflow: hidden !important; */
    
}

/* AR button outside */
.outside-nav {
    margin-left: 95%;
    margin-top: -67px;
}

/* Navbar Container */
.main-header .nav-container {
    width: 90%;
    margin: auto;

}
 /* .main-header {
     margin-bottom: 10px;
    } */
.header-wrapper {
    display: flex;
    align-items: center;
    /* vertically center the logo and text */
    justify-content: center;
    /* center horizontally (optional) */
    gap: 20px;
    /* space between logo and text */
    margin-bottom: 20px;
    /* space below the header if needed */
}

.header-title h3 {
    color: #0c6e2e;
    /* color: #000; */
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 18px;
    margin-top: -1px;
    /* font-family: "Barlow", sans-serif !important; */
    /* font-family: "Bricolage Grotesque", sans-serif; */
    font-family: 'Times New Roman', Times, serif;
    /* text-shadow: 3px 3px 2px rgba(0,0,0,0.25); */


}

/* Logo outside the glass box */
.header-logo {
    display: flex;
    justify-content: start;


}

.header-logo img {
    height: 120px;
    margin-left: 70px;
    margin-top: -20px;
    filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.35));
    position: relative;
    z-index: 5;
    transform: translateY(-10px);


}

.header-img {
    width: 100%;
}


/* Glass Navbar */
.main-header .navbar {
    width: 80%;
    /* padding: 8px 35px; */
    border-radius: 18px;
    /* background: rgba(255, 255, 255, 0.14); */
    /* background: #20c97d; */
    background-color: transparent;
    background-image: linear-gradient(135deg, #018B3B 0%, #106846 100%);
    /* background: rgba(35, 182, 251, 0.2); */
    backdrop-filter: blur(12px);
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    border: 1px solid rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -90px;
    transform: translateX(150px);
    /* moves navbar 90px to the right */

}

/* Menu */
.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    /* color: #fff; */
    /* color: #053115; */
    font-size: 16px;
    font-weight: 500;
    display: inline-block;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}


.nav-menu li a:hover {
    transform:scale(0.95);
    color: #ffffff;
}


/* Right Side */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* .search-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
} */

.lang-toggle {
    background: #800000;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    min-width: 32px;
    text-align: center;
}

.lang-toggle.ar {
    background: #00247d;
}

/* .account-btn {
    background: #ffffff;
    color: #1c7c3b;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
} */

.mobile-header {
    position: relative;
}

/* Hide hamburger on desktop */
.hamburger {
    display: none;
    font-size: 28px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}



/* Dropdown container */
.dropdown {
    position: relative;
}

/* Dropdown menu hidden by default */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 100%;
    transform: translateX(-15%);

    width: 900px;
    max-width: 95vw;
    background: #fff;
    padding: 10px 0px !important;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;

    /* display: grid; */
    grid-template-columns: repeat(2, 1fr);

    /* 🔥 KEY FIX */
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;

    column-gap: 20px;
    row-gap: 18px;
}


.dropdown-menu li {
    list-style: none;
}

/* Dropdown links */
.dropdown-menu li a {
    position: relative;
    display: block;
    padding-left: 22px;
    font-size: 14px;
    color: #000;
    text-decoration: none;
    line-height: 1.4;
}

/* Arrow before each item */
.dropdown-menu li a::before {
    content: "➜";
    position: absolute;
    left: 0;
    top: 0;
    color: #0b6b78;
    font-size: 14px;
}

.dropdown-menu li a:hover {
    background: #f2f2f2;
    color: #000;
}

.dropdown-toggle {
    cursor: pointer;
    margin-left: 6px;
    margin-top: 20px !important;
    font-size: 18px;
    /* color: #0b6b78; */
    color: #ffffff;

}


/* Show dropdown ONLY on hover */
.dropdown:hover .dropdown-menu {
    display: grid;
    /*  grid activates here */
}

.mobile-header,
.mobile-menu {
    display: none;
}

@media(min-width:1025px) and (max-width:1430px) {
    .header-title h3 {
        color: #0c6e2e;
        /* color: #000; */
        text-align: center;
        font-size: 30px;
        font-weight: 600;
        margin-bottom: 18px;
        margin-top: -1px;
        /* font-family: "Barlow", sans-serif !important; */
        /* font-family: "Bricolage Grotesque", sans-serif; */
        font-family: 'Times New Roman', Times, serif;
        /* text-shadow: 3px 3px 2px rgba(0,0,0,0.25); */
    }

    .nav-menu {
        display: flex;
        gap: 2px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .main-header .navbar {
        width: 100%;
        transform: translate(30px, 20px);
    }

    .header-logo img {
        height: 100px;
        margin-left: 15px;
        margin-top: -20px;
        filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.35));
        position: relative;
        z-index: 5;
        transform: translateY(-60px);
    }

    .outside-nav {
        margin-top: -115px;
    }
}

/* ===============================
   MOBILE + TABLET (≤ 1024px)
   =============================== */
@media (max-width: 1024px) {
    .main-header {
        height: auto !important;
    }

    /* Hide desktop title & logo */
    .main-header,
    .header-title,
    .header-logo {
        display: none;
    }

    /* Show mobile header */
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px;
        position: relative;
    }

    .mobile-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-left img {
        height: 90px;
        margin-top: -30px;
    }

    .mobile-left h1 {
        font-size: 25px;
        font-weight: 600;
        margin: 0;
        line-height: 1.2;
        color: #0c6e2e;
        text-align: center;
        font-weight: 600;
        margin-bottom: 18px;
        margin-top: -1px;
        font-family: 'Times New Roman', Times, serif;
        /* text-shadow: 3px 3px 2px rgba(0,0,0,0.25); */

    }

    /* Reset desktop navbar */
    .main-header .navbar {
        /* background: none;
        border: none;
        height: 0;
        overflow: visible;
        margin: 0;
        transform: none;
        padding: 0; */
        display: none;
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .bar {
        width: 25px;
        height: 3px;
        background: #000;
        transition: 0.3s ease;
    }

    /* Mobile menu container */
    #mobileMenu {
        display: none;
        position: absolute;
        top: 100%;
        /* drops down from hamburger */
        left: 0;
        width: 100%;
        background: rgba(30, 30, 30, 0.9);
        backdrop-filter: blur(15px);
        padding: 20px;
        flex-direction: column;
        gap: 18px;
        border-radius: 0 0 18px 18px;
        z-index: 9999;
    }

    #mobileMenu.menu-open {
        display: flex;
    }

    #mobileMenu li a {
        color: #ffffff;
        font-size: 18px;
        font-weight: 500;
    }

    /* Disable hover dropdown */
    .dropdown:hover .dropdown-menu {
        display: none;
    }

    /* Click-based dropdown */
    .dropdown-menu {
        position: absolute;
        /* allows you to move it */
        top: 100%;
        /* place it below the trigger */
        left: 50px;
        width: 100%;
        background: #ffffff;
        box-shadow: none;
        display: none;
        padding: 18px;
        border-radius: 8px;

    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        color: #000 !important;
        white-space: normal;
        /* allow text to wrap */
        word-wrap: break-word;
        overflow-wrap: break-word;
       padding-left: 30px;
       
    }
.dropdown-menu li a::before{
    padding: 10px;
}
    .mobile-right {
        display: flex;
        align-items: center;
        gap: 12px;
        /*  space between hamburger & AR */
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .mobile-left h1 {
        font-size: 18px;
        color: #0c6e2e;
        /* color: #000; */
        text-align: center;

        font-weight: 600;
        margin-bottom: 18px;
        margin-top: -1px;
        /* font-family: "Barlow", sans-serif !important; */
        /* font-family: "Bricolage Grotesque", sans-serif; */
        font-family: 'Times New Roman', Times, serif;
        /* text-shadow: 3px 3px 2px rgba(0,0,0,0.25); */

    }

    .mobile-left img {
        height: 70px;
        margin-top: -50px;
    }

}



