.footer {
    display: flex;
    justify-content: center;
    align-items: start;
    background: var(--primary-color-light);
    padding: 40px 5% 0 5%;
    gap: 40px;
    height: 400px;
}
.main-content-footer {
    width: 388px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 20px;
}
.footer-logo-and-social {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.footer-logo-and-social svg {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-logo-and-social a:hover svg {
    transform: scale(1.2);
    color: var(--primary-color);
}

.footer-logo-and-social div {
    display: flex;
    gap: 10px;
}

.footer-e-mec {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 10px;
    padding: 10px;
    background-color: var(--secondary-color);
    border-radius: 4px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.footer-e-mec:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.footer-e-mec p {
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: 0%;
    vertical-align: middle;
    color: var(--text-color-white);
    max-width: 50%;
}

.footer-e-mec div {
    display: flex;
    flex-direction: column;
    background: var(--text-color-white);
    padding: 10px;
    border-radius: 8px;
    gap: 5px;
    justify-content: start;
    align-items: center;
    transition: transform 0.3s ease;
}

.footer-e-mec:hover div {
    transform: scale(1.05);
}

.footer-e-mec div .e-mec-logo {
    width: 75px;
    height: auto;
}

.footer-e-mec div .qrcode {
    width: 100px;
    height: auto;
}

.footer .topics {
    width: 100%;
    max-width: 709px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
}

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

.footer-links p {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 800;
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 10px;
}

.footer-links a,
.footer-links span {
    font-weight: 400;
    font-size: var(--font-size-base);
    line-height: 28px;
    letter-spacing: 0px;
    color: var(--gray-400);
    max-width: 284px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease, padding-left 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-links a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-e-mec.mobile {
    display: none;
}

@media (max-width: 1024px) {
    .footer {
        flex-direction: column;
        height: fit-content;
        padding: 40px 5% 41px 5%;
    }

    .footer-links p {
        font-size: 12px;
    }

    .footer-links a,
    .footer-links span {
        font-size: 14px;
    }

    .main-content-footer {
        width: 100%;
        justify-content: space-between;
    }

    .footer-e-mec.desktop {
        display: none;
    }

    .footer-e-mec.mobile{
        display: flex;
        margin-left: auto;
        max-width: 334px;
    }

    .footer .topics {
        max-width: 100%;
        flex-wrap: wrap;
        gap: 15px;
    }

    .footer-logo-and-social img {
        width: 220px;
        transition: transform 0.3s ease;
    }

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

@media (max-width: 576px) {
    .footer {
        padding: 40px 5% 32px 5%;
    }

    .footer-logo-and-social img {
        width: 150px;
    }

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

    .footer-links a {
        font-size: 16px;
    }

    .footer-e-mec.mobile {
        max-width: 100%;
    }
}
