/* ==========================================================
   UNIVERSAL SITE FOOTER v17.5.4
   Shared by the tutor, tests, certificates, blog, information
   pages, sitemap and 404 page.
========================================================== */

.universal-site-footer {
    box-sizing: border-box;
    width: 100%;
    margin-top: 38px;
    padding: 24px clamp(16px, 3vw, 38px);
    color: var(--text-light, #64748b);
    background: var(--surface, #ffffff);
    border-top: 1px solid var(--border, #d9e2ef);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.universal-footer-inner {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1440px, 100%);
    margin: 0 auto;
}

.universal-footer-brand {
    display: grid;
    flex: 0 0 auto;
    gap: 3px;
    text-align: left;
}

.universal-footer-brand strong {
    color: var(--text, #0f172a);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.universal-footer-brand span {
    color: var(--text-light, #64748b);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.universal-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 18px;
}

.universal-footer-links a {
    color: var(--text-light, #64748b);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: color .16s ease, text-decoration-color .16s ease;
}

.universal-footer-links a:hover,
.universal-footer-links a:focus-visible {
    color: var(--primary, #1769ff);
    text-decoration: underline;
    text-underline-offset: 3px;
}

html[data-theme="dark"] .universal-site-footer {
    color: #94a3b8;
    background: #0f172a;
    border-top-color: #334155;
}

html[data-theme="dark"] .universal-footer-brand strong {
    color: #f8fafc;
}

html[data-theme="dark"] .universal-footer-brand span,
html[data-theme="dark"] .universal-footer-links a {
    color: #a8b5c7;
}

html[data-theme="dark"] .universal-footer-links a:hover,
html[data-theme="dark"] .universal-footer-links a:focus-visible {
    color: #60a5fa;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .universal-site-footer {
        color: #94a3b8;
        background: #0f172a;
        border-top-color: #334155;
    }

    html[data-theme="system"] .universal-footer-brand strong {
        color: #f8fafc;
    }

    html[data-theme="system"] .universal-footer-brand span,
    html[data-theme="system"] .universal-footer-links a {
        color: #a8b5c7;
    }

    html[data-theme="system"] .universal-footer-links a:hover,
    html[data-theme="system"] .universal-footer-links a:focus-visible {
        color: #60a5fa;
    }
}

@media (max-width: 940px) {
    .universal-footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .universal-footer-brand {
        text-align: center;
    }

    .universal-footer-links {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .universal-site-footer {
        margin-top: 28px;
        padding: 22px 14px;
    }

    .universal-footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px 12px;
    }

    .universal-footer-links a {
        display: block;
        padding: 7px 8px;
        text-align: center;
        border-radius: 8px;
        background: color-mix(in srgb, var(--surface-soft, #f1f5f9) 78%, transparent);
    }
}

@media print {
    .universal-site-footer {
        display: none !important;
    }
}
