/* Education section: shared shell, navigation and visual language. */
html:has(.es-page) { overflow-x: clip; }
body:has(.es-page) { padding-top: 72px; overflow-x: clip; overflow-y: visible; }
.es-page { --es-blue: #243674; --es-ink: #243674; --es-muted: #444; --es-line: #dce3ef; --es-accent: #e3ebff; color: var(--es-ink); background: #f7f9fc; padding-bottom: 64px; }
.es-page *, .es-page *::before, .es-page *::after { box-sizing: border-box; }
.es-wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.es-page a { text-decoration: none; }
.es-page h1, .es-page h2, .es-page h3 { color: var(--es-ink); }
.es-page h1 { font-size: 2.4rem; font-weight: 400; line-height: 1.15; letter-spacing: -.5px; margin: 18px 0; }
.es-page h2 { font-size: 1.5rem; font-weight: 400; line-height: 1.35; letter-spacing: normal; margin: 12px 0 22px; }
.es-page h3 { font-size: 1.1rem; font-weight: 500; line-height: 1.4; }
.es-page p { color: var(--es-muted); font-size: 1rem; font-weight: 400; line-height: 1.8; }
.es-page [id] { scroll-margin-top: 176px; }
.es-page a:focus-visible, .es-page button:focus-visible { outline: 3px solid #4a6cb3; outline-offset: 5px; }
.es-eyebrow { display: block; font-size: .67rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.6; color: #425780; }

/* A single navigation bar follows the reader through all five pages. */
.es-section-nav { position: sticky; top: 72px; z-index: 80; background: rgba(247,249,252,.97); border-bottom: 1px solid var(--es-line); backdrop-filter: blur(14px); view-transition-name: education-navigation; }
::view-transition-group(education-navigation) { animation: none; }
.es-section-nav-inner { display: flex; align-items: center; justify-content: flex-start; padding-block: 14px; }
.es-section-toggle { display: none; }
.es-section-links { display: flex; align-items: center; gap: 4px; min-width: 0; }
.es-section-links a { flex-shrink: 0; padding: 11px 14px; border-radius: 10px; color: #48596d; font-size: .8rem; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s; }
.es-section-links a:hover { background: #e8edf8; color: var(--es-ink); }
.es-section-links a[aria-current] { background: var(--es-ink); color: white; }
.es-section-links a > span { margin-left: 5px; }

/* Inset editorial hero: company blue and light blue accents. */
.es-masthead { width: min(1200px, calc(100% - 64px)); margin: 28px auto 0; position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; background: linear-gradient(135deg, #0f1d45 0%, #1a2a5e 30%, #243674 60%, #2e4a8a 100%); }
.es-masthead::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 75% 15%, rgba(100,140,255,.12), transparent 55%), radial-gradient(ellipse at 25% 85%, rgba(60,100,200,.08), transparent 50%), radial-gradient(circle at 90% 80%, rgba(255,255,255,.03), transparent 40%); pointer-events: none; }
.es-hero { width: 100%; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 40px; padding: 42px; }
.es-masthead > .es-wrap { width: 100%; margin-inline: 0; }
.es-masthead h1 { color: #fff; }
.es-masthead p { color: #d4dee9; font-size: 1.04rem; line-height: 1.75; }
.es-hero-copy > p { margin-bottom: 30px; max-width: 530px; }
.es-masthead .es-eyebrow { display: inline-block; background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); font-size: .85rem; font-weight: 400; padding: 6px 16px; border-radius: 20px; letter-spacing: .5px; text-transform: none; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.15); }
.es-hero-photo { position: relative; align-self: stretch; margin: 0; min-height: 390px; border-radius: 20px; overflow: hidden; background: #0e223e; }
.es-hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.es-hero-photo > img[src$="/aviation.webp"], .es-direction-card > img[src$="/aviation.webp"] { object-position: right center; }
.es-hero-photo:has(figcaption)::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, #0a1924cf); pointer-events: none; }
.es-hero-photo figcaption { position: absolute; z-index: 1; bottom: 28px; left: 28px; color: white; font-size: 1.05rem; line-height: 1.5; }
.es-hero-photo figcaption span, .es-hero-photo figcaption strong { display: block; }
.es-hero-photo figcaption strong { font-weight: 600; }
.es-button { display: inline-flex; justify-content: center; align-items: center; gap: 22px; min-height: 52px; padding: 14px 24px; border: 0; border-radius: 12px; background: var(--es-ink); color: #fff; font: 500 .95rem/1.5 'Montserrat', sans-serif; cursor: pointer; transition: background .2s, transform .2s; }
.es-button:hover { background: #284977; transform: translateY(-2px); }
.es-button > span { font-size: 1.15rem; }
.es-masthead .es-button, .es-contact .es-button { color: #243674; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.es-masthead .es-button:hover, .es-contact .es-button:hover { background: #e8edf5; box-shadow: 0 6px 24px rgba(36,54,116,.22); }
.es-text-link { color: var(--es-ink); font-size: .86rem; font-weight: 600; line-height: 1.5; }
.es-text-link:hover { text-decoration: underline; }

/* Shared content rhythm. */
.es-section, .es-media-section, .es-industrial { padding-block: 48px; }
.es-section-heading { margin-bottom: 28px; }
.es-section-heading h2 { margin-bottom: 0; }
.es-section-heading h2::after, .es-intro h2::after, .es-support > h2::after { content: ''; display: block; width: 42px; height: 4px; background: #6f8bc3; border-radius: 2px; margin-top: 18px; }
.es-direction-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.es-direction-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--es-line); border-radius: 22px; background: #fff; transition: transform .25s, box-shadow .25s; }
.es-direction-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px #192e4710; }
.es-direction-card > img { display: block; width: 100%; height: 220px; object-fit: cover; }
.es-direction-copy { display: flex; flex-direction: column; align-items: start; flex: 1; padding: 26px; min-height: 218px; }
.es-direction-copy h3 { margin: 0 0 12px; font-size: 1.05rem; }
.es-direction-copy p { font-size: .9rem; margin-bottom: 24px; }
.es-direction-copy .es-text-link { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--es-line); }
.es-direction-copy .es-text-link > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--es-accent); font-size: 1.1rem; font-weight: 400; }
.es-media-section { border-top: 1px solid var(--es-line); margin-top: 8px; }
.es-video { display: block; width: 100%; max-height: 620px; object-fit: contain; background: #0e213e; border-radius: 24px; }
.es-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; padding-block: 56px 30px; }
.es-skills { list-style: none; display: flex; flex-direction: column; padding: 0; margin: 0; }
.es-skills li { display: flex; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--es-line); font-size: .95rem; line-height: 1.7; }
.es-skills span { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; background: #e8edf8; border-radius: 50%; color: var(--es-ink); }
.es-intro-list { padding-left: 20px; margin-top: 18px; color: var(--es-muted); font-size: 1rem; line-height: 1.8; }
.es-intro-list li + li { margin-top: 8px; }
.es-technology { align-self: center; padding: 30px; border: 1px solid #d9e2f2; border-radius: 22px; background: #edf2fb; }
.es-technology h3 { margin-bottom: 12px; }
.es-page .es-partners { margin-top: 22px; color: var(--es-ink); font-weight: 600; }
.es-complex-text { margin-bottom: 28px; max-width: 1100px; }
.es-equipment-group + .es-equipment-group { margin-top: 52px; padding-top: 42px; border-top: 1px solid var(--es-line); }
.es-equipment-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.es-equipment-grid--pair { grid-template-columns: repeat(2,minmax(0,1fr)); }
.es-equipment-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--es-line); border-radius: 22px; transition: transform .2s, box-shadow .2s; }
.es-equipment-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px #192e470c; }
.es-equipment-image { display: block; background: #fff; }
.es-equipment-image img { display: block; width: 100%; height: 230px; padding: 28px; object-fit: contain; }
.es-equipment-copy { display: flex; flex-direction: column; flex: 1; padding: 24px; border-top: 1px solid #edf0f7; }
.es-equipment-copy .es-eyebrow { font-size: .62rem; letter-spacing: .08em; }
.es-equipment-copy h3 { margin: 12px 0; }
.es-equipment-copy p { font-size: .9rem; margin-bottom: 24px; }
.es-equipment-bottom { margin-top: auto; }
.es-equipment-bottom .es-text-link { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--es-line); padding-top: 16px; }
.es-equipment-bottom .es-text-link > span[aria-hidden] { display: grid; place-items: center; background: #edf2fb; width: 30px; height: 30px; border-radius: 50%; font-size: 1.05rem; }
.es-solution-price { margin-top: 26px; padding: 26px 30px; border: 1px solid #d9e2f2; border-radius: 20px; background: #edf2fb; }
.es-solution-price p + p { margin-top: 12px; }
.es-solution-price strong { color: var(--es-ink); font-weight: 600; }
.es-industrial-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.es-industrial-card { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 24px; align-items: center; padding: 28px; border: 1px solid var(--es-line); border-radius: 22px; background: #fff; }
.es-industrial-card img { width: 120px; height: 130px; object-fit: contain; }
.es-industrial-card p { font-size: .9rem; margin: 12px 0 16px; }
.es-support { margin-top: 32px; padding: 40px 48px 32px; background: #fff; border-radius: 20px; box-shadow: 0 2px 16px rgba(35,102,168,.06); }
.es-support > h2::after { width: 48px; height: 3px; background: linear-gradient(90deg, #243674, #4a6cb3); }
.es-support-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; padding-top: 14px; }
.es-support-grid > div { position: relative; overflow: hidden; padding: 28px 24px; border-radius: 16px; background: linear-gradient(135deg, #f7f9ff 0%, #f0f3fb 100%); }
.es-support-grid > div::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #243674, #4a6cb3); }
.es-support-grid h3 { color: #1a2a5e; font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; }
.es-support-grid p { font-size: .95rem; line-height: 1.55; margin: 0; }

/* The catalogue remains a simple three-column list of documents. */
.es-catalogue-header { width: 100%; padding: 42px; position: relative; }
.es-catalogue-header h1 { margin: 0 0 20px; }
.es-catalogue-header p { max-width: 640px; }
.es-catalogue-nav { padding-top: 30px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; align-items: stretch; }
.es-catalogue-group { min-width: 0; padding: 24px; border: 1px solid var(--es-line); border-radius: 22px; background: #fff; }
.es-catalogue-group h2 { min-height: 3em; margin: 0 0 22px; font-size: 1.05rem; font-weight: 500; line-height: 1.5; letter-spacing: normal; }
.es-catalogue-group h2::before { content: ''; display: block; width: 30px; height: 4px; background: #6f8bc3; border-radius: 2px; margin-bottom: 18px; }
.es-catalogue-items { display: flex; flex-direction: column; gap: 12px; }
.es-catalogue-item { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 12px; background: #f7f9fd; color: var(--es-ink); border: 1px solid #e3e8f2; border-radius: 14px; font: inherit; font-size: .84rem; line-height: 1.55; text-align: left; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; }
.es-catalogue-item:hover { background: #eaf0fd; border-color: #9aafd3; }
.es-catalogue-item img { display: block; width: 94px; height: 82px; flex-shrink: 0; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; }
.es-catalogue-item > span { min-width: 0; }
.es-catalogue-item small { display: block; margin-top: 7px; color: #425780; font-size: .7rem; }

/* Closing panel uses the site's original blue gradient and white button. */
.es-contact { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 48px; padding: 48px 56px; border: 0; border-radius: 24px; background: linear-gradient(135deg, #1a2a5e 0%, #243674 50%, #2e4a8a 100%); }
.es-contact > div:first-child { max-width: 640px; }
.es-contact h2 { color: #fff; margin: 0 0 16px; font-size: 1.5rem; }
.es-contact p { color: rgba(255,255,255,.75); font-size: 1rem; }
.es-contact-actions { flex-shrink: 0; }
.es-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1100px) {
    .es-wrap, .es-masthead { width: calc(100% - 40px); }
    .es-section-links a { padding-inline: 10px; font-size: .76rem; }
    .es-hero { gap: 28px; padding: 32px; }
    .es-hero-photo { min-height: 360px; }
    .es-intro { gap: 36px; }
    .es-direction-copy { padding: 22px; }
    .es-equipment-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .es-industrial-card { grid-template-columns: 90px minmax(0,1fr); gap: 18px; padding: 22px; }
    .es-industrial-card img { width: 90px; height: 110px; }
    .es-catalogue-group { padding: 18px; }
    .es-catalogue-item { gap: 10px; padding: 10px; }
    .es-catalogue-item img { width: 70px; height: 74px; }
    .es-contact { gap: 24px; padding: 32px; }
    .es-contact .es-button { padding-inline: 18px; gap: 12px; }
}
@media (max-width: 900px) {
    .es-page h1 { font-size: 1.7rem; }
}
@media (max-width: 1100px) {
    .es-section-nav-inner { position: relative; align-items: stretch; flex-direction: column; gap: 10px; padding-block: 10px; }
    .es-section-links { flex-direction: column; align-items: stretch; gap: 4px; }
    .es-section-links a { min-height: 44px; display: flex; align-items: center; font-size: .85rem; padding: 11px 14px; white-space: normal; }
    .es-nav-enhanced .es-section-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 11px 14px; border: 1px solid #d5def1; border-radius: 12px; background: #edf2fc; color: var(--es-ink); font: 500 .85rem/1.4 'Montserrat', sans-serif; text-align: left; cursor: pointer; }
    .es-section-toggle svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s; }
    .es-nav-open .es-section-toggle svg { transform: rotate(180deg); }
    .es-nav-enhanced .es-section-links { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 150px); overflow-y: auto; padding: 8px; border: 1px solid var(--es-line); border-radius: 14px; background: #fff; box-shadow: 0 12px 28px rgba(26,42,94,.14); }
    .es-nav-enhanced:not(.es-nav-open) .es-section-links { display: none; }
    .es-page [id] { scroll-margin-top: 166px; }
}
@media (max-width: 800px) {
    .es-contact { flex-direction: column; align-items: start; }
    .es-contact-actions { max-width: 100%; }
}
@media (max-width: 760px) {
    .es-page { padding-bottom: 32px; }
    .es-wrap, .es-masthead { width: calc(100% - 32px); }
    .es-masthead { margin-top: 18px; border-radius: 22px; }
    .es-hero { grid-template-columns: minmax(0,1fr); padding: 26px; gap: 28px; }
    .es-page h1 { font-size: 1.7rem; }
    .es-page h2 { font-size: 1.4rem; }
    .es-masthead p { font-size: .95rem; }
    .es-masthead .es-eyebrow { font-size: .75rem; }
    .es-masthead .es-button { padding-inline: 18px; gap: 14px; font-size: .9rem; }
    .es-hero-copy > p { margin-bottom: 24px; }
    .es-hero-photo { min-height: 265px; }
    .es-hero-photo figcaption { font-size: 1.05rem; left: 20px; bottom: 20px; }
    .es-section, .es-media-section, .es-industrial { padding-block: 32px; }
    .es-section-heading { margin-bottom: 24px; }
    .es-direction-grid, .es-equipment-grid, .es-catalogue-nav, .es-industrial-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
    .es-direction-card > img { height: 215px; }
    .es-direction-copy { min-height: 0; padding: 24px; }
    .es-direction-copy p { margin-bottom: 20px; }
    .es-intro { grid-template-columns: minmax(0,1fr); gap: 24px; padding-block: 36px 20px; }
    .es-technology { padding: 24px; }
    .es-equipment-group + .es-equipment-group { margin-top: 36px; padding-top: 32px; }
    .es-equipment-image img { height: 230px; }
    .es-solution-price { padding: 24px; }
    .es-support-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
    .es-support { padding: 28px 24px; }
    .es-catalogue-header { padding: 28px; }
    .es-catalogue-header p { font-size: .95rem; }
    .es-catalogue-group { padding: 24px; }
    .es-catalogue-group h2 { min-height: 0; font-size: 1.05rem; }
    .es-catalogue-item { padding: 12px; gap: 14px; font-size: .88rem; }
    .es-catalogue-item img { width: 94px; height: 82px; }
    .es-contact { padding: 28px; margin-top: 32px; gap: 24px; }
    .es-contact h2 { font-size: 1.4rem; }
    .es-contact .es-button { max-width: 100%; padding: 14px 20px; font-size: .85rem; }
    .es-video { border-radius: 18px; }
}
@media (max-width: 375px) {
    body:has(.es-page) .nh-logo { gap: 8px; margin-right: 0; }
    body:has(.es-page) .nh-logo-text { font-size: .85rem; }
    body:has(.es-page) .nh-logo-img { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .es-page *, .es-page *::before, .es-page *::after { scroll-behavior: auto; transition: none; }
    .es-button:hover, .es-direction-card:hover, .es-equipment-card:hover { transform: none; }
}
