.logo {
    display: inline-block;
    min-width: 90px;
    max-width: 110px;
    padding: 5px;
    vertical-align: top;
    width: 10%;
}

/* --- NAVIGATION BAR --- */
.nav {
    background: #ffffff;
    /*border-bottom: 1px solid #e2e8f0;*/
    height: 70px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Nav Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #2D3038;
    font-weight: 500;
    transition: color 0.3s;
}

/* Hide Checkbox */
#menu-toggle {
    display: none;
}

/* Hamburger Icon Styling */
.hamburger {
    display: none;
    /* Hidden on desktop */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2D3038;
    border-radius: 3px;
    transition: 0.3s;
}

.nav-items {
    text-align: right;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-items a {
    color: #2D3038;
    background-color: #ffffff;
    text-decoration: none;
    padding: 15px;
    font-weight: 500;
    font-size: 1em;
}

.nav-items a:hover {
    color: #1448C9;
    text-decoration: none;
}

/* --- MOBILE VIEW (MAX-WIDTH 768px) --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        /* Show hamburger */
        margin-right: 10px;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        /* Hidden by default */
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        border-bottom: 0 solid #e2e8f0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-top: 1px solid #f0f0f0;
    }

    .nav-links a {
        display: block;
        padding: 10px;
    }

    /* The Magic Logic: When checkbox is checked, show menu */
    #menu-toggle:checked~.nav-links {
        max-height: 300px;
        /* Adjust based on number of links */
        border-bottom-width: 1px;
    }

    /* Hamburger Animation to 'X' */
    #menu-toggle:checked~.hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    #menu-toggle:checked~.hamburger span:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked~.hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}