/* Footer Component */

footer {
    background: #0B1C3F;
    padding: 6rem 5% 4rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col h4 {
    color: #FFFFFF;
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.footer-col p {
    color: #FFFFFF;
    font-size: 0.98rem;
    line-height: 1.8;
    gap: 13rem;
}

.footer-col a {
    color: #FFFFFF;
    font-size: 0.98rem;
    line-height: 1.8;
    display: block;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

.social-links a:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.social-links img {
    width: 20px;
    height: 20px;
}

/* FOOTER RESPONSIVE STYLES*/

/* Tablet (769px - 992px) */
@media (max-width: 992px) {
    footer {
        padding: 4rem 5% 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-col h4 {
        font-size: 1.1rem;
    }
}

/* Mobile Navigation (up to 768px) */
@media (max-width: 768px) {
    footer {
        padding: 3rem 5% 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .footer-col p,
    .footer-col a {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .social-links {
        gap: 0.8rem;
        margin-top: 0.8rem;
    }

    .social-links a {
        width: 36px;
        height: 36px;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    footer {
        padding: 2.5rem 4% 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .footer-col p,
    .footer-col a {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .social-links {
        justify-content: center;
        margin-top: 0.6rem;
    }

    .social-links a {
        width: 32px;
        height: 32px;
    }

    .social-links img {
        width: 16px;
        height: 16px;
    }
}

/* Footer Logo Styles */
.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo img {
    max-width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
}

/* Footer branding column */
.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.5rem;
}

.footer-brand-col .footer-logo {
    margin-bottom: 0.75rem;
}

.footer-brand-col p {
    margin: 0;
}

.footer-grid>.footer-brand-col {
    position: relative;
    margin-top: -7rem;
    padding-top: 2rem;
}

/* Footer branding improvements */
.footer-col:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-col:first-child h4 {
    margin-top: 0;
}

@media (max-width: 480px) {
    .footer-col:first-child {
        align-items: center;
    }

    .footer-brand-col {
        align-items: center;
        text-align: center;
    }
}

/* Light Theme Footer (for light colored backgrounds) */
footer.light-theme {
    background: #F5F5F5;
    border-top: 1px solid #ddd;
}

footer.light-theme .footer-col h4,
footer.light-theme .footer-col p,
footer.light-theme .footer-col a {
    color: #1a1a1a;
}

footer.light-theme .social-links a {
    background: rgba(0, 0, 0, 0.1);
}

footer.light-theme .social-links a:hover {
    background: var(--accent);
}

/* Dark Theme Footer (for dark colored backgrounds) */
footer.dark-theme {
    background: #111111;
    border-top: 1px solid #333;
}

footer.dark-theme .footer-col h4,
footer.dark-theme .footer-col p,
footer.dark-theme .footer-col a {
    color: #FFFFFF;
}

footer.dark-theme .social-links a {
    background: rgba(255, 255, 255, 0.1);
}

footer.dark-theme .social-links a:hover {
    background: var(--accent);
}