/* NIS2 training page (E11-03). Builds on style.css: same tokens, type, buttons, cards and FAQ. */

.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;
}
.btn-line {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-line:hover {
  background: var(--navy);
  color: #fff;
}
.nis2 section[id],
.nis2-form input,
.nis2-form select,
.nis2-form textarea {
  scroll-margin-top: 96px;
}
svg[aria-hidden="true"] {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero */
.nhero {
  padding: 36px 0 40px;
}
.nhero h1 {
  font-size: 31px;
}
.nhero .hero-art {
  display: none;
}
.nhero .lead {
  margin: 16px 0 24px;
}
.audience {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.aud {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.aud:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}
.aud[aria-current="true"] {
  border-color: var(--aqua);
  background: rgba(98, 217, 214, 0.14);
  box-shadow: inset 0 0 0 1px var(--aqua);
}
.aud-title {
  font: 700 18px / 1.3 var(--display);
}
.aud-text {
  color: #d6dcf1;
  font-size: 15px;
}
.aud-go {
  color: var(--aqua);
  font-weight: 600;
  font-size: 15px;
}
.trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  color: #d6dcf1;
  font-size: 14px;
  line-height: 1.35;
}
.trust li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.trust svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--aqua);
  margin-top: 1px;
}
.hours-art ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.hours-art li {
  display: grid;
  grid-template-columns: 92px auto 1fr;
  align-items: baseline;
  gap: 4px 10px;
  padding: 18px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.hours-art .num {
  font: 800 56px / 1 var(--display);
  color: var(--aqua);
  letter-spacing: -0.02em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hours-art .unit {
  font: 700 16px / 1 var(--display);
  color: #fff;
}
.hours-art .what {
  color: #d6dcf1;
  font-size: 15px;
  line-height: 1.3;
}
.hours-art p {
  margin: 14px 0 0;
  color: #aeb9e0;
  font-size: 14px;
  text-align: center;
}

/* Deadline band: info colour, thin */
.deadline {
  padding: 22px 0;
  background: var(--navy-50);
  border-bottom: 1px solid var(--line);
}
.deadline .wrap {
  display: grid;
  gap: 18px;
}
.deadline h2 {
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--navy);
}
.deadline p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 16.66%;
  right: 16.66%;
  top: 7px;
  height: 2px;
  background: var(--line-strong);
}
.timeline::after {
  background: var(--navy-500);
  transform-origin: left center;
}
.timeline li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0 4px;
  line-height: 1.3;
}
.tl-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--navy-500);
  position: relative;
  z-index: 1;
}
.tl-end {
  background: var(--aqua);
  border-color: var(--navy);
}

/* Training cards */
.tgroups {
  display: grid;
  gap: 32px;
}
.tgroup {
  display: grid;
  gap: 12px;
  grid-template-rows: auto auto 1fr;
  border-radius: 16px;
  padding: 12px;
  margin: -12px;
  transition:
    box-shadow 0.35s ease,
    background-color 0.35s ease;
}
.tgroup.is-selected {
  box-shadow: 0 0 0 2px var(--aqua);
  background: var(--aqua-50);
}
.group-label {
  font: 700 12px / 1.4 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-500);
  margin: 0;
}
.decide {
  margin: 0 0 4px;
  color: var(--ink-2);
  font-size: 15px;
}
.decide strong {
  color: var(--ink);
}
.tcards {
  display: grid;
  gap: 16px;
}
.tcard {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(11, 20, 55, 0.04);
}
.tgroup-ibf .tcard {
  border-top-color: var(--aqua);
}
.tcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tcard .code {
  font: 600 12px / 1.4 var(--mono);
  color: var(--ink-3);
}
.tcard h3 {
  font-size: 20px;
}
.tcard .hours {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 10px 0 2px;
}
.tcard .hours .num {
  font: 800 52px / 1 var(--display);
  color: var(--navy);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.tcard .hours .unit {
  font: 700 18px / 1 var(--display);
  color: var(--navy);
}
.tcard .formats {
  color: var(--ink-2);
  font-size: 15px;
  margin-bottom: 16px;
}
.tcard .ticks {
  margin-bottom: 16px;
  font-size: 15px;
}
.tnote {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 0 16px;
}
.tfoot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.tmeta {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}
.tmeta small {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
}
.tfoot .btn {
  margin-top: 10px;
  width: 100%;
  line-height: 1.25;
  padding: 10px 16px;
}

/* Leaders: question deck */
.split {
  display: grid;
  gap: 32px;
  align-items: start;
}
.split .lead {
  margin: 16px 0 24px;
  font-size: 17px;
}
.deck {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow:
    6px 6px 0 -1px var(--navy-50),
    6px 6px 0 0 var(--line),
    12px 12px 0 -1px var(--navy-100),
    12px 12px 0 0 var(--line);
  margin-right: 12px;
}
.deck h3 {
  font-size: 16px;
  margin-bottom: 12px;
}
.deck ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: q;
  display: grid;
  gap: 10px;
}
.deck li {
  counter-increment: q;
  position: relative;
  padding: 10px 12px 10px 48px;
  border-radius: 10px;
  background: var(--page);
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
}
.deck li::before {
  content: counter(q, decimal-leading-zero);
  position: absolute;
  left: 12px;
  top: 10px;
  font: 700 13px / 1.5 var(--mono);
  color: var(--navy-500);
}

/* IBF: modules and resources */
.sub {
  font-size: 16px;
  margin-bottom: 12px;
}
.mchips {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mchip {
  max-width: 100%;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}
.mchip b {
  color: var(--navy-500);
  font-weight: 700;
  white-space: nowrap;
}
.split > * {
  min-width: 0;
}
.resources {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.resources li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.resources svg,
.ic svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: var(--navy-500);
}
.more {
  margin: 28px 0 0;
}

/* Formats: table on wide screens, two cards on phones */
.compare {
  display: none;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 15px;
}
.compare th,
.compare td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  font: 700 17px / 1.3 var(--display);
  color: var(--navy);
  background: var(--navy-50);
}
.compare thead td {
  background: var(--navy-50);
}
.compare thead svg,
.fcard h3 svg {
  width: 20px;
  height: 20px;
  vertical-align: -4px;
  margin-right: 8px;
  color: var(--navy-500);
}
.compare tbody th {
  width: 22%;
  color: var(--ink);
  font-weight: 700;
}
.compare tbody td {
  color: var(--ink-2);
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}
.fcards {
  display: grid;
  gap: 16px;
}
.fcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.fcard h3 {
  margin-bottom: 12px;
  color: var(--navy);
}
.fcard dl {
  margin: 0;
  display: grid;
  gap: 10px;
}
.fcard dt {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fcard dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 15px;
}
.compare-note {
  margin: 16px 0 0;
  max-width: 820px;
}

/* Why */
.why .ic {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--navy-50);
  margin-bottom: 12px;
}

/* Company band */
.band {
  background: var(--navy);
  background-image: linear-gradient(160deg, #00186d 0%, #0a2689 100%);
  color: #fff;
  padding: 48px 0;
}
.band .wrap {
  display: grid;
  gap: 20px;
  align-items: center;
}
.band h2 {
  color: #fff;
  margin-bottom: 10px;
}
.band p {
  color: #d6dcf1;
  margin: 0;
  max-width: 720px;
  font-size: 17px;
}

/* Legal background band */
.legal {
  padding: 28px 0;
  background: var(--page);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
.legal .wrap {
  display: grid;
  gap: 6px;
}
.legal p {
  margin: 0;
}

/* Application form */
.apply .wrap {
  display: grid;
  gap: 24px;
}
.apply-points {
  margin-top: 8px;
}
.apply-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(11, 20, 55, 0.08);
}
.apply-mail {
  display: grid;
  gap: 16px;
  justify-items: start;
}
.apply-mail p {
  margin: 0;
}
.nis2-form .field {
  align-content: start;
}
.nis2-form .field[hidden] {
  display: none;
}
.nis2-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.nis2-form legend {
  padding: 0;
  margin-bottom: 8px;
}
.hint {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}
.nis2-form .seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 10px;
  background: var(--navy-50);
  gap: 4px;
}
.seg label,
.pills label {
  position: relative;
  display: block;
  cursor: pointer;
}
.seg input,
.pills input,
.rc input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.25;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.rcards {
  display: grid;
  gap: 8px;
}
.rc {
  position: relative;
  display: block;
  cursor: pointer;
}
.rc-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 12px 14px 12px 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  position: relative;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.rc-body::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
}
.rc input[type="checkbox"] + .rc-body::before {
  border-radius: 5px;
}
.rc input:checked + .rc-body {
  border-color: var(--navy);
  background: var(--navy-50);
  box-shadow: inset 0 0 0 1px var(--navy);
}
.rc input:checked + .rc-body::before {
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: inset 0 0 0 3px #fff;
}
.rc input[type="checkbox"]:checked + .rc-body::before {
  box-shadow: none;
  background:
    linear-gradient(45deg, transparent 45%, #fff 45%, #fff 58%, transparent 58%) 3px 5px / 6px 6px no-repeat,
    linear-gradient(-45deg, transparent 42%, #fff 42%, #fff 56%, transparent 56%) 6px 2px / 8px 9px no-repeat,
    var(--navy);
}
.rc-code {
  grid-column: 1;
  font: 600 12px / 1.4 var(--mono);
  color: var(--ink-3);
}
.rc-title {
  grid-column: 1;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.rc-hours {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font: 800 18px / 1 var(--display);
  color: var(--navy);
  white-space: nowrap;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pills span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  background: #fff;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.seg input:checked + span {
  background: var(--card);
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(11, 20, 55, 0.12);
}
.pills input:checked + span {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.seg input:focus-visible + span,
.pills input:focus-visible + span,
.rc input:focus-visible + .rc-body {
  outline: 3px solid var(--aqua);
  outline-offset: 2px;
}
.nis2-form fieldset[aria-invalid="true"] .rc-body,
.nis2-form fieldset[aria-invalid="true"] .pills span {
  border-color: var(--danger);
}
.form-legal {
  font-size: 13px;
  color: var(--ink-2);
  background: var(--page);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}
.form-legal p {
  margin: 0;
}
.nis2-form .btn {
  width: 100%;
}
.apply-box .done {
  display: grid;
  gap: 8px;
}
.apply-box .done p {
  margin: 0;
  color: var(--ink-2);
}

/* Footer: provider line */
.powered {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.site-footer .powered img.logo {
  margin: 0;
}

/* Sticky mobile call to action */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(11, 20, 55, 0.08);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.sticky-cta.on {
  transform: none;
}
.sticky-cta .btn {
  width: 100%;
}

/* Motion: only with JS (the html element gets .js) and without reduced motion */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.js .tcards .tcard.reveal:nth-child(2) {
  transition-delay: 0.08s;
}
.js .deadline .timeline::after {
  transform: scaleX(0);
  transition: transform 1.1s ease 0.15s;
}
.js .deadline.in .timeline::after {
  transform: scaleX(1);
}
.js .deadline .tl-dot {
  transform: scale(0.4);
  opacity: 0.4;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}
.js .deadline.in .tl-dot {
  transform: none;
  opacity: 1;
}
.js .deadline.in .timeline li:nth-child(1) .tl-dot {
  transition-delay: 0.1s;
}
.js .deadline.in .timeline li:nth-child(2) .tl-dot {
  transition-delay: 0.6s;
}
.js .deadline.in .timeline li:nth-child(3) .tl-dot {
  transition-delay: 1.15s;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal.in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .js .deadline .timeline::after,
  .js .deadline .tl-dot {
    transform: none;
    opacity: 1;
    transition: none;
  }
  .aud,
  .tgroup,
  .seg span,
  .pills span,
  .rc-body,
  .sticky-cta {
    transition: none;
  }
}

@media (min-width: 480px) {
  .resources {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 720px) {
  .nhero {
    padding: 56px 0 64px;
  }
  .nhero h1 {
    font-size: 42px;
  }
  .nhero .wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .audience {
    grid-template-columns: 1fr 1fr;
  }

  .trust {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    gap: 10px 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }
  .deadline .wrap {
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 32px;
  }
  .tcards {
    grid-template-columns: 1fr 1fr;
  }
  .tgroup-ibf .tcards {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .compare {
    display: table;
  }
  .fcards {
    display: none;
  }
  .grid.why {
    grid-template-columns: 1fr 1fr;
  }
  .band .wrap {
    grid-template-columns: 1fr auto;
    gap: 40px;
  }
  .apply-box {
    padding: 28px;
  }
  .sticky-cta {
    display: none;
  }
}
@media (min-width: 1024px) {
  .nhero {
    padding: 48px 0 52px;
  }
  .nhero h1 {
    font-size: 44px;
  }
  .nhero .wrap {
    grid-template-columns: 1.25fr 1fr;
  }
  .nhero .hero-art {
    display: block;
  }
  #kepzesek {
    padding-top: 64px;
  }
  .tgroups {
    grid-template-columns: 2fr 1fr;
    gap: 40px;
  }
  .tgroups.ibf-first {
    grid-template-columns: 1fr 2fr;
  }
  .trust {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
  }
  .decide {
    min-height: 3.1em;
  }
  .apply .wrap {
    grid-template-columns: 1fr 1.35fr;
    gap: 56px;
    align-items: start;
  }
  .grid.why {
    grid-template-columns: repeat(4, 1fr);
  }
}
