/*
Theme Name: NAFS Unified 2026
Theme URI: https://www.nafsmp.co.in/
Author: NAFS
Description: A fast, SEO-friendly NAFS theme with one shared responsive header/footer and a live HTML body editor.
Version: 4.0.2
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: nafs-unified
*/

:root {
  --nafs-red: #bd171d;
  --nafs-red-dark: #8e0f14;
  --nafs-navy: #15283d;
  --nafs-navy-2: #20364e;
  --nafs-gold: #f5b942;
  --nafs-cream: #fff9ef;
  --nafs-paper: #ffffff;
  --nafs-ink: #17202b;
  --nafs-muted: #5d6875;
  --nafs-line: #e6e9ee;
  --nafs-shadow: 0 18px 50px rgba(15, 31, 48, .11);
  --nafs-radius: 18px;
  --nafs-header-offset: 160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--nafs-ink); background: #f7f9fc; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
body.admin-bar .nafs-site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* One global header */
.nafs-site-header { position: sticky; top: 0; z-index: 9990; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(15,31,48,.08); box-shadow: 0 8px 28px rgba(15,31,48,.08); backdrop-filter: blur(16px); }
.nafs-utility { background: var(--nafs-navy); color: #fff; font-size: 12px; }
.nafs-utility-inner, .nafs-header-main, .nafs-notice-inner, .nafs-shell { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.nafs-utility-inner { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nafs-utility-left, .nafs-utility-actions { display: flex; align-items: center; gap: 18px; }
.nafs-utility a { text-decoration: none; font-weight: 700; }
.nafs-header-main { min-height: 80px; display: flex; align-items: center; gap: 24px; }
.nafs-brand { min-width: 255px; display: flex; align-items: center; gap: 13px; text-decoration: none; }
.nafs-brand-logo { width: 58px; height: 58px; flex: 0 0 58px; object-fit: contain; border-radius: 12px; background: #fff300; border: 1px solid #efd800; box-shadow: 0 6px 18px rgba(189,23,29,.15); }
.nafs-brand-copy { min-width: 0; }
.nafs-brand-title { display: block; color: var(--nafs-red); font-size: 20px; font-weight: 900; line-height: 1.1; letter-spacing: -.3px; }
.nafs-brand-subtitle { display: block; margin-top: 4px; color: #5c4c49; font-size: 11px; font-weight: 700; white-space: nowrap; }
.nafs-primary-nav { margin-left: auto; min-width: 0; }
.nafs-primary-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nafs-primary-nav a { display: block; padding: 11px 10px; color: #4d403d; border-radius: 9px; text-decoration: none; font-size: 13px; font-weight: 750; white-space: nowrap; transition: .2s ease; }
.nafs-primary-nav a:hover, .nafs-primary-nav .current-menu-item > a { color: var(--nafs-red); background: #fff0f0; }
.nafs-header-cta { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px; color: #fff; background: var(--nafs-red); text-decoration: none; font-size: 13px; font-weight: 850; box-shadow: 0 8px 20px rgba(189,23,29,.2); transition: .2s ease; }
.nafs-header-cta:hover { background: var(--nafs-red-dark); transform: translateY(-1px); }
.nafs-menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--nafs-line); border-radius: 10px; background: #f5f7fa; color: var(--nafs-navy); font-size: 24px; cursor: pointer; }
.nafs-notice { background: linear-gradient(90deg, var(--nafs-red-dark), var(--nafs-red), #d32b31); color: #fff; }
.nafs-notice-inner { min-height: 38px; display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 750; }
.nafs-notice-icon { width: 22px; height: 22px; display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: #fff; color: var(--nafs-red); font-weight: 900; }
.nafs-notice-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nafs-notice-meta { margin-left: auto; opacity: .88; white-space: nowrap; }
.nafs-notice-btn { flex: none; padding: 4px 11px; border-radius: 6px; background: #fff; color: var(--nafs-red); text-decoration: none; font-weight: 900; }

/* Shared body building blocks */
.nafs-page-main { min-height: 55vh; overflow: hidden; }
.nafs-section { padding: 78px 0; }
.nafs-section-sm { padding: 52px 0; }
.nafs-section-white { background: #fff; }
.nafs-section-soft { background: #f1f5fa; }
.nafs-section-dark { background: var(--nafs-navy); color: #fff; }
.nafs-grid { display: grid; gap: 24px; }
.nafs-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nafs-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nafs-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nafs-card { background: #fff; border: 1px solid var(--nafs-line); border-radius: var(--nafs-radius); padding: 26px; box-shadow: 0 10px 32px rgba(15,31,48,.06); }
.nafs-card:hover { transform: translateY(-4px); box-shadow: var(--nafs-shadow); }
.nafs-card, .nafs-btn { transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
.nafs-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--nafs-red); font-size: 12px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.nafs-eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 99px; background: var(--nafs-red); }
.nafs-h1, .nafs-h2, .nafs-h3 { margin: 0; line-height: 1.12; letter-spacing: -.035em; }
.nafs-h1 { font-size: clamp(38px, 5vw, 66px); }
.nafs-h2 { font-size: clamp(30px, 3.2vw, 46px); }
.nafs-h3 { font-size: 22px; }
.nafs-lead { color: var(--nafs-muted); font-size: clamp(17px, 1.8vw, 20px); }
.nafs-section-dark .nafs-lead { color: #d7e1eb; }
.nafs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.nafs-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 10px; text-decoration: none; font-weight: 850; cursor: pointer; }
.nafs-btn-primary { color: #fff; background: var(--nafs-red); box-shadow: 0 10px 24px rgba(189,23,29,.22); }
.nafs-btn-primary:hover { color: #fff; background: var(--nafs-red-dark); transform: translateY(-2px); }
.nafs-btn-light { color: var(--nafs-navy); background: #fff; border: 1px solid var(--nafs-line); }
.nafs-btn-light:hover { transform: translateY(-2px); box-shadow: var(--nafs-shadow); }
.nafs-checklist { margin: 24px 0 0; padding: 0; list-style: none; }
.nafs-checklist li { position: relative; padding: 9px 0 9px 30px; }
.nafs-checklist li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--nafs-red); font-size: 12px; font-weight: 900; }
.nafs-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 13px; color: var(--nafs-red); background: #fff0f0; font-size: 22px; }
.nafs-tag { display: inline-flex; padding: 5px 10px; border-radius: 99px; color: var(--nafs-red); background: #fff0f0; font-size: 11px; font-weight: 900; text-transform: uppercase; }

.nafs-hero { position: relative; padding: 88px 0 76px; color: #fff; background: radial-gradient(circle at 85% 20%, rgba(245,185,66,.25), transparent 32%), linear-gradient(135deg, #102237, #203b56 62%, #8f171d); }
.nafs-hero::after { content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent); }
.nafs-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
.nafs-hero .nafs-eyebrow { color: #ffdc87; }
.nafs-hero .nafs-eyebrow::before { background: #ffdc87; }
.nafs-hero .nafs-lead { color: #e5edf5; }
.nafs-hero-panel { padding: 28px; border: 1px solid rgba(255,255,255,.22); border-radius: 22px; background: rgba(255,255,255,.1); box-shadow: 0 24px 70px rgba(0,0,0,.2); backdrop-filter: blur(12px); }
.nafs-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.nafs-stat { padding: 17px; border-radius: 14px; color: var(--nafs-navy); background: #fff; }
.nafs-stat strong { display: block; color: var(--nafs-red); font-size: 28px; line-height: 1; }
.nafs-stat span { display: block; margin-top: 6px; font-size: 12px; font-weight: 800; }

.nafs-page-hero { padding: 58px 0; color: #fff; background: linear-gradient(135deg, var(--nafs-navy), var(--nafs-navy-2)); }
.nafs-page-hero .nafs-lead { max-width: 760px; margin-bottom: 0; color: #d9e4ee; }
.nafs-breadcrumbs { margin-bottom: 18px; color: #bdd0e1; font-size: 13px; }
.nafs-breadcrumbs a { color: #fff; text-decoration: none; }
.nafs-feature-media { overflow: hidden; min-height: 380px; border-radius: 24px; background: #e7edf4; box-shadow: var(--nafs-shadow); }
.nafs-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.nafs-course-card { position: relative; overflow: hidden; }
.nafs-course-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--nafs-red); }
.nafs-course-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; color: var(--nafs-muted); font-size: 12px; font-weight: 750; }
.nafs-course-meta span { padding: 5px 9px; border-radius: 6px; background: #f1f4f8; }
.nafs-timeline { position: relative; counter-reset: step; }
.nafs-step { position: relative; padding: 0 0 30px 74px; counter-increment: step; }
.nafs-step::before { content: counter(step); position: absolute; left: 0; top: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--nafs-red); font-size: 19px; font-weight: 900; box-shadow: 0 8px 20px rgba(189,23,29,.2); }
.nafs-step::after { content: ""; position: absolute; left: 23px; top: 54px; bottom: 5px; width: 2px; background: #dfe4ea; }
.nafs-step:last-child::after { display: none; }
.nafs-step h3 { margin: 0 0 7px; }
.nafs-step p { margin: 0; color: var(--nafs-muted); }
.nafs-form { display: grid; gap: 15px; }
.nafs-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.nafs-form label { display: grid; gap: 6px; color: #344253; font-size: 13px; font-weight: 800; }
.nafs-form input, .nafs-form select, .nafs-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #d7dde5; border-radius: 9px; background: #fff; color: var(--nafs-ink); font: inherit; outline: none; }
.nafs-form textarea { min-height: 110px; resize: vertical; }
.nafs-form input:focus, .nafs-form select:focus, .nafs-form textarea:focus { border-color: var(--nafs-red); box-shadow: 0 0 0 3px rgba(189,23,29,.1); }
.nafs-note { padding: 16px 18px; border-left: 4px solid var(--nafs-gold); border-radius: 8px; background: #fff8e7; color: #68511c; }

/* Footer shared by every page */
.nafs-footer { color: #dce5ee; background: #101f31; }
.nafs-footer-main { padding: 58px 0 38px; }
.nafs-footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 36px; }
.nafs-footer-logo { width: 72px; height: 72px; object-fit: contain; border-radius: 14px; background: #fff300; }
.nafs-footer h2, .nafs-footer h3 { margin: 0 0 15px; color: #fff; }
.nafs-footer h3 { font-size: 15px; }
.nafs-footer p { margin: 0 0 10px; color: #b8c8d8; font-size: 13px; }
.nafs-footer ul { margin: 0; padding: 0; list-style: none; }
.nafs-footer li { margin: 8px 0; }
.nafs-footer a { color: #c9d6e2; text-decoration: none; font-size: 13px; }
.nafs-footer a:hover { color: #fff; }
.nafs-footer-bottom { padding: 17px 0; border-top: 1px solid rgba(255,255,255,.1); color: #91a6ba; font-size: 12px; }
.nafs-footer-bottom .nafs-shell { display: flex; justify-content: space-between; gap: 20px; }
.nafs-floating-wa { position: fixed; right: 20px; bottom: 20px; z-index: 9980; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #18b95b; text-decoration: none; font-size: 25px; font-weight: 900; box-shadow: 0 10px 28px rgba(13,132,63,.35); }

/* Motion */
.nafs-reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.nafs-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .nafs-reveal { opacity: 1; transform: none; transition: none; } .nafs-card, .nafs-btn { transition: none; } }

/* Responsive */
@media (max-width: 1120px) {
  .nafs-header-main { gap: 12px; }
  .nafs-brand { min-width: 230px; }
  .nafs-primary-nav a { padding-inline: 7px; font-size: 12px; }
  .nafs-header-cta { padding-inline: 12px; font-size: 12px; }
}
@media (max-width: 960px) {
  body.admin-bar .nafs-site-header { top: 46px; }
  .nafs-utility { display: none; }
  .nafs-header-main { min-height: 70px; }
  .nafs-brand { min-width: 0; margin-right: auto; }
  .nafs-brand-logo { width: 48px; height: 48px; flex-basis: 48px; }
  .nafs-brand-title { font-size: 17px; }
  .nafs-brand-subtitle { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
  .nafs-menu-toggle { display: inline-grid; place-items: center; }
  .nafs-primary-nav { position: absolute; left: 20px; right: 20px; top: 70px; display: none; padding: 12px; border: 1px solid var(--nafs-line); border-radius: 14px; background: #fff; box-shadow: var(--nafs-shadow); }
  .nafs-primary-nav.is-open { display: block; }
  .nafs-primary-nav ul { display: block; }
  .nafs-primary-nav a { padding: 11px 12px; font-size: 14px; }
  .nafs-header-cta { min-height: 42px; }
  .nafs-notice-inner { width: 100%; padding: 8px 16px; }
  .nafs-notice-text { white-space: normal; line-height: 1.3; }
  .nafs-notice-meta { display: none; }
  .nafs-hero-grid, .nafs-grid-4, .nafs-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nafs-hero { padding-top: 64px; }
}
@media (max-width: 700px) {
  .nafs-utility-inner, .nafs-header-main, .nafs-notice-inner, .nafs-shell { width: min(100% - 28px, 1240px); }
  .nafs-header-main { min-height: 66px; gap: 8px; }
  .nafs-brand-logo { width: 44px; height: 44px; flex-basis: 44px; border-radius: 10px; }
  .nafs-brand-title { font-size: 16px; }
  .nafs-brand-subtitle { max-width: 155px; font-size: 9px; }
  .nafs-header-cta { display: none; }
  .nafs-primary-nav { top: 66px; }
  .nafs-notice-inner { width: 100%; gap: 8px; font-size: 10px; }
  .nafs-notice-btn { padding: 4px 8px; white-space: nowrap; }
  .nafs-hero, .nafs-section { padding: 54px 0; }
  .nafs-page-hero { padding: 42px 0; }
  .nafs-hero-grid, .nafs-grid-2, .nafs-grid-3, .nafs-grid-4, .nafs-footer-grid, .nafs-form-row { grid-template-columns: 1fr; }
  .nafs-hero-grid { gap: 34px; }
  .nafs-card { padding: 22px; }
  .nafs-h1 { font-size: 38px; }
  .nafs-h2 { font-size: 30px; }
  .nafs-footer-bottom .nafs-shell { display: block; }
  .nafs-floating-wa { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}
