/* NeoDigi footer: shared theme color, inherited font, no additional JavaScript. */
.footer.nd-footer { padding: 16px 0 12px; margin-top: 20px; background: var(--nd-footer-bg, #fafbfc); border-top: 1px solid #e7e9ee; color: var(--nd-footer-text, #475569); }
.nd-footer *, .nd-footer *::before, .nd-footer *::after { box-sizing: border-box; }
.nd-footer h2 { margin: 0 0 8px; color: inherit; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.7; }
.nd-footer a { color: inherit; text-decoration: none; transition: color .15s ease, border-color .15s ease; }
.nd-footer a:hover { color: var(--primary-color); }
.nd-footer a:focus-visible, .nd-footer button:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 4px; border-radius: 6px; }
.nd-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.nd-footer-brand { display: inline-flex; align-items: center; min-width: 0; max-width: 50%; }
.nd-footer-brand img { width: 140px; max-width: 100%; height: 40px; object-fit: contain; object-position: right center; }
.nd-footer-top-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px; padding: 6px 12px; border: 1px solid #dfe4ea; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.nd-footer-top-button:hover { color: var(--primary-color); border-color: var(--primary-color); }
.nd-footer-intro { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 12px; }
.nd-footer-about { min-width: 0; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.nd-footer-about > :last-child { margin-bottom: 0; }
.nd-footer-about img { max-width: 100%; height: auto; }
.nd-footer-contact { min-width: 0; padding: 0; border: 0; background: transparent; }
.nd-footer-contact-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 4px; font-size: 12px; line-height: 1.8; }
.nd-footer-contact-line > span { color: inherit; }
.nd-footer-contact-line a { min-width: 0; overflow-wrap: anywhere; color: inherit; }
.nd-footer-social { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.nd-footer-social a { min-width: 32px; min-height: 32px; padding: 5px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e7e9ee; border-radius: 10px; font-size: 18px; }
.nd-footer-social a:hover { border-color: var(--primary-color); }
.nd-footer-social svg, .nd-footer-social img { width: 20px !important; height: 20px !important; max-width: 100%; object-fit: contain; }
.nd-footer-social a > span:not([class]) { font-size: 12px; }
.nd-footer-menus { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0; min-width: 0; }
.nd-footer-menu { min-width: 0; }
.nd-footer-menu ul { padding: 0; margin: 0; list-style: none; }
.nd-footer-menu li { margin: 0; }
.nd-footer-menu a { display: inline-block; padding: 3px 0; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.nd-footer-trust { min-width: 0; padding: 0; }
.nd-footer-trust h2 { margin: 0 0 8px; }
.nd-footer-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.nd-footer-badge { display: flex; align-items: center; justify-content: center; min-width: 64px; min-height: 72px; max-width: 100%; padding: 6px; background: transparent; border: 1px solid #e7e9ee; border-radius: 12px; }
.nd-footer-badge a { display: inline-flex; align-items: center; justify-content: center; }
.nd-footer-badge img { max-width: 100% !important; max-height: 72px; width: auto; height: auto; object-fit: contain; }
.nd-footer-copyright { padding-top: 10px; margin-top: 12px; border-top: 1px solid #e7e9ee; font-size: 11px; line-height: 2; color: inherit; text-align: center; overflow-wrap: anywhere; }
.nd-footer-copyright > :last-child { margin-bottom: 0; }
@media (max-width: 991.98px) {
    .nd-footer-intro { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
    .nd-footer-menus { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 767.98px) {
    .footer.nd-footer { padding: 16px 0 12px; margin-top: 16px; }
    .nd-footer-top { gap: 12px; margin-bottom: 12px; }
    .nd-footer-brand img { width: 128px; height: 40px; }
    .nd-footer-top-button { font-size: 11px; padding-inline: 10px; }
    .nd-footer-about { font-size: 12px; }
    .nd-footer-contact { padding: 0; }
    .nd-footer-intro { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .nd-footer-trust { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .nd-footer a { transition: none; } }

/* Use the existing project font class on the root; keep icon font families intact. */
.nd-footer h2, .nd-footer p, .nd-footer li, .nd-footer a, .nd-footer button,
.nd-footer bdi, .nd-footer-about, .nd-footer-about span, .nd-footer-copyright, .nd-footer-copyright span { font-family: inherit !important; }
.nd-footer h2, .nd-footer p, .nd-footer-about, .nd-footer-copyright { color: inherit; }
.nd-footer-about p { margin-bottom: 6px; }
.nd-footer-content { display: grid; direction: rtl; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: start; padding-top: 14px; border-top: 1px solid #e7e9ee; }
.nd-footer-content-no-trust { grid-template-columns: minmax(0, 1fr); }
.nd-footer-content > .nd-footer-menus { grid-column: 1; }
.nd-footer-content > .nd-footer-trust { grid-column: 2; }
.nd-footer-top-button, .nd-footer-contact, .nd-footer-social a, .nd-footer-badge,
.nd-footer-content, .nd-footer-copyright { border-color: color-mix(in srgb, var(--nd-footer-text, #475569) 20%, transparent); }
@media (max-width: 991.98px) {
    .nd-footer-content { grid-template-columns: minmax(0, 1fr) 180px; gap: 16px; }
    .nd-footer-content-no-trust { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
    .nd-footer-content { grid-template-columns: minmax(0, 1fr) 92px; gap: 12px; }
    .nd-footer-content-no-trust { grid-template-columns: minmax(0, 1fr); }
    .nd-footer-trust h2 { font-size: 12px; }
    .nd-footer-badge { width: 100%; min-width: 0; }
}

.nd-footer-about p, .nd-footer-about span, .nd-footer-copyright p, .nd-footer-copyright span { color: inherit !important; }
