/* ==========================================================
   FOOTER.CSS – InovEdu Africa School Directory Footer
   Mobile-first, BEM-ish naming, consistent with header styling
   Version: 1.2 | Complete with footer bottom styling
   ========================================================== */

   /* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

/* Font Variables for Consistency */
/* :root {
    --font-primary: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-heading: 'Poppins', 'Inter', system-ui, sans-serif;
    --font-accent: 'Manrope', 'Inter', system-ui, sans-serif;
} */

/* 1.  FOOTER CONTAINER & LAYOUT
---------------------------------------------------------- */
.footer-content {
    background: linear-gradient(135deg, #1a365d 0%, #000080 50%, #4a6fff 100%);
    color: white;
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

/* 2.  FOOTER COLUMNS GRID
---------------------------------------------------------- */
.footer-columns {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

/* 3.  FOOTER COLUMN STYLING
---------------------------------------------------------- */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa, transparent);
    border-radius: 2px;
}

/* 4.  CONTACT INFORMATION STYLING
---------------------------------------------------------- */
.footer-contact .contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.contact-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #93c5fd;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    color: #60a5fa;
    transform: scale(1.1);
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* 5.  SOCIAL MEDIA LINKS
---------------------------------------------------------- */
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.3);
    border-color: rgba(96, 165, 250, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

/* 6.  FOOTER LINKS LIST
---------------------------------------------------------- */
.footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list li {
    margin: 0;
}

.footer-links-list a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    position: relative;
    overflow: hidden;
}

.footer-links-list a::before {
    content: '›';
    font-size: 16px;
    color: #93c5fd;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.footer-links-list a:hover::before {
    color: #60a5fa;
    transform: translateX(4px);
}

.footer-links-list a:hover {
    color: #ffffff;
    transform: translateX(8px);
}

/* 7.  DYNAMIC LISTS (LATEST SCHOOLS & USERS)
---------------------------------------------------------- */
.dynamic-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Latest School Items */
.latest-school-item {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-bottom: 8px;
}

.school-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s ease;
    width: 100%;
}

.school-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-school-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.footer-school-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}

.country-flag {
    font-size: 16px;
    flex-shrink: 0;
}

.footer-school-title {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.school-category-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #e2e8f0;
}

.register-date-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #e2e8f0;
}

/* Latest User Items */
.latest-user-item {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-bottom: 8px;
}

.user-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s ease;
    width: 100%;
}

.user-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
}

.rounded-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.join-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
}

.calendar-icon {
    flex-shrink: 0;
    color: #94a3b8;
    transition: color 0.3s ease;
}

/* 8.  FOOTER BOTTOM SECTION
---------------------------------------------------------- */
.footer-bottom {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
}

.footer-bottom-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

/* Logo Group Styling */
.logo-group {
    display: flex;
    justify-content: center;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 12px;
}

.footer-logo-link:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.05);
}

.footer-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-logo-name {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Footer Links Styling */
.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.separator {
    color: #64748b;
    font-size: 12px;
}

/* Copyright Styling */
.footer-copyright {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* 9.  MOBILE BOTTOM NAVIGATION
---------------------------------------------------------- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 128, 0.1);
    display: none;
    z-index: 999;
    padding: 8px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 128, 0.1);
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 4px;
    background: none;
    border: none;
    color: #4a5568;
}

.nav-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
}

/* 10. RESPONSIVE BREAKPOINTS
---------------------------------------------------------- */

/* Tablet Devices (768px - 1024px) */
@media (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 32px;
        padding: 0 20px 32px;
    }
    
    .footer-bottom-content {
        padding: 0 20px;
    }
}

/* Mobile Devices (768px and below) */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 16px 24px;
    }
    
    .footer-bottom-content {
        padding: 0 16px;
        gap: 16px;
    }
    
    .footer-links {
        gap: 12px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    body {
        padding-bottom: 60px;
    }
}

/* Small Mobile Devices (480px and below) */
@media (max-width: 480px) {
    .footer-columns {
        padding: 0 12px 20px;
        gap: 28px;
    }
    
    .footer-bottom-content {
        padding: 0 12px;
        gap: 12px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .separator {
        display: none;
    }
    
    .footer-logo-name {
        font-size: 18px;
    }
    
    .footer-copyright {
        font-size: 13px;
    }
}

/* 11. HOVER EFFECTS & TRANSITIONS
---------------------------------------------------------- */
.latest-school-item:hover,
.latest-user-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.school-link:hover .school-thumbnail,
.user-link:hover .rounded-avatar {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.school-link:hover,
.user-link:hover {
    color: #ffffff;
}

.school-link:hover .calendar-icon,
.user-link:hover .calendar-icon {
    color: #e2e8f0;
}

.mobile-bottom-nav .nav-item:hover {
    background: rgba(0, 0, 128, 0.05);
    color: #000080;
    transform: translateY(-2px);
}

/* 12. ACCESSIBILITY & PERFORMANCE
---------------------------------------------------------- */
.footer-links a:focus,
.social-link:focus,
.mobile-bottom-nav .nav-item:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
    }
}

/* Smooth animations */
.footer-column {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 13. ALTERNATIVE FONT COMBINATIONS (COMMENTED - UNCOMMENT TO USE)
---------------------------------------------------------- */

/* Option 1: Modern Professional (Inter + Poppins) - CURRENTLY ACTIVE */
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap'); */
/* --font-primary: 'Inter', system-ui, sans-serif; */
/* --font-heading: 'Poppins', 'Inter', system-ui, sans-serif; */

/* Option 2: Clean & Corporate (Inter + Manrope) */
 /* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap'); 
 --font-primary: 'Inter', system-ui, sans-serif; 
 --font-heading: 'Manrope', 'Inter', system-ui, sans-serif;  */

/* Option 3: Friendly & Approachable (Nunito + Open Sans) */
/* @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=Nunito:wght@400;500;600;700;800&display=swap'); */
/* --font-primary: 'Open Sans', system-ui, sans-serif; */
/* --font-heading: 'Nunito', 'Open Sans', system-ui, sans-serif; */

/* Option 4: African Inspired (Urbanist + Plus Jakarta Sans) */
/* @import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Urbanist:wght@400;500;600;700;800&display=swap'); */
/* --font-primary: 'Plus Jakarta Sans', system-ui, sans-serif; */
/* --font-heading: 'Urbanist', 'Plus Jakarta Sans', system-ui, sans-serif; */


/* ==========================================================
   END OF FOOTER.CSS
   InovEdu Africa School Directory Footer System
   ========================================================== */

