/* ── IFPASA Global Stylesheet ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --navy:    #0D2B4E;
  --navy2:   #163D6B;
  --teal:    #0F7B6C;
  --teal2:   #12A08E;
  --teal-lt: #E0F4F1;
  --gold:    #C8963E;
  --gold-lt: #FDF3E3;
  --ink:     #1A1A2E;
  --ink2:    #3B3B5C;
  --muted:   #6B7280;
  --border:  #E2E6EA;
  --surface: #F7F9FB;
  --white:   #FFFFFF;
  --red:     #C0392B;
  --red-lt:  #FDECEA;
  --radius:  10px;
  --radius-lg: 16px;
  --shadow:  0 2px 12px rgba(13,43,78,.08);
  --shadow-lg: 0 8px 40px rgba(13,43,78,.13);
  --ff-head: 'DM Serif Display', Georgia, serif;
  --ff-body: 'DM Sans', system-ui, sans-serif;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--ff-body); color: var(--ink); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--ff-head); font-weight: 400; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { font-size: 1rem; color: var(--ink2); line-height: 1.75; }
.lead { font-size: 1.15rem; color: var(--ink2); max-width: 660px; }
.label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
@media(max-width:900px) { .grid-3,.grid-4 { grid-template-columns: repeat(2,1fr); } }
@media(max-width:600px) { .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: var(--radius); font-size: .93rem; font-weight: 500; transition: var(--transition); white-space: nowrap; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(15,123,108,.3); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy2); transform: translateY(-1px); }
.btn-outline { border: 1.5px solid var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal-lt); }
.btn-outline-white { border: 1.5px solid rgba(255,255,255,.7); color: var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #B5852F; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn svg { width: 16px; height: 16px; }

/* ── Badges / Pills ──────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; }
.badge-new { background: #E6F1FB; color: #185FA5; }
.badge-teal { background: var(--teal-lt); color: var(--teal); }
.badge-gold { background: var(--gold-lt); color: var(--gold); }
.badge-navy { background: rgba(13,43,78,.1); color: var(--navy); }

/* ── SVG icon system ─────────────────────────────────────────────────────── */
/* All icons are inline SVGs — size and color via context */
.dd-icon svg {
  width: 15px; height: 15px;
  color: var(--teal);
  flex-shrink: 0;
}
.card-icon svg {
  width: 26px; height: 26px;
  color: var(--teal);
}
.aud-icon svg {
  width: 26px; height: 26px;
  color: var(--teal);
}
/* Card icon backgrounds override icon color where needed */
.card-icon[style*="gold"] svg,
.aud-icon[style*="gold"] svg { color: var(--gold); }
.card-icon[style*="navy"] svg,
.aud-icon[style*="navy"] svg { color: var(--navy); }
.card-icon[style*="#E6F1FB"] svg { color: #185FA5; }
/* Trust bar dot */
.trust-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal2);
  flex-shrink: 0;
}
/* AIEC shield icon in hero box */
.aiec-shield-icon {
  width: 72px; height: 72px;
  color: var(--white);
  opacity: .9;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-3px); }
.card-featured { border: 2px solid var(--teal); }
.card-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 22px; }
.card-price { font-family: var(--ff-head); font-size: 1.6rem; color: var(--navy); margin: 12px 0 4px; }
.card-price-sub { font-size: .8rem; color: var(--muted); margin-bottom: 16px; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

/* Logo — SVG icon mark + wordmark + two-line tagline */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  display: block;
  height: 40px;
  width: auto;
  flex-shrink: 0;
}
.nav-logo-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}
.nav-logo-wordmark {
  font-family: var(--ff-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1;
}
.nav-logo-tagline {
  font-family: var(--ff-body);
  font-size: .6rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .01em;
  line-height: 1.4;
}
@media (max-width: 600px) { .nav-logo-tagline { display: none; } }
@media (max-width: 360px) { .nav-logo-text-block { display: none; } }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: var(--radius); font-size: .88rem; font-weight: 500; color: var(--ink2); transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--teal); background: var(--teal-lt); }
.nav-link svg { width: 13px; height: 13px; transition: transform var(--transition); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }
.nav-cta { margin-left: 8px; }

/* Dropdowns — desktop hover */
/* Key fix: top:100% (no gap) + padding-top on panel creates an invisible
   hover bridge so the mouse never leaves the nav-item hit zone */
.dropdown {
  position: absolute;
  top: 100%;          /* flush — no gap between trigger and panel */
  left: 0;
  min-width: 248px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 8px 8px; /* 16px top padding = invisible hover bridge */
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 999;
}
/* Pseudo-element extends the hover zone upward — covers any remaining gap */
.dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-item:hover .dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius); font-size: .85rem; color: var(--ink2); transition: var(--transition); }
.dropdown a:hover { background: var(--surface); color: var(--teal); }
.dropdown a .dd-icon { width: 28px; height: 28px; border-radius: 6px; background: var(--teal-lt); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.dropdown a .dd-new { font-size: .65rem; font-weight: 700; background: var(--teal); color: var(--white); padding: 1px 6px; border-radius: 10px; margin-left: auto; }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* Mobile nav — full-height scrollable overlay */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; z-index: 1001; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--transition); }
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu — fixed overlay that scrolls independently */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 24px 40px;
  z-index: 999;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 11px 0; font-size: .93rem; color: var(--ink2); border-bottom: 1px solid var(--border); }
.mobile-menu a:hover { color: var(--teal); }
.mobile-menu .mobile-section { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 18px 0 6px; }
.mobile-menu .mobile-cta { margin-top: 20px; padding-bottom: 8px; }

@media(max-width:860px) { .nav-links { display: none; } .nav-hamburger { display: flex; } }
@media(max-width:480px) { .nav-logo-sub { display: none; } .nav-logo-divider { display: none; } }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, #1a5276 100%); color: var(--white); padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.5vw, 3.2rem); line-height: 1.15; margin-bottom: 20px; }
.hero .lead { color: rgba(255,255,255,.82); max-width: 600px; font-size: 1.08rem; margin-bottom: 36px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.trust-bar { display: flex; flex-wrap: wrap; gap: 24px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: .83rem; color: rgba(255,255,255,.7); }
.trust-item strong { color: var(--white); font-weight: 600; }

/* ── Page hero (inner pages) ─────────────────────────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); padding: 60px 0; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem,3.5vw,2.6rem); }
.page-hero .lead { color: rgba(255,255,255,.78); margin-top: 12px; font-size: 1.05rem; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: rgba(255,255,255,.55); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }

/* ── Section headers ─────────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header .label { margin-bottom: 10px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--muted); max-width: 580px; margin: 0 auto; }

/* ── Stat strip ──────────────────────────────────────────────────────────── */
.stat-strip { background: var(--navy); padding: 48px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; text-align: center; }
.stat-item { padding: 16px; border-right: 1px solid rgba(255,255,255,.1); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--ff-head); font-size: 2.4rem; color: var(--white); line-height: 1; }
.stat-label { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: 6px; }
@media(max-width:600px) { .stat-grid { grid-template-columns: repeat(2,1fr); } .stat-item:nth-child(2) { border-right: none; } }

/* ── Certification tier cards ─────────────────────────────────────────────── */
.tier-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media(max-width:860px) { .tier-cards { grid-template-columns: 1fr; } }
.tier-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; }
.tier-card.popular { border: 2px solid var(--teal); position: relative; }
.tier-card.popular::before { content: 'Most popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--teal); color: var(--white); font-size: .72rem; font-weight: 700; padding: 4px 14px; border-radius: 20px; white-space: nowrap; }
.tier-name { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
.tier-title { font-family: var(--ff-head); font-size: 1.3rem; color: var(--navy); margin-bottom: 12px; }
.tier-price { font-family: var(--ff-head); font-size: 2rem; color: var(--navy); }
.tier-price-sub { font-size: .78rem; color: var(--muted); margin-bottom: 20px; }
.tier-divider { height: 1px; background: var(--border); margin: 20px 0; }
.tier-features { list-style: none; padding: 0; margin-bottom: 24px; flex: 1; }
.tier-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--ink2); padding: 5px 0; }
.tier-features li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.tier-card .btn { width: 100%; justify-content: center; }

/* ── Steps / Process ─────────────────────────────────────────────────────── */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--teal-lt); color: var(--teal); font-family: var(--ff-head); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.step-content h4 { color: var(--navy); margin-bottom: 4px; }
.step-content p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ── Framework logos strip ───────────────────────────────────────────────── */
.framework-strip { background: var(--surface); padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.framework-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.fw-pill { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border); background: var(--white); font-size: .8rem; font-weight: 500; color: var(--ink2); }

/* ── CTA band ─────────────────────────────────────────────────────────────── */
.cta-band { background: var(--teal); padding: 64px 0; text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 520px; margin: 0 auto 32px; }
.cta-band-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ── Navy CTA band ───────────────────────────────────────────────────────── */
.cta-band-navy { background: var(--navy); padding: 64px 0; text-align: center; }
.cta-band-navy h2 { color: var(--white); margin-bottom: 12px; }
.cta-band-navy p { color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 32px; }

/* ── Audience cards ──────────────────────────────────────────────────────── */
.aud-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.aud-card:hover { box-shadow: var(--shadow-lg); border-color: var(--teal-lt); }
.aud-icon { width: 52px; height: 52px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; }

/* ── Info box ─────────────────────────────────────────────────────────────── */
.info-box { border-radius: var(--radius-lg); padding: 28px 32px; }
.info-box-teal { background: var(--teal-lt); border-left: 4px solid var(--teal); }
.info-box-gold { background: var(--gold-lt); border-left: 4px solid var(--gold); }
.info-box-navy { background: rgba(13,43,78,.06); border-left: 4px solid var(--navy); }

/* ── Table ───────────────────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th { background: var(--navy); color: var(--white); font-weight: 500; padding: 14px 16px; text-align: left; font-family: var(--ff-body); font-size: .82rem; letter-spacing: .03em; }
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--ink2); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--surface); }
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }

/* ── Email opt-in ─────────────────────────────────────────────────────────── */
.optin-section { background: var(--navy); padding: 64px 0; }
.optin-inner { max-width: 540px; margin: 0 auto; text-align: center; }
.optin-inner h2 { color: var(--white); margin-bottom: 10px; }
.optin-inner p { color: rgba(255,255,255,.72); margin-bottom: 28px; }
.optin-form { display: flex; gap: 10px; }
.optin-input { flex: 1; padding: 13px 18px; border: 1.5px solid rgba(255,255,255,.2); border-radius: var(--radius); background: rgba(255,255,255,.08); color: var(--white); font-size: .92rem; font-family: inherit; outline: none; }
.optin-input::placeholder { color: rgba(255,255,255,.45); }
.optin-input:focus { border-color: var(--teal2); }
@media(max-width:500px) { .optin-form { flex-direction: column; } }

/* ── Cross-sell strip ─────────────────────────────────────────────────────── */
.crosssell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 48px 0; }
.crosssell p { margin: 4px 0 0; font-size: .9rem; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: #0A1F38; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.55); margin-top: 12px; line-height: 1.65; max-width: 280px; }
.footer-col h5 { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer-col a { display: block; font-size: .85rem; color: rgba(255,255,255,.65); padding: 4px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--teal2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: gap; gap: 12px; }
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.38); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: .78rem; color: rgba(255,255,255,.38); }
.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }
.footer-logo-text { font-family: var(--ff-head); font-size: 1.4rem; color: var(--white); }
@media(max-width:860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Utility ──────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.gap-3 { gap: 12px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; font-size: .92rem; color: var(--ink2); }
.check-list li::before { content: '✓'; color: var(--teal); font-weight: 700; margin-top: 2px; flex-shrink: 0; }
.surface-section { background: var(--surface); }
.divider { height: 1px; background: var(--border); margin: 40px 0; }

/* ── Mobile Responsive Overrides ─────────────────────────────────────────── */
/* Prevent any element from causing horizontal scroll                         */
html, body {
  overflow-x: hidden;
  width: 100%;
}
/* Scope max-width:100% only to media — NOT the mobile menu which needs full viewport height */
img, svg, video, iframe, input, textarea, select, table { max-width: 100%; }

/* Mobile menu is position:fixed so it escapes the header — ensure header never clips it */
.site-header { overflow: visible !important; }
.mobile-menu {
  max-width: 100vw !important;
  max-height: none !important;
  height: calc(100vh - 68px) !important;
}

/* ── Fluid containers — override hard px max-widths on inner pages ───────── */
@media (max-width: 860px) {
  /* Prose/content containers set via inline style="max-width:820px" etc. */
  .container > div[style*="max-width"],
  section > .container > div[style*="max-width"],
  .section > .container > div[style*="max-width"] {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Hard-coded px widths on steps, form wrappers, content columns */
  [style*="max-width:820px"], [style*="max-width: 820px"],
  [style*="max-width:800px"], [style*="max-width: 800px"],
  [style*="max-width:700px"], [style*="max-width: 700px"],
  [style*="max-width:680px"], [style*="max-width: 680px"],
  [style*="max-width:640px"], [style*="max-width: 640px"],
  [style*="max-width:600px"], [style*="max-width: 600px"] {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* ── Inline 2-col grids → single column on mobile ────────────────────────── */
@media (max-width: 700px) {
  /* Catches all inline style="display:grid;grid-template-columns:1fr 1fr..." */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* Accreditation FAQ outcome boxes (3-col inline grid) */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Fellowship form inner 2-col rows */
  [style*="grid-template-columns:1fr 1fr;gap:16px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Section padding — reduce on small screens ───────────────────────────── */
@media (max-width: 700px) {
  .section { padding: 48px 0; }
  .section-sm { padding: 28px 0; }
  .page-hero { padding: 40px 0; }
  .hero { padding: 60px 0 48px; }
  .stat-strip { padding: 32px 0; }
  .cta-band, .cta-band-navy { padding: 48px 0; }
  .container { padding: 0 16px; }
}

/* ── Hero buttons stack on mobile ────────────────────────────────────────── */
@media (max-width: 540px) {
  .hero-btns,
  .cta-band-btns,
  [style*="display:flex;flex-wrap:wrap;gap"] {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-btns .btn,
  .cta-band-btns .btn {
    width: 100%;
    justify-content: center;
  }
  /* Page hero CTA buttons */
  .page-hero .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Cards & grids ───────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .tier-cards { grid-template-columns: 1fr; }
  .crosssell {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .crosssell .btn { width: 100%; justify-content: center; }
  .info-box { padding: 20px; }
}

/* ── Stat strip — 2×2 on mobile ─────────────────────────────────────────── */
@media (max-width: 500px) {
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-num { font-size: 1.8rem; }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .footer-bottom-links { flex-wrap: wrap; gap: 12px; }
}

/* ── Tables — horizontal scroll wrapper ─────────────────────────────────── */
@media (max-width: 700px) {
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 480px; }
}

/* ── Contact & forms ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .form-row {
    flex-direction: column !important;
    gap: 0 !important;
  }
  /* contact page 2-col layout */
  [style*="display:grid;grid-template-columns:1fr 360px"],
  [style*="display:grid;grid-template-columns: 1fr 360px"],
  [style*="grid-template-columns:3fr 2fr"],
  [style*="grid-template-columns: 3fr 2fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Steps ───────────────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .step { gap: 14px; padding: 20px 0; }
  .step-num { width: 36px; height: 36px; font-size: .95rem; flex-shrink: 0; }
}

/* ── Buttons — prevent overflow ──────────────────────────────────────────── */
@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; }
  .btn-lg { padding: 14px 20px; font-size: .95rem; }
}

/* ── Advisory board grid ─────────────────────────────────────────────────── */
@media (max-width: 700px) {
  [style*="grid-template-columns:repeat(auto-fill"],
  [style*="grid-template-columns: repeat(auto-fill"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 420px) {
  [style*="grid-template-columns:repeat(auto-fill"],
  [style*="grid-template-columns: repeat(auto-fill"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Pricing / apply page card pairs ────────────────────────────────────── */
@media (max-width: 700px) {
  [style*="display:grid;grid-template-columns:1fr 1fr;gap"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Nav logo tagline hidden on very small screens ───────────────────────── */
@media (max-width: 380px) {
  .nav-logo-tagline { display: none; }
  .nav-logo-wordmark { font-size: 1.1rem; }
}
