.footer {
    background-color: var(--color-secondary);
    padding: 2rem 0;
    /* Reduced padding from 4rem */
    margin-top: auto;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    /* Spread content */
    align-items: flex-start;
    /* Top align */
    flex-wrap: wrap;
    /* Allow wrapping on mobile */
    gap: 2rem;
}

/* Left Side: Brand + Description */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand img {
    height: 50px;
    /* Slightly smaller for compact footer */
    width: auto;
    object-fit: contain;
}

.footer-brand span {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Right Side: Links & Copyright */
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
    /* Align right */
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-social a {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.footer-social a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.footer-email {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: var(--color-primary);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0;
    }

    .footer-container {
        padding: 0 1.5rem;
        flex-direction: column;
        /* Stack on mobile */
        align-items: flex-start;
        gap: 2rem;
    }

    .footer-right {
        align-items: flex-start;
        /* Left align on mobile */
    }

    .footer-brand img {
        height: 40px;
    }

    .footer-brand span {
        font-size: 1.25rem;
    }

    .footer-logo {
        /* Keep consistent if used */
        height: 40px;
    }
}