/* Navbar Container */
.navbar-container {
    display: flex;
    flex-direction: column;
    height: 240px;
    background: linear-gradient(to bottom, var(--main-color) 15%, var(--secondary-color) 15%);
    padding: 0;
    background-color: #fff;
}

/* Logo and Brand Section */
.logo-brand-section {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the logo */
    height: 60%;
    background: transparent; /* No background for transparency */
}

.nav-logo {
    width: 190px;
    height: 190;
    transition: transform 0.3s ease;
    position: relative; /* Center naturally */
    z-index: 10;
}

.navbar-brand {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--main-color);
    letter-spacing: -1.5px;
    font-family: 'Bubblegum Sans', cursive;
}

/* 🔴 NEW DESKTOP TOP LOGO STYLES */
.desktop-top-logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: auto;
    object-fit: contain;
}

.desktop-top-logo-2 {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 100%;
}

/* Navigation Links Section */
.nav-links-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 30%;
    background: var(--main-color);
    width: 100%;
    position: relative;
}

.nav-link {
    font-weight: 500;
    padding: 0.75rem 1.5rem !important;
    color: white !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem !important;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(0, 170, 159, 0.05) !important;
    padding-left: 1.75rem !important;
}

/* Desktop-specific styles */
@media (min-width: 992px) {
    .navbar-container {
        flex-direction: column-reverse; /* Nav links on top, logo-brand below */
        height: 200px;
    }

    .nav-links-section {
        height: 50px;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        position: relative; /* 🔴 Added for logo positioning */
    }

    .logo-brand-section {
        height: 150px;
        justify-content: center;
        width: 100%;
        background-color: transparent; /* No background */
    }

    .nav-logo {
        position: relative; /* Center naturally */
    }

    .login-btn {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* 🔴 Ensure new logo stays on desktop only */
    .desktop-only-logo, .desktop-only-logo-2 {
        display: block !important;
    }
}

/* Mobile Optimization */
@media (max-width: 991px) {
    .navbar-container {
        height: auto;
        background: var(--secondary-color);
        padding: 0;
        width: 100%;
        flex-direction: column;
    }

    .logo-brand-section {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        height: auto;
        padding: 10px 15px;
        background: transparent;
        width: 100%;
        position: relative; /* 🔴 Added for toggle positioning */
        justify-content: space-between;
    }

    .nav-logo {
        width: clamp(40px, 12vw, 60px);
        height: clamp(40px, 12vw, 60px);
        position: relative;
    }

    .nav-links-section {
        height: auto;
        justify-content: center;
        padding: 0;
        background: var(--secondary-color);
        width: 100%;
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        padding: 20px;
        background: var(--main-color);
        transition: 0.3s;
        z-index: 1000;
        overflow-y: auto;
    }

    .navbar-collapse.show {
        left: 0;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        margin-bottom: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .nav-link {
        padding: 1rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        color: white !important;
        font-size: 1.1rem;
    }

    .dropdown-menu {
        background: rgba(255,255,255,0.1) !important;
        border: none !important;
        margin-left: 15px !important;
        display: none;
    }

    .dropdown-menu.show {
        display: block !important;
    }

    .dropdown-toggle::after {
        margin-left: 0.5rem;
        transition: transform 0.3s ease;
    }

    .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
}

@media (max-width: 1251px) {
    /* 🔴 Hide desktop logo on mobile */
    .desktop-top-logo , .desktop-top-logo-2{
        display: none !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    .nav-logo {
        width: clamp(30px, 10vw, 50px);
        height: clamp(30px, 10vw, 50px);
    }
    .navbar-collapse {
        width: 90%;
        max-width: 250px;
    }
}
.navbar-container {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-links-section {
    padding: 0 20px;
}

.nav-link {
    position: relative;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--slogan-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}