/* ============================================
   FOOTER LINKS - COMPACT SPACING (DESKTOP)
   Quick Links & Our Courses - Reduced Line Spacing
   Desktop View Only (min-width: 768px)
   Mobile: Already perfect (1.2px spacing)
   ============================================ */

/* ============================================
   BASE STYLES - ALL VIEWS (Ensure Visibility)
   ============================================ */

/* Ensure footer links are always visible */
footer .footer-links,
.footer-links {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

footer .footer-links li,
.footer-links li {
    display: list-item !important;
    visibility: visible !important;
    opacity: 1 !important;
}

footer .footer-links li a,
.footer-links li a {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Desktop view - compact spacing to match mobile */
@media (min-width: 768px) {
    
    /* ============================================
       1. QUICK LINKS & OUR COURSES ONLY - COMPACT LIST
       Only apply to .footer-links class (Quick Links & Our Courses)
       Exclude .contact-list and other sections
       ============================================ */
    
    /* Footer links list - ONLY .footer-links class - reset spacing - left aligned */
    footer .footer-links,
    .footer-links {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        margin-top: 2px !important;
        text-align: left !important;
    }
    
    /* Footer list items - ONLY .footer-links - compact spacing (4px) */
    footer .footer-links li,
    .footer-links li {
        margin: 0 !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        padding: 0 !important;
        padding-top: 4px !important;
        padding-bottom: 4px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        line-height: 1.5 !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Remove bottom border from last item - ONLY .footer-links */
    footer .footer-links li:last-child,
    .footer-links li:last-child {
        border-bottom: none !important;
        padding-bottom: 4px !important;
    }
    
    /* Remove any nested element spacing - ONLY .footer-links */
    footer .footer-links li *,
    .footer-links li * {
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Footer links - ONLY .footer-links - compact spacing (4px) - original gray color - left aligned */
    footer .footer-links li a,
    .footer-links li a {
        font-size: 14px !important;
        line-height: 1.5 !important;
        padding: 0 !important;
        padding-block: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: block !important;
        text-align: left !important;
        color: #b0b0b0 !important;
        text-decoration: none !important;
        transition: color 0.3s ease, padding-left 0.3s ease !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Remove any <br> or empty elements inside - ONLY .footer-links */
    footer .footer-links li br,
    .footer-links li br {
        display: none !important;
        height: 0 !important;
        line-height: 0 !important;
    }
    
    /* Hover effect - smooth (white on hover) - ONLY .footer-links */
    footer .footer-links li a:hover,
    .footer-links li a:hover {
        color: #ffffff !important;
        padding-left: 8px !important;
    }
    
    /* ============================================
       2. OVERRIDE INLINE STYLES - ONLY .footer-links
       ============================================ */
    
    /* Override inline margin-bottom - ONLY .footer-links */
    footer .footer-links li[style*="margin-bottom"],
    .footer-links li[style*="margin-bottom"] {
        margin-bottom: 0 !important;
    }
    
    /* Override inline padding-bottom - ONLY .footer-links - set to 4px */
    footer .footer-links li[style*="padding-bottom"],
    .footer-links li[style*="padding-bottom"] {
        padding-bottom: 4px !important;
        padding-top: 4px !important;
    }
    
    /* Override inline margin-bottom - ONLY .footer-links - force zero */
    footer .footer-links li[style*="margin-bottom"],
    .footer-links li[style*="margin-bottom"] {
        margin-bottom: 0px !important;
        margin-top: 0px !important;
    }
    
    /* Override footer-professional.css spacing - ONLY .footer-links - set to 4px */
    footer .footer-links li {
        margin-bottom: 0 !important;
        padding-bottom: 4px !important;
        padding-top: 4px !important;
        margin-top: 0 !important;
    }
    
    /* Ensure links have proper spacing from footer-professional.css - ONLY .footer-links - left aligned */
    footer .footer-links li a {
        padding: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        display: block !important;
        text-align: left !important;
        line-height: 1.5 !important;
    }
    
    /* Remove the ::before pseudo-element (red triangle arrow) - ONLY .footer-links */
    footer .footer-links li::before,
    .footer-links li::before {
        content: none !important;
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Override inline border-bottom - ONLY .footer-links */
    footer .footer-links li[style*="border-bottom"],
    .footer-links li[style*="border-bottom"] {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    
    /* Ensure list items are left aligned - ONLY .footer-links */
    footer .footer-links li {
        text-align: left !important;
    }
}

/* ============================================
   MOBILE VIEW - ENSURE VISIBILITY
   ============================================ */

@media (max-width: 767px) {
    /* Ensure footer links are visible on mobile - CENTER ALIGNED */
    footer .footer-links,
    .footer-links {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: center !important;
    }
    
    footer .footer-links li,
    .footer-links li {
        display: list-item !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 !important;
        padding: 2px 0 !important;
        border: none !important;
        text-align: center !important;
    }
    
    footer .footer-links li a,
    .footer-links li a {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #b0b0b0 !important;
        text-decoration: none !important;
        font-size: 14px !important;
        padding: 8px 0 !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    footer .footer-links li a:hover,
    .footer-links li a:hover {
        color: #ffffff !important;
        transform: scale(1.05);
    }
}
