
nav {
    width: 100vw;
    max-width: 100%;
    background: linear-gradient(105deg, 
        white 0px, 
        white 220px,  
        rgb(35, 177, 77) 250px, 
        rgb(35, 177, 77) 100% 
    );
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif !important;
    transition: background 0.3s ease-in-out; 
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    transition: max-height 0.3s ease-in-out; 
}

.nav-links a {
    color: white; 
    background: transparent; 
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    padding: 12px 18px;
    border-radius: 10px;
    border: 2px solid white; 
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
    display: inline-block;
}

.nav-links a.active {
    background: white; 
    color: rgb(35, 177, 77); 
    font-weight: bold;
    border: 2px solid rgb(35, 177, 77); 
}


.nav-links a:hover {
    background: white; 
    color: rgb(35, 177, 77);
    border: 2px solid rgb(35, 177, 77);
}


.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    transition: all 0.3s ease-in-out;
}

.burger span {
    display: block;
    width: 30px;
    height: 4px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 1030px) {
    .burger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        cursor: pointer;
    }

    .burger span {
        display: block;
        width: 30px;
        height: 4px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        background: rgb(35, 177, 77);
        text-align: center;
        padding: 20px 0;
        height: auto;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        z-index: 999;
        border-top: 2px solid white;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        max-height: 400px;
    }

    .nav-links li {
        display: flex;
        justify-content: center;
    }

    .nav-links a {
        color: white;
        background: transparent;
        border: 2px solid white;
        font-size: 20px;
        padding: 12px 20px; 
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-radius: 10px;
        white-space: nowrap;
        min-width: max-content; 
        max-width: 90%; 
        padding-left: 30px; 
        padding-right: 30px; 
        transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
    }

    .nav-links a:hover {
        background: white;
        color: rgb(35, 177, 77);
        border: 2px solid rgb(35, 177, 77);
    }

    .burger.toggle span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    
    .burger.toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.toggle span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}