body {
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 15px 8%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
    color: #1f2937;
}

.logo img {
    height: 35px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.nav-links li a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #7c3aed;
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

.nav-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-loan {
    background-color: #7c3aed;
    color: #fff;
}

.apply-loan:hover {
    background-color: #6d28d9;
}

.partner-login {
    background-color: #22c55e;
    color: #fff;
}

.partner-login:hover {
    background-color: #16a34a;
}

/* ===== Responsive Logic ===== */

/* Hidden Checkbox for Mobile Toggle */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: #333;
    height: 2px;
    width: 25px;
    position: relative;
    transition: all 0.3s;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}

.nav-toggle-label span::before { bottom: 8px; }
.nav-toggle-label span::after { top: 8px; }

/* Mobile Menu Styles */
@media (max-width: 992px) {
    .nav-toggle-label {
        display: block; /* Show hamburger */
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        gap: 0;
        text-align: center;
        max-height: 0; /* Hidden state */
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-links li {
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-links li a {
        display: block;
        padding: 20px;
        width: 100%;
    }

    .nav-buttons {
        flex-direction: column;
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-buttons button {
        width: 100%;
        margin: 0;
    }

    /* Toggle visibility when checkbox is checked */
    .nav-toggle:checked ~ .nav-menu {
        max-height: 500px;
    }

    /* Hamburger to X animation */
    .nav-toggle:checked ~ .nav-toggle-label span {
        background: transparent;
    }
    .nav-toggle:checked ~ .nav-toggle-label span::before {
        transform: rotate(45deg);
        bottom: 0;
    }
    .nav-toggle:checked ~ .nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }
}