/* Scoped styles: designed not to interfere with the active WordPress theme. */
.nac-campaign,
.nac-floating,
.nac-inline-banner {
    --nac-blue: #168fd3;
    --nac-blue-dark: #213847;
    --nac-red: #e51d24;
    --nac-green: #158342;
    --nac-yellow: #f3b719;
    --nac-ink: #182630;
    --nac-muted: #65727b;
    --nac-paper: #f4f5f5;
    --nac-white: #fff;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.nac-campaign *,
.nac-floating *,
.nac-inline-banner * { box-sizing: border-box; }

.nac-campaign {
    max-width: 1240px;
    margin: 0 auto;
    color: var(--nac-ink);
    line-height: 1.5;
    font-size: 17px;
}

.nac-campaign img,
.nac-campaign video { max-width: 100%; height: auto; }
.nac-campaign a { text-decoration: none; }

.nac-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr);
    background: var(--nac-blue-dark);
    color: var(--nac-white);
    overflow: hidden;
    border-radius: 18px;
    margin: 0 0 34px;
    box-shadow: 0 14px 40px rgba(0,0,0,.16);
}
.nac-hero__content { padding: clamp(28px, 5vw, 64px); align-self: center; }
.nac-kicker {
    display: inline-block;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.nac-hero h2 {
    color: #fff !important;
    margin: 0 0 18px !important;
    font-size: clamp(36px, 5.5vw, 70px) !important;
    line-height: .98 !important;
    letter-spacing: -.035em;
    font-weight: 900 !important;
    text-transform: uppercase;
}
.nac-lead { color: rgba(255,255,255,.9); max-width: 760px; margin: 0; font-size: clamp(17px, 2vw, 21px); }
.nac-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.nac-hero__poster {
    margin: 0;
    background: #fff;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nac-hero__poster img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    display: block;
}


.nac-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 10px;
    font-weight: 800;
    line-height: 1.2;
    border: 2px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.nac-btn:hover { transform: translateY(-1px); }
.nac-btn--primary { background: var(--nac-red); color: #fff !important; box-shadow: 0 8px 20px rgba(229,29,36,.25); }
.nac-btn--primary:hover { background: #c6161c; }
.nac-btn--ghost { border-color: rgba(255,255,255,.55); color: #fff !important; background: rgba(255,255,255,.06); }
.nac-btn--ghost:hover { background: rgba(255,255,255,.14); }
.nac-btn--light { background: #fff; color: var(--nac-blue-dark) !important; }

.nac-section {
    margin: 34px 0;
    padding: clamp(24px, 4vw, 46px);
    background: #fff;
    border: 1px solid #e5e8ea;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(19, 39, 51, .06);
}
.nac-section__head { max-width: 840px; margin-bottom: 24px; }
.nac-section__head--light { color: #fff; }
.nac-section__eyebrow {
    display: block;
    color: var(--nac-blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.nac-section h2,
.nac-materials h2 {
    margin: 0 0 10px !important;
    font-size: clamp(28px, 4vw, 44px) !important;
    line-height: 1.07 !important;
    color: var(--nac-ink) !important;
    font-weight: 900 !important;
}
.nac-section__head p { margin: 0; color: var(--nac-muted); font-size: 18px; }

.nac-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nac-steps article {
    position: relative;
    border-radius: 14px;
    padding: 22px 18px 18px;
    background: var(--nac-paper);
    min-height: 150px;
    border-top: 4px solid var(--nac-blue);
}
.nac-steps article span {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--nac-blue);
    color: #fff;
    font-weight: 900;
    margin-bottom: 12px;
}
.nac-steps article strong { display: block; font-size: 18px; margin-bottom: 5px; }
.nac-steps article p { margin: 0; color: var(--nac-muted); font-size: 15px; }

.nac-actions { background: var(--nac-blue-dark); border-color: var(--nac-blue-dark); }
.nac-actions .nac-section__eyebrow { color: #7fd1ff; }
.nac-actions h2 { color: #fff !important; }
.nac-action-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.nac-action-grid article { background: #fff; padding: 20px; border-radius: 14px; }
.nac-action-grid__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 10px;
    border-radius: 10px;
    color: #fff;
    background: var(--nac-red);
    font-weight: 900;
    margin-bottom: 12px;
}
.nac-action-grid article:last-child .nac-action-grid__icon { background: var(--nac-green); }
.nac-action-grid strong { display: block; font-size: 18px; line-height: 1.2; margin-bottom: 8px; }
.nac-action-grid p { margin: 0; color: var(--nac-muted); font-size: 15px; }

.nac-audiences { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.nac-audience { border-radius: 16px; padding: 24px; background: var(--nac-paper); border-top: 6px solid var(--nac-green); }
.nac-audience--parents { border-top-color: #ef8b18; }
.nac-audience--teachers { border-top-color: #1e63aa; }
.nac-audience__label { font-size: 13px; text-transform: uppercase; font-weight: 900; letter-spacing: .05em; margin-bottom: 8px; }
.nac-audience h3 { margin: 0 0 12px !important; font-size: 23px !important; line-height: 1.15 !important; color: var(--nac-ink) !important; }
.nac-audience p { margin: 0; }
.nac-audience ul { margin: 0; padding-left: 20px; }
.nac-audience li + li { margin-top: 7px; }

.nac-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.nac-videos article { padding: 14px; border: 1px solid #e3e6e8; border-radius: 14px; background: #fafafa; }
.nac-videos video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; border-radius: 10px; }
.nac-videos h3 { margin: 14px 0 4px !important; font-size: 22px !important; color: var(--nac-ink) !important; }
.nac-videos p { margin: 0; color: var(--nac-muted); }

.nac-materials { display: grid; grid-template-columns: minmax(240px,.65fr) minmax(0,1.35fr); gap: clamp(22px,4vw,46px); align-items: center; }
.nac-materials__poster img { width: 100%; max-height: 640px; object-fit: contain; display: block; border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.nac-materials__content p { font-size: 18px; color: var(--nac-muted); margin: 0 0 20px; }

.nac-final {
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--nac-red), #b50d12);
    color: #fff;
    text-align: center;
    margin: 34px 0 18px;
}
.nac-final strong { display: block; font-size: clamp(25px,4vw,38px); line-height: 1.1; margin-bottom: 7px; text-transform: uppercase; }
.nac-final span { font-size: 18px; }
.nac-source-note { color: var(--nac-muted); font-size: 13px; text-align: center; margin: 0 0 34px; }

.nac-floating {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99990;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    width: min(620px, calc(100vw - 36px));
    padding: 14px 44px 14px 14px;
    border-radius: 14px;
    background: #172f3f;
    color: #fff;
    box-shadow: 0 16px 44px rgba(0,0,0,.35);
    border-left: 6px solid var(--nac-red);
}
.nac-floating__close {
    position: absolute;
    top: 4px;
    right: 7px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    opacity: .7;
    font-size: 25px;
    cursor: pointer;
}
.nac-floating__close:hover { opacity: 1; }
.nac-floating__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--nac-red); font-size: 28px; font-weight: 900; }
.nac-floating__body { min-width: 0; }
.nac-floating__body strong { display: block; font-size: 17px; line-height: 1.2; }
.nac-floating__body span { display: block; margin-top: 3px; font-size: 13px; color: rgba(255,255,255,.78); }
.nac-floating__link { padding: 10px 13px; border-radius: 8px; background: #fff; color: #172f3f !important; font-weight: 800; white-space: nowrap; }

.nac-inline-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: var(--nac-blue-dark);
    color: #fff;
}
.nac-inline-banner__mark { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--nac-red); font-size: 28px; font-weight: 900; }
.nac-inline-banner__content { flex: 1; min-width: 0; }
.nac-inline-banner__content strong { display: block; font-size: 19px; }
.nac-inline-banner__content span { display: block; opacity: .82; font-size: 14px; margin-top: 2px; }

@media (max-width: 900px) {
    .nac-hero { grid-template-columns: 1fr; }
    .nac-hero__poster { max-height: none; }
    .nac-hero__poster img { object-position: center center; }
    .nac-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nac-action-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .nac-audiences { grid-template-columns: 1fr; }
    .nac-materials { grid-template-columns: minmax(180px,.6fr) minmax(0,1.4fr); }
}

@media (max-width: 640px) {
    .nac-campaign { font-size: 16px; }
    .nac-hero,
    .nac-section { border-radius: 12px; }
    .nac-hero__content { padding: 26px 20px; }
    .nac-hero__poster { max-height: none; }
    .nac-section { padding: 24px 18px; margin: 22px 0; }
    .nac-steps,
    .nac-action-grid,
    .nac-videos,
    .nac-materials { grid-template-columns: 1fr; }
    .nac-materials__poster img { max-height: 520px; }
    .nac-floating { grid-template-columns: auto 1fr; padding: 12px 40px 12px 12px; gap: 9px; }
    .nac-floating__body strong { font-size: 15px; }
    .nac-floating__body span { font-size: 12px; }
    .nac-floating__link { grid-column: 1 / -1; text-align: center; }
    .nac-inline-banner { align-items: flex-start; flex-wrap: wrap; }
    .nac-inline-banner .nac-btn { width: 100%; }
}

.nac-vk-direct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 10px 16px;
    border-radius: 9px;
    background: #fff;
    color: #172f3f !important;
    font-weight: 800;
    text-decoration: none !important;
}
.nac-vk-direct:hover { transform: translateY(-1px); }

/* Clean fallback for outdated/broken VK community widgets in the active theme. */
.nac-vk-link-card {
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 84px;
    padding: 14px;
    border: 1px solid #dfe5eb;
    border-radius: 8px;
    background: #fff;
    color: #172f3f !important;
    text-decoration: none !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.06);
    overflow: hidden;
}
.nac-vk-link-card__logo {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #2787f5;
    color: #fff;
    font-weight: 900;
    font-size: 17px;
    line-height: 1;
}
.nac-vk-link-card__body { min-width: 0; }
.nac-vk-link-card__body strong {
    display: block;
    color: #172f3f;
    font-size: 14px;
    line-height: 1.25;
}
.nac-vk-link-card__body span {
    display: block;
    margin-top: 4px;
    color: #65727b;
    font-size: 12px;
    line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
    .nac-btn { transition: none; }
}
