/* Rod-style Floating Navbar */
/* Rod-style Floating Navbar */
.navbar {
    position: absolute !important;
    top: 10px !important;
    /* Reduced top spacing */
    left: 0;
    right: 0;
    z-index: 999999 !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

/* Ensure Solid Navbar (Other Pages) stays in flow and doesn't scroll/overlay */
.navbar-solid {
    position: relative !important;
    top: 0 !important;
    margin-bottom: 20px !important;
    /* Increased spacing to prevent card overlap */
}

.navbar-rod-wrapper {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    position: relative;
    z-index: 999998 !important;
}

.navbar-rod {
    background: #ffffff;
    padding: 6px 20px;
    /* Reduced from 10px 25px */
    border-radius: 50px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Slightly softer shadow */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Tighter border */
    transition: all 0.3s ease;
    min-height: 46px;
    /* Reduced from 55px */
    width: auto;
    max-width: 100%;
    position: relative;
    z-index: 999998 !important;
}


@media (min-width: 992px) {
    .navbar-rod .collapse.navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
        align-items: center;
    }

    .navbar-rod .navbar-nav {
        margin-left: auto;
        flex-direction: row;
    }
}

/* 1. HOMEPAGE CONFIGURATION */
.navbar-transparent .navbar-rod {
    background: #ffffff !important;
    backdrop-filter: none;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-transparent .navbar-rod .nav-link,
.navbar-transparent .navbar-rod .bi-person-circle {
    color: #000000 !important;
}

.navbar-rod .navbar-brand {
    display: flex !important;
    align-items: center;
    margin-right: 1.2rem;
    /* Reduced from 1.5rem */
    margin-bottom: 0 !important;
    padding: 0;
}

.navbar-rod .navbar-brand img {
    height: 28px !important;
    /* Reduced from 32px */
    width: auto;
    display: block;
    filter: none !important;
}

.navbar-rod .nav-link {
    padding: 0.2rem 0.8rem !important;
    /* Compact horizontal spacing */
    font-size: 0.95rem;
    /* Slightly smaller font */
    font-weight: 300;
    font-family: 'Manrope', sans-serif;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .navbar-rod {
        padding: 5px 20px;
        width: 94% !important;
        justify-content: space-between;
        margin: 0 auto;
    }

    /* Ultra-smooth Mobile Navigation Transition */
    .collapsing {
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .navbar-collapse {
        position: fixed !important;
        top: 80px !important;
        left: 3% !important;
        right: 3% !important;
        margin-top: 0;
        /* Gap between rod and menu */
        background: #ffffff;
        border-radius: 24px;
        padding: 24px !important;
        width: 94% !important;
        /* Matches parent rod width perfectly */
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25) !important;
        border: 1px solid rgba(0, 0, 0, 0.05);
        z-index: 2147483647 !important;
        /* Maximum possible z-index value - ensures dropdown appears above ALL content */
        max-height: calc(100vh - 100px);
        overflow-y: auto;

        /* Smooth Animation logic */
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: top;
    }

    .collapse:not(.show) {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

    .collapse.show {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .navbar-transparent .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
    }

    .navbar-nav {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .navbar-nav .nav-link {
        font-size: 1rem !important;
        /* Slightly smaller mobile font */
        padding: 8px !important;
        /* Reduced from 10px */
        color: #000000 !important;
    }

    .navbar-toggler-icon {
        width: 20px !important;
        /* Tighter toggler */
        height: 20px !important;
        filter: brightness(0) !important;
        opacity: 1 !important;
    }
}