:root {
  --blue: #0f4f8f;
  --blue-dark: #142f4d;
  --gold: #f2b632;
  --red: #c9352c;
  --ink: #1d2a35;
  --muted: #5d6b78;
  --line: #d7e0e8;
  --soft: #f4f7fa;
  --white: #fff;
}

* { box-sizing: border-box; }
html { margin-top: 0 !important; background: var(--white); }
body { margin: 0; padding-top: 0 !important; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--white); line-height: 1.55; overflow-x: hidden; }
.admin-bar .site-header { margin-top: 0; }
#wpadminbar { display: none !important; }
html body, html body.admin-bar { margin-top: 0 !important; padding-top: 0 !important; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.utility { display: none; }
.utility-inner { display: flex; justify-content: space-between; gap: 18px; padding: 7px 0; }
.utility a { color: #fff; margin-left: 18px; }
.site-header { background: linear-gradient(105deg, #e50010 0%, #d0000d 54%, #a90008 100%); }
.site-header:before { content: ""; display: block; height: 2px; background: linear-gradient(105deg, #e50010 0%, #d0000d 54%, #a90008 100%); }
.brand-banner { background: linear-gradient(105deg, #e50010 0%, #d0000d 54%, #a90008 100%); border-bottom: 1px solid rgba(0,0,0,.25); color: #fff; overflow: hidden; }
.masthead { display: grid; grid-template-columns: minmax(0, 720px) auto; align-items: center; justify-content: space-between; gap: 48px; padding: 12px 0; min-height: 206px; }
.brand-banner .masthead { justify-items: start; }
.brand { display: inline-flex; align-items: center; gap: 16px; color: #fff; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-built { justify-self: start; }
.brand-transparent-logo { display: block; width: min(640px, 100%); height: auto; max-height: 184px; object-fit: contain; object-position: left center; }
.brand-shield { display: block; width: 92px; height: 108px; object-fit: cover; object-position: center; border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.brand-stack { display: block; color: #fff; font-weight: 900; font-size: 34px; line-height: .9; letter-spacing: 1px; text-shadow: 0 4px 14px rgba(0,0,0,.35); }
.brand-stack span { display: block; }
.brand-tagline { display: flex !important; align-items: center; gap: 14px; color: rgba(255,255,255,.94); font-size: 13px; font-weight: 900; letter-spacing: 5px; margin-top: 18px; white-space: nowrap; }
.brand-tagline:before, .brand-tagline:after { content: ""; width: 54px; height: 3px; background: #ff312d; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.brand-points { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 18px; color: rgba(255,255,255,.96); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.brand-points .point { display: inline-flex; align-items: center; gap: 9px; max-width: 130px; line-height: 1.12; }
.brand-points .point:before { content: ""; width: 28px; height: 28px; flex: 0 0 28px; background-repeat: no-repeat; background-position: center; background-size: contain; filter: drop-shadow(0 2px 5px rgba(0,0,0,.25)); }
.brand-points .protect:before { background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 2 27 6v8c0 7-4.5 12.5-11 16C9.5 26.5 5 21 5 14V6l11-4Z' fill='none' stroke='white' stroke-width='2.6'/%3E%3Cpath d='m10.5 15.8 3.7 3.7 7.5-8' fill='none' stroke='white' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.brand-points .prevent:before { background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 24h18M9 14a7 7 0 0 1 14 0v6H9v-6Z' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3Cpath d='M14 7v8M18 7v8' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.brand-points .deliver:before { background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 2 27 6v8c0 7-4.5 12.5-11 16C9.5 26.5 5 21 5 14V6l11-4Z' fill='none' stroke='white' stroke-width='2.6'/%3E%3Cpath d='m16 9 1.8 3.8 4.2.6-3 3  .7 4.2-3.7-2-3.7 2 .7-4.2-3-3 4.2-.6L16 9Z' fill='white'/%3E%3C/svg%3E"); }
.brand-banner .enroll { justify-self: end; background: transparent; border: 2px solid rgba(255,255,255,.78); color: #fff; box-shadow: 0 12px 26px rgba(0,0,0,.2); }
.enroll, .button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 18px; border-radius: 4px; border: 0; background: var(--red); color: #fff; font-weight: 700; cursor: pointer; }
.primary-nav { background: var(--blue); border-bottom: 4px solid var(--gold); }
.nav-row { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: flex-start; }
.primary-nav .container { display: flex; justify-content: flex-start; }
.nav-row a { color: #fff; padding: 13px 14px; font-weight: 700; font-size: 14px; }
.nav-row a.active, .nav-row a:hover { background: rgba(0,0,0,.18); text-decoration: none; }
.compact .masthead { padding: 12px 0; }
.hero { position: relative; overflow: hidden; background: #234e78; color: #fff; border-bottom: 6px solid #163b61; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) 380px; gap: 44px; align-items: center; min-height: 520px; padding: 54px 0; }
.hero-grid { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: 47px; line-height: 1.08; margin: 8px 0 18px; letter-spacing: 0; max-width: 720px; }
.hero p { font-size: 18px; max-width: 680px; }
.eyebrow { margin: 0 0 8px; color: var(--red); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: 0; }
.hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; font-size: 13px; font-weight: 700; color: #e5edf5; }
.hero-trust span:before { content: "✓"; display: inline-block; margin-right: 7px; color: var(--gold); }
.button.primary { background: var(--red); color: #fff; }
.button.secondary { background: var(--gold); color: #1c2b37; }
.button.light { background: #fff; color: var(--blue-dark); }
.hero-panel { background: rgba(255,255,255,.95); color: var(--ink); border-radius: 6px; padding: 22px; box-shadow: 0 16px 42px rgba(0,0,0,.28); border-top: 5px solid #fff; }
.panel-label { margin: 0 0 8px; color: var(--blue-dark); font-size: 13px !important; font-weight: 800; text-transform: uppercase; }
.stat-row { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 13px 0; gap: 20px; }
.stat-row strong { font-size: 34px; color: var(--blue); }
.notice { margin-top: 18px; padding: 16px; background: #fff6dc; border-left: 5px solid var(--gold); }
.notice strong, .notice span { display: block; }
.intro-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; margin-bottom: 34px; }
.intro-band article, .program-card, .resource-grid article, .product-grid article, .mission-grid article, .contact-box, .steps { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 22px; }
.intro-band article { border-top: 4px solid var(--gold); }
.feature-number { display: block; margin-bottom: 12px; color: var(--red); font-weight: 800; font-size: 13px; }
h1, h2, h3 { color: var(--blue-dark); line-height: 1.18; margin-top: 0; letter-spacing: 0; }
.intro-band h2 { font-size: 20px; }
.feature-section { background: var(--soft); padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.section-heading h2 { font-size: 32px; margin: 0; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.course-card { min-height: 170px; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.course-card:hover { text-decoration: none; border-color: var(--blue); }
.course-card span { color: var(--red); font-weight: 800; }
.course-card strong { font-size: 20px; color: var(--blue-dark); }
.course-card small { color: var(--muted); font-size: 14px; }
.split, .two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; align-items: start; padding: 50px 0; }
.home-programs h2 { max-width: 640px; font-size: 34px; }
.check-list { padding-left: 20px; margin-bottom: 24px; }
.check-list li { margin: 8px 0; }
.steps ol { padding: 0; margin: 0; list-style: none; counter-reset: steps; }
.steps { min-width: 0; }
.steps li { counter-increment: steps; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; row-gap: 3px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps li:before { content: counter(steps); grid-column: 1; grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.steps li strong, .steps li span { grid-column: 2; min-width: 0; }
.steps li strong { line-height: 1.3; }
.steps span { display: block; color: var(--muted); line-height: 1.45; }
.cta-band { background: var(--blue-dark); color: #fff; padding: 34px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.page { padding: 44px 0 60px; }
.page h1 { font-size: 40px; margin-bottom: 12px; }
.lead { max-width: 760px; font-size: 18px; color: var(--muted); margin-bottom: 28px; }
.catalog { display: grid; gap: 28px; }
.list-panel { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.list-panel a { padding: 14px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; }
.list-panel a:hover { background: var(--soft); text-decoration: none; color: var(--blue); }
.program-grid, .resource-grid, .product-grid, .mission-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.resource-grid, .mission-grid { grid-template-columns: repeat(2, 1fr); }
.program-card span { display: inline-block; margin: 8px 0 14px; color: var(--red); font-weight: 800; }
.info-stack { display: grid; gap: 16px; }
.info-stack article { padding: 18px; border-left: 5px solid var(--gold); background: var(--soft); }
.contact-box form, .auth-card form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 700; color: var(--blue-dark); }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 11px; font: inherit; background: #fff; }
.product-img { height: 130px; display: grid; place-items: center; background: linear-gradient(135deg, #eaf0f6, #f9e4aa); color: var(--blue-dark); font-size: 26px; font-weight: 800; border-radius: 5px; margin-bottom: 14px; }
.disclaimer { margin-top: 28px; padding: 18px; background: #fff6dc; border-left: 5px solid var(--gold); }
.auth-page { min-height: 100vh; display: grid; place-items: center; background: var(--soft); padding: 20px; }
.auth-card { width: min(430px, 100%); background: #fff; padding: 30px; border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 18px 45px rgba(23,58,99,.14); }
.auth-card.wide { width: min(560px, 100%); }
.brand.center { justify-content: center; margin-bottom: 22px; }
main { background: var(--white); }
.site-footer { background: #172635; color: #d8e1ea; padding: 34px 0; }
.site-footer a { display: block; color: #fff; margin: 5px 0; }
.site-footer h2 { color: #fff; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 28px; }
.footer-mini { text-align: center; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-width: 260px; max-height: 76px; }
.primary-nav ul, .utility ul { list-style: none; margin: 0; padding: 0; }
.primary-nav .menu-item { position: relative; display: flex; align-items: stretch; }
.primary-nav .menu-item a { width: 100%; }
.primary-nav .menu-item-has-children > a:after { content: ""; display: inline-block; margin-left: 6px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; vertical-align: middle; }
.primary-nav .sub-menu { position: absolute; z-index: 20; top: 100%; left: 0; min-width: 230px; background: #fff; border-top: 4px solid #008bd2; box-shadow: 0 12px 28px rgba(0,0,0,.18); display: none; }
.primary-nav .sub-menu .sub-menu { top: -4px; left: 100%; min-width: 275px; }
.primary-nav .menu-item:hover > .sub-menu, .primary-nav .menu-item:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { display: block; padding: 11px 13px; color: #4a4f55; background: #fff; border-bottom: 1px solid #edf1f5; font-weight: 500; font-size: 13px; line-height: 1.25; white-space: normal; }
.primary-nav .sub-menu a:hover { color: var(--blue); background: #f6f8fa; }
.primary-nav .sub-menu .menu-item-has-children > a:after { float: right; margin-top: 8px; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 5px solid currentColor; border-right: 0; }
.entry-content { max-width: 820px; }
.entry-content img, .page-featured img { max-width: 100%; height: auto; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.page-featured { margin: 0 0 24px; }
.page-featured img { display: block; border-radius: 6px; }
.navigation.pagination { margin-top: 28px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; }
.page-numbers.current { background: var(--blue); color: #fff; }
.wp-block-button__link { border-radius: 4px; }
.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; }
.support-band { background: #eaf0f5; border-top: 1px solid var(--line); padding: 34px 0; }
.support-grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 34px; align-items: center; }
.support-grid h2 { margin-bottom: 0; font-size: 28px; }
.support-grid p { margin: 0; }
.oshacademy-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 34px 0; border-top: 1px solid var(--line); }
.oshacademy-link h2 { font-size: 30px; margin-bottom: 8px; }
.oshacademy-link p { max-width: 780px; margin-bottom: 0; }
.training-table { display: grid; gap: 18px; }
.training-table article, .calendar-list article { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 22px; border-left: 5px solid var(--red); }
.training-table dl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 18px 0; }
.training-table dt { color: var(--red); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.training-table dd { margin: 4px 0 0; color: var(--muted); }
.calendar-list { display: grid; gap: 16px; }
.calendar-list span { color: var(--red); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.training-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 28px 0; }
.training-detail-grid section { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 22px; }
.training-detail-grid h2 { font-size: 21px; }
.training-detail-grid ul { padding-left: 20px; margin-bottom: 0; }
.registration-hero { background: var(--blue-dark); color: #fff; border-bottom: 5px solid var(--gold); padding: 42px 0; }
.registration-hero h1 { color: #fff; font-size: 42px; margin-bottom: 10px; }
.registration-hero p { max-width: 760px; font-size: 18px; margin-bottom: 0; }
.registration-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.registration-card { border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: 6px; background: #fff; padding: 26px; }
.registration-card.is-login { border-top-color: var(--blue); }
.registration-form { display: grid; gap: 14px; }
.subtle-link { font-size: 14px; }
.button.dark { background: #172635; color: #fff; }
.red-test-hero { background: linear-gradient(135deg, #b80f17, #e51f24 55%, #7f080d); color: #fff; padding: 58px 0; }
.red-test-hero .eyebrow, .red-test-hero h1 { color: #fff; }
.red-test-hero h1 { font-size: 46px; max-width: 620px; }
.red-test-hero p { max-width: 620px; font-size: 18px; }
.red-test-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr); gap: 38px; align-items: center; }
.red-test-grid img { width: 100%; height: auto; display: block; border-radius: 22px; box-shadow: 0 20px 55px rgba(0,0,0,.28); }
.red-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 44px 0; }
.red-service-grid article { border: 1px solid #f2c4c6; border-top: 5px solid var(--red); border-radius: 6px; background: #fff; padding: 24px; }
.all-course-search, .external-catalog { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 24px; padding: 24px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 6px; }
.all-course-search h3, .external-catalog h2 { margin-bottom: 6px; }
.all-course-search p, .external-catalog p { margin: 0; color: var(--muted); }
.member-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.member-course-list { margin-bottom: 32px; }
.external-catalog { display: block; }
.external-catalog .button { margin-top: 18px; }

@media (max-width: 900px) {
  .hero-grid, .split, .two-col, .intro-band, .footer-grid, .support-grid, .oshacademy-link, .registration-grid, .red-test-grid, .masthead { grid-template-columns: 1fr; }
  .course-grid, .program-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .training-table dl { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 36px; }
  .hero-grid { min-height: auto; }
}

@media (max-width: 620px) {
  .utility-inner, .cta-inner { align-items: flex-start; flex-direction: column; }
  .utility a { margin: 0 12px 0 0; }
  .brand strong { font-size: 24px; }
  .masthead { min-height: auto; padding: 16px 0 18px; gap: 14px; }
  .brand-transparent-logo { width: min(320px, 100%); max-height: 156px; }
  .brand-stack { font-size: 30px; }
  .brand-tagline { font-size: 11px; letter-spacing: 2px; gap: 9px; }
  .brand-tagline:before, .brand-tagline:after { width: 28px; }
  .brand-banner .enroll { justify-self: start; }
  .nav-row { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; }
  .nav-row a { text-align: center; padding: 12px 8px; font-size: 13px; }
  .primary-nav .sub-menu, .primary-nav .sub-menu .sub-menu { position: static; display: none; grid-column: 1 / -1; box-shadow: none; border-top: 0; min-width: 0; width: 100%; }
  .primary-nav .menu-item:hover > .sub-menu, .primary-nav .menu-item:focus-within > .sub-menu { display: block; }
  .primary-nav .sub-menu a { text-align: left; padding: 10px 18px; }
  .primary-nav .sub-menu .sub-menu a { padding-left: 28px; }
  .hero h1, .page h1 { font-size: 31px; }
  .hero-grid { padding: 34px 0; gap: 26px; }
  .hero-panel { padding: 16px; }
  .stat-row { gap: 12px; }
  .stat-row strong { font-size: 30px; }
  .course-grid, .program-grid, .resource-grid, .product-grid, .mission-grid, .list-panel, .training-table dl, .red-service-grid, .training-detail-grid { grid-template-columns: 1fr; }
  .registration-hero h1, .red-test-hero h1 { font-size: 31px; }
  .all-course-search { display: block; }
  .all-course-search .button { margin-top: 16px; }
}
