/* Mega Menu Styles */
.mega-menu {
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    margin: 0 auto;
    border-radius: 8px;
    padding: 20px;
    width: 95vw !important;
    max-width: 1500px;
    background-color: #f5f7f5 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.mega-menu .dropdown-header {
    padding: 10px 15px 5px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.mega-menu .dropdown-header a {
    font-size: 1.1rem;
}

/* Main category styling */
.main-category-item {
    padding: 12px;
    text-align: right;
    background-color: white;
    border-radius: 8px;
    margin: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.main-category-item a {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1e3b01 !important;
}

/* Child category styling */
.child-category-item {
    text-align: right;
    background-color: white;
    transition: all 0.3s;
    border: 2px solid white !important;
    min-height: 45px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.child-category-item:hover {
    border-color: #3dcd58 !important;
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.child-category-item a {
    font-weight: 500;
    display: block;
    padding: 8px;
    color: #1e3b01 !important;
    width: 100%;
    font-size: 0.9rem;
}

.mega-menu .dropdown-item {
    padding: 5px 15px;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.2s;
}

.mega-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
    padding-right: 20px;
}

/* Navbar adjustments */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #3dcd58 !important;
}

.navbar-nav .nav-link {
    padding: 6px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.2s;
    color: white !important;
}

.navbar-nav .nav-item {
    margin: 0 10px;
}

.navbar-nav .nav-link:hover {
    color: #f0f0f0 !important;
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .mega-menu {
        position: static !important;
        width: 100% !important;
        box-shadow: none;
        border: 1px solid #dee2e6;
        margin-top: 5px;
        padding: 10px;
    }
    
    .main-category-item {
        margin: 5px 0;
        padding: 10px;
    }
    
    .child-category-item {
        margin-bottom: 10px;
    }
    
    .mega-menu .col-md-3 {
        border-end: none !important;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    .mega-menu .col-md-9 .row {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .child-category-item {
        font-size: 0.9rem;
        padding: 8px !important;
    }
    
    .main-category-item a {
        font-size: 1rem;
    }
}

/* Mobile styles for fade images */
@media (max-width: 768px) {
    .fade-grid {
        flex-direction: column;
        height: auto;
        gap: 15px;
    }
    
    .fade-left, .fade-right {
        height: 200px;
    }
}