.footer-bar {
    width: 100%;
    height: 20px;
    background: linear-gradient(to right, var(--color-accent-start), var(--color-accent-end));
    transition: background var(--transition-duration);
}

footer {
    background: var(--color-bg);
    color: var(--color-text);
    box-shadow: 0 -8px 8px -4px rgba(0,0,0,0.2);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center; /* Center items horizontally */
    margin-top: 3vh;
    margin-bottom: 3vh;
}

.footer-section h4 {
    margin-bottom: 1.6rem;
    font-size: 1.8rem;
    font-weight: bold;
}

.footer-section p { line-height: 1.5; }

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li { margin-bottom: 0.5rem; }

.footer-section a {
    color: var(--color-text);
    text-decoration: none;
}

.footer-section a:hover { text-decoration: underline; }

.footer-left, .footer-middle, .footer-right { padding-right: 4vw; }

.footer-left { text-align: left; }

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

.footer-right { text-align: right; }

.footer-copyright {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .footer-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.2rem;
        padding-left: 6vw;
        padding-right: 6vw;
    }

    .footer-section {
        width: 100%;
        text-align: left !important;
        padding-right: 0 !important;
    }

    .footer-copyright {
        width: 100%;
        text-align: center !important;
        margin-top: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-middle, .footer-right, .footer-left { padding-right: 0 !important; }
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: center; /* Center items in row */
        gap: 4rem; /* Increase spacing between columns */
    }
}