.main-footer {
    background-color: #F8F8F8;
    color: #2c3e50;
    padding: 60px 20px 20px;
    margin-top: auto;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #c4871c;
    /* User requested #c4871c */
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section a {
    display: block;
    color: #555555;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #c4871c;
}

.footer-section.ace-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ace-section p {
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #2c3e50;
}

.ace-logo {
    max-width: 120px;
    height: auto;
    /* Adjust filter for light background if needed, usually black logo is fine */
    filter: none;
}

/* Dark Mode Overrides for Footer */
body.dark-theme .main-footer {
    background-color: #000000;
    color: #ffffff;
}

body.dark-theme .footer-section h4 {
    color: #ff6b00;
    /* Keep original orange or use c4871c if preferred, but usually bright on dark */
}

body.dark-theme .footer-section a {
    color: #e0e0e0;
}

body.dark-theme .footer-section a:hover {
    color: #ff6b00;
}

body.dark-theme .ace-section p {
    color: #ffffff;
}

body.dark-theme .ace-logo {
    filter: brightness(0) invert(1);
    background: transparent;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

body.dark-theme .footer-bottom {
    border-top-color: #333;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .ace-section {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }
}

#footer-container {
    margin-top: 100px;
}