/* --- New Class (wider_dropdown) for the Drop down menu   --- */
/* --- 1. GENERAL & DESKTOP STYLES --- */
.wider_dropdown .sub-menu, 
.wider_dropdown .children {
    width: auto;
    min-width: 100%;
    white-space: nowrap;
    display: block;
    padding: 0;
    border: 1px solid #ddd;
    background-color: #fff;
    z-index: 9999;
}

/* DESKTOP SPACING: Increased padding for extra space */
.wider_dropdown .sub-menu li a {
    display: block;
    padding: 16px 30px; /* Top/Bottom: 16px | Left/Right: 30px */
    text-decoration: none;
    transition: all 0.3s ease !important;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.wider_dropdown .sub-menu li:last-child a {
    border-bottom: none;
}

/* --- 2. HOVER EFFECTS --- */
.wider_dropdown .sub-menu li:hover > a, 
.wider_dropdown .sub-menu li a:hover {
    background-color: #f5f5f5 !important;
    color: #000 !important;
    padding-left: 35px !important; /* Slightly more nudge to match wider padding */
}

/* --- 3. MOBILE SCROLL & RESPONSIVENESS --- */
@media (max-width: 991px) {
    .wider_dropdown .sub-menu, 
    .wider_dropdown .children {
        max-height: 400px;
        overflow-y: auto !important; 
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    
    /* MOBILE SPACING: Kept slightly tighter for small screens */
    .wider_dropdown .sub-menu li a {
        font-size: 15px;
        padding: 12px 20px; 
    }
}
/* --- End Class (wider_dropdown) for the Drop down menu   --- */