@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --clr-bg-header: #7CFC00;
    --clr-btn: #51950e;
    --clr-dropdown: #7CFC00;
    --clr-nav-hover: #5aae0a;
    --clr-dropdown-hov: #7CFC00;
    --clr-dropdown-link-hov: #5aae0a;
    --clr-light: #fff;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

.header {
    position: sticky;
    top: 0px;
    background-color: #5aae0a;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 2px solid #fff;
}

.nav_container {
    max-width: 75rem;
    padding: 0 2rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    position: relative;
}

.logo-container {
    flex: 1;
    display: flex;
    align-items: center;
    max-width: 200px;
}

.logo img {
    max-width: 175px;
    /* Adjust as necessary */
    height: auto;
}

.nav-btn {
    flex: 3;
    display: flex;
    align-items: center;
}

.nav-links {
    flex: 2;
}

.nav-links ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-item {
    position: relative;
    padding: 0 1rem;
}

.menu-item a {
    color: var(--clr-light);
    padding: 0 .8rem;
    letter-spacing: 1px;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.menu-item:hover a {
    transform: scale(1.1);
    color: #fff;
}



.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 10rem;
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: .5s;
    z-index: 1000;
    flex-direction: column;
    border: 1px solid #fff;
}

.sub-menu li {
    width: 100%;
    text-align: center;
    padding: 0;    
    border: 1px solid #a3a3a3;
}

.sub-menu li a {
    text-align: center;
    background-color: var(--clr-light);
    color: #51950e;
    padding: .5rem 1rem;
    font-size: .9rem;
    transition: .3s;
}

.menu-item:hover .sub-menu a {
    color: #000;
}

.sub-menu li:hover a {
    background-color: #000;
    color: #fff;
}

.menu-item:hover .sub-menu li:hover a {
    color: #fff;
}

.menu-item-has-children:hover .sub-menu {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;    
}

.log-sign {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.btn {
    display: inline-block;
    padding: .5rem 1.3rem;
    font-size: .8rem;
    border: 2px solid var(--clr-light);
    border-radius: 2rem;
    line-height: 1;
    margin: 0 .2rem;
    transition: .3s;
    text-transform: uppercase;
}

.btn.solid,
.btn.transparent:hover {
    background-color: var(--clr-light);
    color: #000;
}

.btn.transparent,
.btn.solid:hover {
    background-color: transparent;
    color: var(--clr-light);
}

.hamburger-menu-container {
    flex: 1;
    display: none;
    align-items: center;
    justify-content: flex-end;
}

.hamburger-menu {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hamburger-menu div {
    width: 1.6rem;
    height: 3px;
    border-radius: 3px;
    background-color: var(--clr-light);
    position: relative;
    z-index: 1001;
    transition: .5s;
}

.hamburger-menu div:before,
.hamburger-menu div:after {
    content: '';
    position: absolute;
    width: inherit;
    height: inherit;
    background-color: var(--clr-light);
    border-radius: 3px;
    transition: .5s;
}

.hamburger-menu div:before {
    transform: translateY(-7px);
}

.hamburger-menu div:after {
    transform: translateY(7px);
}

#check {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    z-index: 90000;
    cursor: pointer;
    opacity: 0;
    display: none;
}

#check:checked~.hamburger-menu-container .hamburger-menu div {
    background-color: transparent;
}

#check:checked~.hamburger-menu-container .hamburger-menu div:before {
    transform: translateY(0) rotate(-45deg);
}

#check:checked~.hamburger-menu-container .hamburger-menu div:after {
    transform: translateY(0) rotate(45deg);
}

.menu-item-has-children>a:after {
    content: '\f0d7';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 8px;
    transition: .3s ease-in-out;
}

.menu-item-has-children:hover>a:after {
    transform: rotate(180deg);
}

@keyframes animation {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.upper_header {
    background-color: #000;
    padding: 10px 0;
}

.social_head {    
    color: #fff;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    width: 100%;
    gap: 15px;
}

.social_head li i {
    margin-right: 10px;
}

@media (max-width: 920px) {
    .menu-item-has-children > a::after {
        content: none;
    }
    .hamburger-menu-container {
        display: flex;
    }

    #check {
        display: block;
    }

    .nav-btn {
        position: fixed;
        height: calc(100vh - 3rem);
        top: 3rem;
        left: 0;
        width: 100%;
        background-color: var(--clr-btn);
        flex-direction: column;
        align-items: center;
        justify-content: unset;
        overflow-x: hidden;
        overflow-y: auto;
        transform: translateX(100%);
        transition: .65s;
    }

    #check:checked~.nav-btn {
        transform: translateX(0);
    }

    #check:checked~.nav-btn .menu-item,
    #check:checked~.nav-btn .log-sign {
        animation: animation .5s ease forwards var(--i);
    }

    .nav-links {
        flex: initial;
        width: 100%;
    }

    .nav-links ul {
        flex-direction: column;
    }

    .menu-item {
        width: 100%;
        opacity: 1;
    }

    .menu-item a {
        line-height: 1;
        padding: 1.6rem 2rem;
    }

    .menu-item:hover a {
        transform: scale(1);
        background-color: var(--clr-nav-hover);
    }

    .sub-menu {
        position: initial;
        transform: initial;
        opacity: 1;
        pointer-events: auto;
        width: 100%;
        padding: 0;
        display: none;
    }
    

    .menu-item:hover .sub-menu {
        display: block;
    }

    .log-sign {
        flex: initial;
        width: 100%;
        padding: 1.5rem 1.9rem;
        justify-content: center;
        opacity: 1;
        transform: translateY(15px);
    }
}

@media (max-width: 575px) {
    .logo img {
        max-width: 130px;
    }    
}