
.site-footer {
    width: 100%;
    margin: 0;
    padding: 0;
    color: #ffffff;
    box-sizing: border-box;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
    box-sizing: border-box;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.site-footer p,
.site-footer ul,
.site-footer ol,
.site-footer address {
    margin-top: 0;
}

.footer-container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.footer-institutional {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #1B396B !important;
    color: #ffffff;
    box-sizing: border-box;
}

.footer-institutional .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 40px;
    row-gap: 0;
    align-items: start;
    padding-top: 25px;
    padding-bottom: 0;
}

.footer-institutional .footer-contact-column {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.footer-title {
    margin: 0 0 20px;
    padding: 0;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.footer-address {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-style: normal;
    line-height: 1.7;
}

.footer-contact-column p {
    margin: 0 0 15px;
    padding: 0;
    color: #ffffff;
    line-height: 1.6;
}

.footer-contact-column p:last-child {
    margin-bottom: 0;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    cursor: default;
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: none;
    cursor: default;
}

.footer-map {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.footer-map-link {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    color: #ffffff;
    text-decoration: none;
}

.footer-map-placeholder {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 8 / 5;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.40);
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-align: center;
}

.footer-map-placeholder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.footer-map-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 15px;
    background-color: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-copyright {
    grid-column: 1 / -1;
    width: 100%;
    margin: 30px 0 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
}

.footer-copyright p {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-government {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #611232 !important;
    color: #ffffff;
    box-sizing: border-box;
}

.footer-government .footer-container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.footer-government-grid {
    width: 100%;
    display: grid;
    grid-template-columns:
        1.2fr
        1fr
        1.2fr
        1fr;
    gap: 40px;
    margin: 0;
    padding-top: 25px;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.footer-government-logo {
    width: 100%;
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    min-height: 65px;
    max-height: 65px;
}

.footer-government-logo img {
    width: 75%;
    height: auto;
    display: block;
    object-fit: contain;
}

.government-logo-placeholder {
    width: 100%;
    min-height: 65px;
    max-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.40);
    color: #ffffff;
    text-align: center;
}

.footer-column {
    width: 100%;
    margin: 0;
    padding: 0;
}

.footer-column .footer-title {
    margin: 0 0 20px;
}

.footer-links-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links-list li {
    margin: 0 0 4px;
    padding: 0;
}

.footer-links-list li:last-child {
    margin-bottom: 0;
}

.footer-links-list a {
    color: #ffffff;
    text-decoration: none;
    line-height: 1.5;
}

.footer-links-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-social-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-social-list li {
    margin: 0;
    padding: 0;
}

.footer-social-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: #ffffff;
    text-decoration: none;
    line-height: 1.5;
}

.footer-social__icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-social__icon svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.footer-social__name {
    display: inline-block;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-social-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-institutional,
.footer-government {
    margin-top: 0;
    margin-bottom: 0;
}

@media (max-width: 768px) {

    .footer-institutional .footer-container {
        grid-template-columns: 1fr;
        row-gap: 30px;
        padding-top: 35px;
        padding-bottom: 20px;
    }

    .footer-map-placeholder {
        width: 100%;
        max-width: 400px;
        aspect-ratio: 8 / 5;
        min-height: 0;
    }

    .footer-copyright {
        grid-column: 1;
        margin-top: 0;
    }

    .footer-government-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .footer-government-logo {
        align-items: center;
    }

}

@media (max-width: 480px) {

    .footer-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer-government .footer-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer-government-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .footer-map-placeholder {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 8 / 5;
        min-height: 0;
    }

    .footer-government-logo img {
        width: 75%;
    }

    .footer-copyright {
        grid-column: 1 / -1;
        width: 100%;
        margin: 30px 0 0;
        padding: 20px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.25);
        text-align: center;
    }

}
