.header{
    background-color:#ffffff;
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translate(-50%);
    width: 1260px;
    border-radius: 15px;
    z-index:999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.255rem 1.25rem;  
}
.logo img {
    height: 48px;
}

.nav-center ul{
   
    display: flex;
    gap: 2.5rem;
}
.nav-center a, .nav-right a {
    font-size: 1.25rem;
    color: #333333;
}
.nav-center a:hover, 
.nav-right  a:hover {
    color: #7c3aed;
}

.nav-right ul {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}
.nav-right img{
    height: 20px;
}

.nav-right a:hover img{
    opacity: 0.7;
}

.nav-container{
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    flex:1;
    margin-left: 10rem;
}

.menu-toggle {
    display: none;
}

.menu-icon{
    width: 30px;
    height: 30px;
    display: none;
    cursor: pointer;
    z-index:1001;
}

.menu-icon img{
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.menu-icon:hover img{
    opacity: 0.7;
}

@media(max-width: 1280px){
    .header{
        width: calc(100% - 40px);    
    }
    
    .menu-icon{
        display: block;
    }

    .nav-container{
        position: fixed;
        top: 0;
        width: 200px;
        right: -100%;
        flex-direction:column;
        padding: 80px 20px 20px;
        background-color: #ffffff;
        gap: 2rem;
        transition: right 0.3s ease;
        align-items: flex-start;    
    }

    .nav-center, .nav-right{
        width:100%;
        text-align: center;
    }

    .nav-center ul, .nav-right ul{
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .nav-center a, .nav-right a{
        width: 100%;
        border-bottom: 1px solid #eeeeee;
        padding: 0.3rem 0;
        font-size: 1rem;
        display: block;
    }

    .menu-toggle:checked ~ .nav-container {
        right: 0;
    }
}

