/* ============================================
   PROFESSIONAL FOOTER DESIGN
   Modern, Clean, Professional Look
   Desktop & Mobile Optimized
   ============================================ */

/* ============================================
   1. FOOTER BASE - PROFESSIONAL FOUNDATION
   ============================================ */

footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #b0b0b0;
    padding-top: 60px;
    font-size: 14px;
    border-top: 4px solid var(--primary-red, #c62828);
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

/* Subtle red gradient overlay on footer */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(198, 40, 40, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(198, 40, 40, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

footer > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   2. FOOTER GRID - MODERN LAYOUT
   ============================================ */

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 2.5rem;
    gap: 2.5rem;
    max-width: min(1500px, 100%);
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.footer-col {
    flex: 1 1 100%;
    min-width: 0;
}

@media (min-width: 480px) {
    .footer-col {
        flex: 1 1 calc(50% - 1.25rem);
    }
}

@media (min-width: 768px) {
    .footer-col {
        flex: 1 1 calc(25% - 1.875rem);
        min-width: min(12.5rem, 100%);
    }
}

/* ============================================
   3. FOOTER COLUMN HEADINGS - ELEGANT
   ============================================ */

.footer-col h3 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(198, 40, 40, 0.3);
    display: inline-block;
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Red gradient line under Quick Links, Our Courses, Contact Us */
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red, #c62828) 0%, transparent 100%);
    transition: width 0.3s ease;
}
.footer-col:hover h3::after {
    width: 100%;
}

/* ============================================
   4. ABOUT SECTION - ENHANCED TYPOGRAPHY
   ============================================ */

.footer-col p {
    text-align: justify;
    line-height: 1.8;
    color: #ffffff;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

/* ============================================
   5. FOOTER LINKS - PROFESSIONAL STYLING
   ============================================ */

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.footer-links li::before {
    content: '▸';
    color: var(--primary-red, #c62828);
    margin-right: 10px;
    font-size: 12px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.footer-links li:hover::before {
    opacity: 1;
    transform: translateX(3px);
}

.footer-links li a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 4px 0;
    position: relative;
}

.footer-links li a:hover {
    color: #ffffff;
    padding-left: 8px;
    text-shadow: 0 0 8px rgba(198, 40, 40, 0.5);
}

/* ============================================
   6. CONTACT LIST - PROFESSIONAL LAYOUT
   ============================================ */

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    margin-bottom: 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.contact-list li:hover {
    transform: translateX(5px);
}

.contact-list li i {
    color: var(--primary-red, #c62828);
    font-size: 16px;
    margin-top: 3px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.contact-list li a,
.contact-list li span {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.contact-list li a:hover {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(198, 40, 40, 0.4);
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Footer Contact Us: phone numbers in one line, no gap */
.contact-list .phone-numbers {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0 !important;
    align-items: center;
}

.phone-numbers a {
    display: inline-block;
}

/* Head Office – bold + gradient (footer: lighter for dark bg) */
.head-office-gradient {
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.95em;
    background: linear-gradient(90deg, #8b0000, #b71c1c, #8b0000);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: headoffice-flash 1.5s ease-in-out infinite;
}
@keyframes headoffice-flash {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50%      { opacity: 0.85; filter: brightness(1.3); }
}
footer .head-office-gradient {
    background: linear-gradient(90deg, #ef5350, var(--primary-red, #c62828), #ef5350);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: headoffice-flash 1.5s ease-in-out infinite;
}

.footer-contact-intro {
    color: #b0b0b0;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 14px 0;
    padding: 0;
}

.footer-contact-link {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-contact-link:hover {
    color: var(--primary-red, #c62828);
}

/* Phone row: prevent flex growth - keep numbers close */
footer .contact-list li:has(i.fa-phone-alt) .phone-numbers,
footer .contact-list li:has(i.fa-phone) .phone-numbers {
    flex: 0 0 auto !important;
    max-width: fit-content !important;
}
footer .contact-list .phone-numbers {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0 !important;
    justify-content: flex-start !important;
    white-space: nowrap !important;
    width: auto !important;
    max-width: fit-content !important;
}
footer .contact-list .phone-numbers a {
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: inherit;
}
footer .contact-list .phone-sep {
    color: #666;
    font-weight: 300;
    user-select: none;
    margin: 0 2px !important;
    padding: 0 !important;
}

/* Mobile: 2 spaces between phone numbers */
@media (max-width: 767px) {
    footer .contact-list .phone-numbers {
        gap: 0 !important;
    }
    footer .contact-list .phone-numbers a {
        padding: 0 !important;
        flex: 0 0 auto !important;
    }
    footer .contact-list .phone-sep {
        margin: 0 0.25em !important;
    }
}
footer .contact-list .phone-numbers,
footer .contact-list .phone-numbers a,
footer .contact-list .phone-numbers .phone-sep {
    white-space: nowrap !important;
}

.footer-social-wrap {
    display: flex !important;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    padding-top: 6px !important;
    padding-bottom: 0 !important;
}
.footer-social-wrap::before {
    content: "Follow us:";
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}
.footer-social-wrap > div {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0;
}

.footer-social-link {
    color: #b0b0b0;
    font-size: 20px;
    transition: color 0.3s;
}
.footer-social-link:hover { color: #1877f2; }
.footer-social-link[href*="instagram"]:hover { color: #e4405f; }
.footer-social-link[href*="twitter"]:hover,
.footer-social-link[href*="x.com"]:hover { color: #1da1f2; }
.footer-social-link[href*="youtube"]:hover { color: #ff0000; }
.footer-social-link[href*="pinterest"]:hover { color: #bd081c; }

/* ============================================
   7. SOCIAL ICONS - REDESIGNED
   Rounded square, clean minimal, brand accent
   ============================================ */

.footer-col:last-child > div[style*="margin-top"] {
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col:last-child div[style*="display: flex"] {
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.footer-col:last-child div[style*="display: flex"] a,
.footer-social-wrap .footer-social-link {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    color: #b8b8b8 !important;
    font-size: 17px !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: hidden !important;
}

.footer-col:last-child div[style*="display: flex"] a i,
.footer-social-wrap .footer-social-link i {
    position: relative;
    z-index: 1;
    transition: transform 0.25s ease;
}

.footer-col:last-child div[style*="display: flex"] a:hover,
.footer-social-wrap .footer-social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.25);
    border-color: var(--primary-red, #c62828) !important;
    color: #fff !important;
    background: rgba(198, 40, 40, 0.2) !important;
}

.footer-col:last-child div[style*="display: flex"] a:hover i,
.footer-social-wrap .footer-social-link:hover i {
    transform: scale(1.08);
}

/* Social Media Brand Colors on Hover */
.footer-col:last-child div[style*="display: flex"] a[href*="facebook"]:hover,
.footer-social-wrap a[href*="facebook"]:hover {
    border-color: #1877f2 !important;
    background: rgba(24, 119, 242, 0.25) !important;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3) !important;
}

.footer-col:last-child div[style*="display: flex"] a[href*="instagram"]:hover,
.footer-social-wrap a[href*="instagram"]:hover {
    border-color: #e4405f !important;
    background: rgba(228, 64, 95, 0.25) !important;
    box-shadow: 0 4px 12px rgba(228, 64, 95, 0.3) !important;
}

.footer-col:last-child div[style*="display: flex"] a[href*="twitter"]:hover,
.footer-col:last-child div[style*="display: flex"] a[href*="x.com"]:hover,
.footer-social-wrap a[href*="twitter"]:hover,
.footer-social-wrap a[href*="x.com"]:hover {
    border-color: #1da1f2 !important;
    background: rgba(29, 161, 242, 0.25) !important;
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3) !important;
}

.footer-col:last-child div[style*="display: flex"] a[href*="youtube"]:hover,
.footer-social-wrap a[href*="youtube"]:hover {
    border-color: #ff0000 !important;
    background: rgba(255, 0, 0, 0.25) !important;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3) !important;
}

.footer-col:last-child div[style*="display: flex"] a[href*="pinterest"]:hover,
.footer-social-wrap a[href*="pinterest"]:hover {
    border-color: #bd081c !important;
    background: rgba(189, 8, 28, 0.25) !important;
    box-shadow: 0 4px 12px rgba(189, 8, 28, 0.3) !important;
}

/* ============================================
   8. COPYRIGHT - ELEGANT STYLING
   ============================================ */

/* ============================================
   FOOTER SITEMAP - BOTTOM SECTION
   ============================================ */

.footer-sitemap {
    background: rgba(0, 0, 0, 0.4);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-sitemap .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-sitemap h4 {
    color: var(--primary-red, #c62828);
    font-size: 13px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.footer-sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px 20px;
}

.footer-sitemap a {
    color: #aaa;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-sitemap a:hover {
    color: var(--primary-red, #c62828);
}

/* ============================================
   COPYRIGHT - FINAL BOTTOM
   ============================================ */

.copyright {
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #888;
    font-size: 13px;
    position: relative;
}

.copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(198, 40, 40, 0.3) 50%, transparent 100%);
}

.copyright .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.copyright i.fa-heart {
    color: #c62828 !important;
    animation: heartbeat 1.5s ease-in-out infinite;
    margin: 0 4px;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ============================================
   9. RESPONSIVE DESIGN - MOBILE OPTIMIZATION
   ============================================ */

@media (max-width: 1024px) {
    .footer-col {
        width: calc(50% - 20px);
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    footer {
        padding-top: 40px;
        margin-top: 40px;
    }
    
    .footer-grid {
        flex-direction: column;
        gap: 30px;
        padding-bottom: 30px;
    }
    
    .footer-col {
        width: 100%;
        min-width: 100%;
    }
    
    .footer-col h3 {
        font-size: 18px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .footer-links li {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .contact-list li {
        margin-bottom: 15px;
        padding: 8px;
    }
    
    .copyright {
        padding: 20px 0;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    footer {
        padding-top: 30px;
        margin-top: 30px;
    }
    
    .footer-grid {
        gap: 25px;
        padding-bottom: 25px;
    }
    
    .footer-col h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-links li a {
        font-size: 13px;
    }
    
    .contact-list li {
        font-size: 13px;
        padding: 6px;
    }
    
    .copyright {
        padding: 15px 0;
        font-size: 11px;
    }
}

/* ============================================
   10. ACCESSIBILITY & PERFORMANCE
   ============================================ */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    footer *,
    footer *::before,
    footer *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus states for keyboard navigation */
.footer-links li a:focus,
.contact-list li a:focus,
.footer-col:last-child div[style*="display: flex"] a:focus {
    outline: 2px solid var(--primary-red, #c62828);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    footer {
        background: #ffffff;
        color: #000000;
        border-top: 2px solid #000000;
    }
    
    .footer-col h3 {
        color: #000000;
        border-bottom: 1px solid #000000;
    }
    
    .footer-links li a,
    .contact-list li a {
        color: #000000;
    }
}
