/* Nasrin Academy — Compact trust strip (final, 2026-10-27)
   Isolated footer styles: other site sections remain unchanged. */

.site-footer .footer-inner {
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
}

.na-trust-section {
    max-width: 1160px;
    margin: 32px auto 0;
    padding: 22px;
    color: #f7f9fd;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 20px;
}
.na-trust-heading { text-align: center; margin: 0 0 17px; }
.na-trust-heading h3 { margin: 0 0 6px; color: #fff; font-size: 1.03rem; }
.na-trust-heading p { margin: 0; color: #aab5c9; font-size: .75rem; line-height: 1.9; }
.na-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}
.na-trust-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    height: 252px;
    padding: 14px 15px;
    background: #20293d;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 17px;
    text-align: center;
    overflow: hidden;
}
.na-trust-card-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    width: 100%;
    line-height: 1.5;
}
.na-trust-card-title strong { color: #fff; font-size: .8rem; font-weight: 800; }
.na-trust-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    color: #f0d089;
    background: rgba(236, 195, 111, .12);
    border-radius: 10px;
}
/* The 3 media panels have the SAME width and height; document previews are
   intentionally cropped, but the click-through shows the COMPLETE document. */
.na-trust-card .na-enamad-code,
.na-trust-card .na-trust-certificate-link {
    box-sizing: border-box;
    flex: 0 0 142px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 142px;
    min-height: 142px;
    max-height: 142px;
    padding: 7px;
    overflow: hidden;
    background: #f7f8fb;
    border: 1px solid #e8eaf0;
    border-radius: 12px;
    text-decoration: none;
}
.na-trust-certificate-link {
    transition: box-shadow .18s ease, transform .18s ease;
}
.na-trust-certificate-link:hover,
.na-trust-certificate-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, .18);
    outline-offset: 3px;
}
.na-trust-certificate-image {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 7px;
}
.na-trust-card .na-enamad-code a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
}
.na-trust-card .na-enamad-code img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 122px !important;
    max-height: 122px !important;
    object-fit: contain;
}
.na-trust-card .na-enamad-code iframe { max-width: 100%; border: 0; }
.na-trust-photo-hint {
    display: block;
    margin-top: auto;
    color: #b6c6d9;
    font-size: .69rem;
    line-height: 1.55;
}
.na-trust-number { color: #f3f4f6; font-size: .7rem; overflow-wrap: anywhere; }
.na-trust-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.na-trust-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #f5d996;
    background: rgba(238, 195, 119, .11);
    border: 1px solid rgba(238, 195, 119, .28);
    padding: 7px 10px;
    font-size: .68rem;
    font-weight: 700;
    border-radius: 9px;
    text-decoration: none;
}
.na-trust-action:hover, .na-trust-action:focus-visible { background: rgba(238, 195, 119, .2); color: #fff; }
.na-trust-not-ready { margin: auto; color: #b0bdd1; font-size: .72rem; line-height: 1.7; }

@media (max-width: 900px) {
    .site-footer .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .na-trust-section { padding: 17px; }
    .na-trust-grid { gap: 9px; }
    .na-trust-card { padding: 12px 8px; }
    .na-trust-card-title strong { font-size: .73rem; }
}
@media (max-width: 700px) {
    .site-footer .footer-inner { grid-template-columns: 1fr; }
    .na-trust-grid { grid-template-columns: 1fr; gap: 10px; }
    .na-trust-card { height: 240px; max-width: 420px; width: 100%; margin-inline: auto; }
    .na-trust-section { margin-top: 25px; padding: 16px 13px; }
    .na-trust-heading { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .na-trust-certificate-link { transition: none; }
}

/* Official eNamad image blocked/unavailable: show a REAL verification URL,
   not a fabricated seal. These states affect the seal media slot only. */
.na-enamad-code .na-enamad-fallback { display: none; color: #1a3c6b; font-size: .76rem; font-weight: 800; line-height: 1.8; align-items: center; justify-content: center; gap: 7px; text-decoration: underline; text-underline-offset: 3px; }
.na-enamad-code.na-image-failed > a:not(.na-enamad-fallback) { display: none; }
.na-enamad-code.na-image-failed .na-enamad-fallback { display: flex; }
