/* header */
header {
    color: black;
    padding: 20px 20px;
    position: relative;
}

.header-container {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    padding: 0px 15px 0px 30px;
    background-color: #303030;
    border-top-left-radius: 8px;
    border-top-right-radius: 60px;
    border-bottom-right-radius: 60px;
    border-bottom-left-radius: 8px;
    margin: 0 auto;
}

.logo {
    width: 20%;
}

.logo img {
    width: 128px;
}

.edu-nav {
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu ul li {
    position: relative;
    margin: 0 15px;
}

.nav-menu ul li a {
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #fff;
    font-family: Satoshi;
    font-weight: 500;
    font-size: 18px;
    line-height: 20px;
    letter-spacing: 0%;
    transition: 0.2s ease-in-out;
}

.nav-menu ul li a:hover {
    text-decoration: none;
    display: flex;
    align-items: center;
    color: orange;
    font-family: Satoshi;
    font-weight: 500;
    font-size: 18px;
    line-height: 20px;
    letter-spacing: 0%;
    transition: 0.2s ease-in-out;
}

/*drop down*/
.products > a::after {
  content: "\f078"; /* Font Awesome: Chevron Down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 10px;
  transition: transform 0.3s ease;
}


.About > a::after {
  content: "\f078"; /* Font Awesome: Chevron Down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

/* On desktop hover, show chevron up */
.products:hover > a::after {
  content: "\f077"; /* Font Awesome: Chevron Up */
}

.About:hover > a::after {
  content: "\f077"; /* Font Awesome: Chevron Up */
}

.products:hover .submenu {
    display: block;
    padding: 15px 0px;
}
.About:hover .submenu {
    display: block;
    padding: 15px 0px;
}
/* Submenu Styling */
ul.submenu {
    display: none; /* Hide submenu by default */
    position: absolute;
    top: 100%;
    width: 305px;
    left: 0;
    background-color: #fff;
    list-style-type: none;
    padding: 10px 0;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.products:hover .submenu {
    display: block; /* Show submenu when hovering over the 'Services' menu item */
}

.About:hover .submenu {
    display: block; /* Show submenu when hovering over the 'Services' menu item */
}

ul.submenu li {
    padding: 5px 12px 5px 20px;
}

ul.submenu li:hover {
    padding: 5px 12px 5px 25px;
    transition: padding 0.3s ease;
}

ul.submenu li a {
    color: #000;
    font-size: 18px;
    padding: 5px 0px 10px 0px;
    /*text-transform: uppercase;*/
}

ul.submenu li a:hover {
    color: #E0900E;
    font-size: 18px;
    padding: 5px 0px 10px 0px;
}

.checkbtn {
    font-size: 30px;
    color: black;
    line-height: 80px;
    cursor: pointer;
    display: none;
    position: absolute;
    right: 30px;
}

#check {
    display: none;
}

.header-button {
    display: flex;
    gap: 5px;
}

.cart-btn {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    color: #fff;
    border: 1px solid #2B637742;
    font-size: 18px;
    line-height: 19px;
    font-family: Satoshi;
    font-weight: 500;
    width: 116px;
    height: 38px;
}

.cart-btn:hover {
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 50px;
    color: #fff;
    background-color: #2B637742;
    border: 1px solid #fff;
    font-size: 18px;
    line-height: 19px;
    font-family: Satoshi;
    font-weight: 500;
}

.shop-btn {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    color: #fff;
    background-color: #E0900E;
    border: 1px solid #2B637742;
    font-size: 18px;
    line-height: 19px;
    font-family: Satoshi;
    font-weight: 500;
    width: 116px;
    height: 38px;
}

.shop-btn:hover {
    text-decoration: none;
    border-radius: 50px;
    background-color: #E0900E;
    color: #2d2d2d;
    border: 1px solid #2d2d2d;
    font-size: 18px;
    line-height: 19px;
    font-family: Satoshi;
    font-weight: 500;
    width: 116px;
    height: 38px;
}

@media (max-width: 768px) {

    /* bcs header Styles for the toggle button */
    .header-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0px 10px;
    }

    .checkbtn {
        display: flex;
        justify-content: center;
        align-items: center;
        color: #E0900E;
        cursor: pointer;
        font-size: 24px;
        margin-right: 10px;
    }

    .logo {
        width: 50%;
    }

    .logo img {
        width: 114px;
    }

    .nav-menu {
        position: fixed;
        z-index: 999;
        width: 90%;
        height: 100vh;
        background: rgba(20, 19, 17, 1);
        top: 0;
        box-shadow: rgba(0, 0, 0, 0.2) 4px 12px 12px !important;
        left: -100%;
        transition: left 0.5s;
        text-align: left;
        overflow-x: hidden;
        overflow-y: hidden;
        margin-top: 140px;
    }

    .nav-menu ul {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .nav-menu li {
        list-style: none;
        padding: 20px 0px 0px 0px;
        font-size: 16px;
        color: white;
    }

    .nav-menu ul li a {
        text-decoration: none;
        color: white;
        display: block;
        text-align: left;
        font-family: Satoshi;
        font-weight: 500;
        font-size: 16px;
        line-height: 20px;
        letter-spacing: 0%;
        transition: 0.2s ease-in-out;
        padding: 10px 15px 0px 15px;
    }

    .nav-menu ul li a:hover {
        color: orange;
        font-family: Satoshi;
    }

    #check:checked~.edu-nav .nav-menu {
        left: 0;
    }


    .checkbtn .fa {
        font-size: 35px;
        transition: color 0.3s;
    }


    #check~.checkbtn .fa-times {
        display: none;
    }

    #check:checked~.checkbtn .fa-bars {
        display: none;
    }

    #check:checked~.checkbtn .fa-times {
        display: block;
    }

    .header-button {
        width: 100%;
        text-align: center;
        margin-top: 10px;
        display: none;
    }
    
    .menu ul li.products {
        position: relative; /* To hold submenu */
    }

    ul.submenu {
        display: none; /* Hide submenu by default */
        position: absolute;
        top: 0; /* Place submenu below the "Services" item */
        left: 0;
        width: 305px; /* Take up full width of menu */
        background-color: #fff;
        list-style-type: none;
        padding: 10px 0;
        margin: 50px 0px 0px 40px;
        border: 1px solid #ddd;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }

    /* Prevent submenu from showing on hover */
    .menu ul li.products:hover .submenu {
        display: none;
    }
    
    /* Show submenu only on anchor focus (i.e., click/tap) */
    .menu ul li.products > a:focus + .submenu {
        display: block;
    }

    ul.submenu li {
        padding: 5px 0px 0px 15px;
        font-size: 16px;
        color: #000;
        /*text-transform: uppercase;*/
    }

    ul.submenu li:hover {
        padding: 5px 0px 0px 20px;
        transition: padding 0.3s ease;
    }

    ul.submenu li a {
        color: #000;
        font-size: 16px;
        padding: 5px 5px 10px 0px;
        /*text-transform: uppercase;*/
    }

    ul.submenu li a:hover {
        color: #E0900E;
        font-size: 16px;
        padding: 5px 5px 10px 0px;
    }

    /* For mobile, ensure the submenu is shown when the menu is open */
    .menu ul li.products > a:after {
        content: ' ▼'; /* Add an arrow for submenu items */
        font-size: 12px;
    }
}