/* Shared footer polish. Country marquee motion remains in country.css. */
.cn-footer {
    --footer-ink: #f4f7f3;
    --footer-muted: #c3ccc3;
    --footer-accent: #a4dc83;
    --footer-line: rgb(213 231 210 / 16%);
    background-color: #1c231e;
    color: var(--footer-ink);
    border-top: 3px solid var(--green1, #3fab3c);
}
.cn-footer .footer-content-wrapper { padding: 12px 0 8px; }
.cn-footer .footer-content-wrapper > .row {
    display: grid;
    grid-template-columns: 1.05fr 1.1fr 1fr;
    gap: 36px;
    margin: 0;
}
.cn-footer .footer-content-wrapper > .row > div {
    width: auto;
    min-width: 0;
    padding: 0;
}
.cn-footer .footer-logo { margin-bottom: 22px; }
.cn-footer .footer-logo img { width: 220px; max-width: 100%; height: auto; }
.cn-footer .footer-desc {
    padding-right: 0;
    color: var(--footer-muted);
    font-size: .9375rem;
    line-height: 1.8;
    text-align: left;
    text-wrap: pretty;
}
.cn-footer .footer-widget__title {
    color: var(--footer-ink);
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.01em;
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--footer-line);
}
.cn-footer .footer-widget__navigation { margin: 0; padding: 0; }
.cn-footer .footer-widget__navigation li { margin: 0; padding: 0; }
.cn-footer .footer-widget__navigation li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 7px 0;
    color: var(--footer-muted);
    font-size: .875rem;
    line-height: 1.5;
    transition: color .18s;
}
.cn-footer .footer-widget__navigation li a:hover {
    color: var(--footer-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.cn-footer .info-list { padding: 0; margin: 0; }
.cn-footer .footer-content-wrapper .footer-widget .info-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 0;
    margin-bottom: 16px;
}
.cn-footer .footer-content-wrapper .footer-widget .info-list li > i {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 50%;
    background: rgb(164 220 131 / 10%);
    color: var(--footer-accent);
    font-size: 15px;
    animation: none;
}
.cn-footer .info-list p {
    margin: 0;
    color: var(--footer-muted);
    font-size: .9375rem;
    line-height: 1.75;
    text-align: left;
}
.cn-footer .info-list a { color: var(--footer-muted); overflow-wrap: anywhere; }
.cn-footer .info-list a:hover { color: var(--footer-accent); }
.cn-footer .mii-logo { margin-top: 22px; }
.cn-footer .mii-logo img { max-width: 240px; width: 100%; height: auto; }

.cn-footer .country-footer {
    border-color: var(--footer-line);
    padding: 34px 0 30px;
    margin-top: 36px;
}
.cn-footer .country-footer h2 {
    color: var(--footer-ink);
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -.015em;
    text-wrap: balance;
}
.cn-footer .country-footer p { color: var(--footer-muted); margin-bottom: 16px; }
.cn-footer .country-marquee-control { color: var(--footer-muted); margin-bottom: 14px; }
.cn-footer .country-footer-row a {
    background: rgb(230 242 225 / 5%);
    border-color: rgb(213 231 210 / 22%);
    color: var(--footer-ink);
    padding: 8px 15px;
    transition: color .18s, border-color .18s, background-color .18s;
}
.cn-footer .country-footer-row a:hover {
    background: rgb(164 220 131 / 12%);
    border-color: var(--footer-accent);
}
.cn-footer .country-footer-row svg { stroke: var(--footer-accent); }
.cn-footer .country-footer-all { color: var(--footer-accent) !important; padding: 8px 0; }
.cn-footer .footer-copyright-wrapper {
    border-top: 1px solid var(--footer-line);
    padding: 24px 0;
}
.cn-footer .footer-copyright-wrapper > .row { align-items: center; row-gap: 18px; }
.cn-footer .footer-copyright-left {
    color: var(--footer-muted);
    font-size: .8125rem;
    line-height: 1.9;
    text-align: left;
}
.cn-footer .footer-copyright-left a { color: var(--footer-ink); }
.cn-footer .footer-copyright-left a:hover { color: var(--footer-accent); }
.cn-footer .footer-copyright-left p { margin: 6px 0 0; font-size: inherit; color: inherit; }
.cn-footer .footer-copyright-right__navigation.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding: 0;
    margin: 0;
}
.cn-footer .footer-copyright-right__navigation.social-links li { margin: 0; padding: 0; }
.cn-footer .footer-copyright-right__navigation.social-links li::before { display: none; }
.cn-footer .footer-copyright-right__navigation.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--footer-line);
    border-radius: 50%;
    background: rgb(230 242 225 / 5%);
    color: var(--footer-ink);
    font-size: 16px;
    line-height: 1;
    transition: color .18s, background-color .18s, border-color .18s;
}
.cn-footer .footer-copyright-right__navigation.social-links a:hover {
    color: #1c231e;
    background: var(--footer-accent);
    border-color: var(--footer-accent);
    text-decoration: none;
}
.cn-footer a:focus-visible {
    outline: 2px solid var(--footer-accent);
    outline-offset: 4px;
    border-radius: 3px;
}
@media (min-width: 768px) and (max-width: 991px) {
    .cn-footer .footer-content-wrapper > .row { grid-template-columns: 1fr 1fr; gap: 32px; }
    .cn-footer .footer-content-wrapper > .row > div:first-child { grid-column: 1 / -1; }
    .cn-footer .footer-desc { max-width: 72ch; }
    .cn-footer .footer-copyright-wrapper .col-md-8,
    .cn-footer .footer-copyright-wrapper .col-md-4 { width: 100%; }
    .cn-footer .footer-copyright-right__navigation.social-links { justify-content: flex-start; }
}
@media (max-width: 767px) {
    .cn-footer .footer-content-wrapper > .row { grid-template-columns: 1fr; gap: 30px; }
    .cn-footer .footer-logo img { width: 200px; }
    .cn-footer .footer-widget__title { margin-bottom: 14px; padding-bottom: 12px; }
    .cn-footer .footer-widget__navigation li a { font-size: .9375rem; }
    .cn-footer .country-footer { margin-top: 28px; padding: 28px 0 22px; }
    .cn-footer .country-footer-row a { padding: 8px 13px; }
    .cn-footer .country-footer p { line-height: 1.6; }
    /* Leave room for the existing fixed WhatsApp / callback controls. */
    .cn-footer .footer-copyright-wrapper { padding: 22px 0 92px; }
    .cn-footer .footer-copyright-right__navigation.social-links { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .cn-footer a { transition: none !important; }
}
