/* Navbar Container */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Desktop Menu Styles */
.desktop-menu {
    align-items: center;
    margin-left: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd700;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: "▼";
    margin-left: 5px;
    font-size: 10px;
    position: relative;
    top: -2px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); */
    border-radius: 8px;
    padding: 0px 0;
    margin-top: 0;
    z-index: 1000;
    list-style: none;
    border-top: 20px solid #0072ee; 
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.dropdown-menu li a:hover {
    background: #f5f5f5;
    color: #cf2939;
}

/* Mobile Menu Toggle Button */
.navbar-toggler {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.navbar-toggler-icon {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: all 0.3s;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: all 0.3s;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #cf2939, #5e0009);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.mobile-nav-menu > li {
    margin-bottom: 5px;
}

.mobile-nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-nav-menu > li > a:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-nav-menu svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Mobile Dropdown */
.mobile-dropdown-menu {
    display: none;
    list-style: none;
    padding-left: 30px;
    margin-top: 5px;
}

.mobile-dropdown-menu.active {
    display: block;
}

.mobile-dropdown-menu li a {
    display: block;
    padding: 8px 15px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 14px;
    border-radius: 5px;
}

.mobile-dropdown-menu li a:hover {
    background: rgba(255,255,255,0.1);
}

.dropdown-toggle {
    position: relative;
}

.dropdown-toggle .chevron-down {
    float: right;
    transition: transform 0.3s;
    width: 16px;
    height: 16px;
    margin-left: auto;
}

.dropdown-toggle.active .chevron-down {
    transform: rotate(180deg);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

.mobile-overlay.active {
    display: block;
}

/* Mobile Sidebar Footer */
.mobile-sidebar-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.social-links-mobile {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links-mobile a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links-mobile a:hover {
    background: #fff;
    color: #cf2939;
    transform: translateY(-3px);
}

.social-links-mobile a svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Tips Menu with Pulsing Dot */
.tips-menu-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
}

.tips-pulse-dot {
    width: 8px;
    height: 8px;
    background: #00ff41;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    animation: tipsPulse 2s infinite;
    box-shadow: 0 0 8px #00ff41, 0 0 15px #00ff41;
}

.tips-pulse-dot::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #00ff41;
    border-radius: 50%;
    animation: tipsPulseRing 2s infinite;
    opacity: 0;
}

@keyframes tipsPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes tipsPulseRing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* For Mobile Menu */
.mobile-nav-menu .tips-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-nav-menu .tips-pulse-dot {
    margin-left: auto;
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 991px) {
    .desktop-menu {
        display: none !important;
    }
    
    .navbar-toggler {
        display: block;
    }
    .mobile-dropdown-menu {
        padding-left: 15px;
    }
}

@media (min-width: 992px) {
    .navbar-toggler {
        display: none;
    }
    
    .mobile-sidebar,
    .mobile-overlay {
        display: none !important;
    }
}