/* ============================================
   Footer Styles - New Design Matching Image
   ============================================ */

/* Override ALL old footer styles - ensure only new footer shows */
.footer {
    /* Restore combined radial + linear gradient for all screen sizes */
    background:
        radial-gradient(ellipse 100% 60% at 50% 40%, rgba(33, 86, 229, 0.3) 0%, rgba(20, 50, 120, 0.2) 40%, transparent 70%),
        linear-gradient(180deg, #00133A 0%, #050014 88.56%) !important;
    padding: 0 !important;
    font-family: 'Inter', sans-serif !important;
    color: #ffffff !important;
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1 !important;
    bottom: auto !important;
    background-color: transparent !important;
}

/* Override old footer-top styles - hide all old footer elements */
.footer-top {
    display: none !important;
}

.footer-install,
.footer-legal,
.footer-contact {
    display: none !important;
}

/* Ensure old footer structure doesn't show */
.footer:not(.new-footer) {
    display: none !important;
}

/* Override old footer styles from style.css */
.footer.new-footer .footer-top,
.footer.new-footer .footer-install,
.footer.new-footer .footer-legal,
.footer.new-footer .footer-contact {
    display: none !important;
}

/* Download Section - Centered */
.footer-download-section {
    padding: 60px 100px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.footer-download-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px 0;
    text-align: center;
}

.footer-download-buttons {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.footer-download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 40px;
    background: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    width: fit-content;
    min-width: 200px;
}

.footer-download-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-download-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

/* Company Info Section - Now part of column grid */
.footer-company-column {
    display: flex;
    flex-direction: column;
}

.footer-company-description {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.footer-social-icons {
    display: flex !important;
    gap: 0 !important;
    row-gap: 0 !important;
    column-gap: 0 !important;
    grid-column-gap: 0 !important;
    grid-row-gap: 0 !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.footer-social-icons .social-icon-link {
    margin: 0 !important;
    padding: 0 !important;
}

.footer-social-icons .social-icon-link:not(:last-child) {
    margin-right: 50px !important;
}

/* Force all icons in footer social section to be white */
.footer-social-icons *,
.footer-social-icons i,
.footer-social-icons .fab,
.footer-social-icons [class*="fa-"] {
    color: #ffffff !important;
}

.social-icon-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon-circle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-icon-circle i,
.social-icon-link i,
.social-icon-circle .fab,
.social-icon-link .fab,
.footer-social-icons .fab,
.footer-social-icons i,
.footer-social-icons .fa-instagram,
.footer-social-icons .fa-facebook-f,
.footer-social-icons .fa-youtube,
.footer-social-icons .fa-linkedin-in,
.social-icon-circle .fa-instagram,
.social-icon-circle .fa-facebook-f,
.social-icon-circle .fa-youtube,
.social-icon-circle .fa-linkedin-in,
.footer .footer-social-icons i,
.footer .footer-social-icons .fab,
.footer .social-icon-circle i,
.footer .social-icon-link i,
.footer .social-icon-circle .fab,
.footer .social-icon-link .fab {
    color: #ffffff !important;
    font-size: 18px;
}

/* Override Font Awesome brand colors */
.footer-social-icons .fa-instagram,
.footer-social-icons .fa-facebook-f,
.footer-social-icons .fa-youtube,
.footer-social-icons .fa-linkedin-in,
.social-icon-circle .fa-instagram,
.social-icon-circle .fa-facebook-f,
.social-icon-circle .fa-youtube,
.social-icon-circle .fa-linkedin-in {
    color: #ffffff !important;
}

/* Override old footer-bottom styles */
.footer-bottom {
    padding: 40px 100px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 24px;
    position: relative;
    grid-template-columns: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

/* Main Footer Content - 4 Columns */
.footer-main-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 60px 100px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-links li {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.footer-contact-links li:not(:has(a)) {
    color: rgba(255, 255, 255, 0.8);
}

.footer-logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: auto;
}

.footer-logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 250px;
    width: auto;
    min-height: 180px;
}

/* Base layout for large screens: three columns with even spacing */
.footer-bottom-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
    box-sizing: border-box;
}

.footer-copyright {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-align: left;
    flex: 0 0 auto;
    word-wrap: break-word;
    line-height: 1.5;
    white-space: nowrap;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.footer-legal-links a {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-link-divider {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 4px;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .footer-download-section {
        padding: 50px 80px 40px;
    }
    
    .footer-main-content {
        padding: 50px 80px;
    }
    
    .footer-bottom {
        padding: 40px 80px !important;
    }
}

@media (max-width: 1200px) {
    .footer-download-section {
        padding: 50px 60px 40px;
    }
    
    .footer-main-content {
        grid-template-columns: repeat(2, 1fr);
        padding: 50px 60px;
        gap: 40px;
    }
    
    .footer-bottom {
        padding: 40px 60px !important;
    }
}

@media (max-width: 1024px) {
    .footer-download-section {
        padding: 40px 40px 32px;
    }
    
    .footer-download-title {
        font-size: 32px;
    }
    
    .footer-main-content {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 40px;
        gap: 32px;
    }
    
    .footer-bottom {
        padding: 32px 40px !important;
    }
    
    .footer-bottom-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 20px !important;
    }
    
    .footer-social-icons {
        order: 1 !important;
        justify-content: center !important;
        gap: 0 !important;
        width: 100% !important;
        flex: none !important;
    }
    
    .footer-copyright {
        order: 2 !important;
        text-align: center !important;
        width: 100% !important;
        flex: none !important;
        white-space: normal !important;
    }
    
    .footer-legal-links {
        order: 3 !important;
        justify-content: center !important;
        width: 100% !important;
        flex: none !important;
    }
}

@media (max-width: 768px) {
    .footer-download-section {
        padding: 32px 24px 24px;
    }
    
    .footer-download-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .footer-download-buttons {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        gap: 12px;
    }
    
    .footer-download-btn {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        justify-content: center;
        padding: 14px 24px;
    }
    
    .footer-main-content {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 32px;
    }
    
    .footer-column {
        text-align: left;
    }
    
    .footer-column-title {
        font-size: 17px;
        margin-bottom: 16px;
    }
    
    .footer-links li {
        margin-bottom: 10px;
    }
    
    .footer-bottom {
        padding: 32px 24px !important;
    }
    
    .footer-bottom-content {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 24px !important;
        text-align: center;
        width: 100%;
        padding: 0;
    }
    
    .footer-social-icons {
        order: 1 !important;
        justify-content: center !important;
        gap: 0 !important;
        width: 100%;
        flex-wrap: wrap;
        flex: none !important;
    }
    
    .footer-copyright {
        text-align: center !important;
        order: 2 !important;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
        white-space: normal;
        flex: none !important;
    }
    
    .footer-legal-links {
        order: 3 !important;
        flex-wrap: wrap;
        justify-content: center !important;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
        flex: none !important;
    }
}

@media (max-width: 480px) {
    .footer-download-section {
        padding: 28px 20px 20px;
    }
    
    .footer-download-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .footer-download-btn {
        font-size: 15px;
        padding: 12px 20px;
    }
    
    .footer-download-icon {
        width: 20px;
        height: 20px;
    }
    
    .footer-main-content {
        padding: 28px 20px;
        gap: 28px;
    }
    
    .footer-column-title {
        font-size: 16px;
        margin-bottom: 14px;
    }
    
    .footer-links a,
    .footer-contact-links li {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .footer-bottom {
        padding: 28px 20px !important;
    }
    
    .footer-bottom-content {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 20px !important;
        width: 100%;
        padding: 0;
    }
    
    .footer-social-icons {
        order: 1 !important;
        width: 100%;
        display: flex !important;
        justify-content: center !important;
        gap: 0 !important;
        flex-wrap: wrap;
        flex: none !important;
    }
    
    .footer-copyright {
        order: 2 !important;
        font-size: 12px;
        width: 100%;
        text-align: center !important;
        padding: 0;
        box-sizing: border-box;
        line-height: 1.5;
        white-space: normal;
        flex: none !important;
    }
    
    .footer-legal-links {
        order: 3 !important;
        flex-direction: row;
        gap: 8px;
        align-items: center;
        justify-content: center !important;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
        flex: none !important;
    }
    
    .footer-legal-links a {
        font-size: 12px;
        text-align: center;
        display: inline-block;
    }
    
    .footer-link-divider {
        display: none;
    }
    
    .social-icon-circle {
        width: 36px;
        height: 36px;
    }
    
    .social-icon-circle i,
    .social-icon-link i,
    .social-icon-circle .fab,
    .social-icon-link .fab {
        color: #ffffff !important;
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .footer-download-title {
        font-size: 22px;
    }
    
    .footer-download-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .footer-column-title {
        font-size: 15px;
    }
    
    .footer-links a,
    .footer-contact-links li {
        font-size: 12px;
    }
    
    .footer-bottom {
        padding: 24px 16px !important;
    }
    
    .footer-bottom-content {
        gap: 14px;
    }
    
    .footer-copyright {
        font-size: 11px;
        padding: 0 5px;
    }
    
    .footer-legal-links a {
        font-size: 11px;
    }
    
    .social-icon-circle {
        width: 32px;
        height: 32px;
    }
    
    .social-icon-circle i,
    .social-icon-link i,
    .social-icon-circle .fab,
    .social-icon-link .fab {
        color: #ffffff !important;
        font-size: 14px;
    }
}
