/* Osmocom and nanoBTS onsite training page */

.training-hero {
  width: 100%;
  height: calc(100svh - 32px);
  min-height: 700px;
  max-height: 860px;
  padding: 0 !important;
  position: relative;
  color: #fff;
  background: var(--dark) url("../img/bg.jpg") center 45% / cover no-repeat;
}

.training-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 13, 15, 0.99) 0%, rgba(4, 13, 15, 0.9) 52%, rgba(4, 13, 15, 0.46) 100%),
    linear-gradient(0deg, rgba(4, 13, 15, 0.82) 0%, transparent 46%);
}

.training-hero::after {
  content: "";
  width: 34%;
  height: 2px;
  position: absolute;
  top: 76px;
  right: 0;
  background: linear-gradient(90deg, transparent, var(--teal));
}

.training-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.training-hero-content {
  height: 100%;
  padding-top: 145px;
  padding-bottom: 42px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.training-hero-copy {
  max-width: 900px;
}

.training-hero-copy h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: 62px;
  font-weight: 600;
  line-height: 1.05;
}

.training-hero-intro {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 20px;
  line-height: 1.6;
}

.training-hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.training-proof {
  padding-top: 25px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.training-proof > div {
  padding: 0 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.training-proof > div:first-child {
  padding-left: 0;
}

.training-proof > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.training-proof strong {
  color: var(--amber);
  font-family: "IBM Plex Mono", monospace;
  font-size: 20px;
  font-weight: 600;
}

.training-proof span {
  max-width: 250px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.45;
}

.course-intro {
  border-bottom: 1px solid var(--line);
}

.course-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 90px;
  align-items: start;
}

.course-intro h2,
.nanobts-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 46px;
  font-weight: 600;
  line-height: 1.12;
}

.course-intro-copy p,
.nanobts-copy > p:not(.eyebrow) {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.course-intro-copy p:last-child {
  margin-bottom: 0;
}

.agenda-days {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #bdc8c5;
  border-left: 1px solid #bdc8c5;
}

.agenda-day {
  padding: 36px;
  border-right: 1px solid #bdc8c5;
  border-bottom: 1px solid #bdc8c5;
}

.agenda-day > header {
  min-height: 94px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  align-items: start;
}

.agenda-day > header > span {
  color: var(--teal-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
}

.agenda-day h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
}

.agenda-day header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.agenda-day ol {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: lab-topic;
  border-top: 1px solid #cdd5d3;
}

.agenda-day li {
  min-height: 96px;
  padding: 20px 0 20px 72px;
  position: relative;
  counter-increment: lab-topic;
  border-bottom: 1px solid #d9dfdd;
}

.agenda-day li:last-child {
  border-bottom: 0;
}

.agenda-day li::before {
  content: "0" counter(lab-topic);
  position: absolute;
  top: 22px;
  left: 0;
  color: var(--teal-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
}

.agenda-day li strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.agenda-day li span {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.stack-section {
  position: relative;
}

.stack-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent 2%, #000 50%, transparent 98%);
}

.stack-section .container-xl {
  position: relative;
  z-index: 1;
}

.stack-diagram {
  padding: 36px 0 34px;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 72px minmax(130px, 1fr) 86px minmax(130px, 1fr) 86px minmax(130px, 1fr) 72px minmax(150px, 1.12fr);
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.stack-node {
  min-width: 0;
  min-height: 160px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
}

.stack-node > i {
  margin-bottom: 30px;
  color: var(--teal);
  font-size: 28px;
}

.stack-node strong {
  margin-bottom: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 600;
}

.stack-node span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  line-height: 1.4;
}

.radio-node {
  border-color: rgba(237, 176, 75, 0.48);
}

.radio-node > i {
  color: var(--amber);
}

.core-node {
  border-color: rgba(22, 184, 173, 0.58);
}

.stack-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.stack-link span {
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
}

.stack-link i {
  color: var(--teal);
  font-size: 20px;
}

.stack-link small {
  color: rgba(255, 255, 255, 0.4);
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  line-height: 1.3;
}

.core-branches {
  margin-top: 18px;
  display: grid;
  grid-column: 7 / 10;
  grid-template-columns: 54px 1fr 54px 1fr;
  gap: 12px;
  align-items: center;
}

.branch-title {
  margin: 0 0 2px;
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.42);
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  text-align: right;
}

.branch-node {
  min-height: 124px;
}

.branch-node > i {
  margin-bottom: 18px;
  font-size: 22px;
}

.branch-line {
  height: 2px;
  position: relative;
  background: rgba(22, 184, 173, 0.55);
}

.branch-line::after {
  content: "";
  width: 6px;
  height: 6px;
  position: absolute;
  top: -2px;
  right: 0;
  background: var(--teal);
}

.branch-line span {
  position: absolute;
  right: 0;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.52);
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
}

.stack-caption {
  max-width: 760px;
  margin: 22px 0 0 auto;
  color: rgba(255, 255, 255, 0.48);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  line-height: 1.6;
  text-align: right;
}

.nanobts-section {
  border-bottom: 1px solid var(--line);
}

.nanobts-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(560px, 1.22fr);
  gap: 100px;
  align-items: center;
}

.nanobts-copy h2 {
  margin-bottom: 24px;
}

.nanobts-copy ul {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.nanobts-copy li {
  padding: 12px 0;
  display: flex;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  border-bottom: 1px solid var(--line);
}

.nanobts-copy li i {
  flex: 0 0 auto;
  color: var(--teal-dark);
  font-size: 18px;
}

.nanobts-figure {
  min-height: 520px;
  margin: 0;
  padding: 56px 30px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e9efed;
  border: 1px solid #cbd6d3;
  border-radius: 3px;
}

.signal-rings {
  width: 460px;
  height: 460px;
  position: absolute;
  top: 7px;
  left: calc(50% - 230px);
  opacity: 0.35;
}

.signal-rings span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--teal-dark);
  border-radius: 50%;
}

.signal-rings span:nth-child(2) {
  inset: 60px;
}

.signal-rings span:nth-child(3) {
  inset: 120px;
}

.bts-shadow {
  width: 430px;
  height: 55px;
  position: absolute;
  bottom: 106px;
  background: rgba(16, 27, 30, 0.2);
  border-radius: 50%;
  filter: blur(18px);
}

.bts-device {
  width: min(470px, 88%);
  height: 300px;
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, #dfe4e4 0%, #a8b0b1 48%, #7a8587 100%);
  border: 1px solid #727d7e;
  border-radius: 5px;
  box-shadow: 0 28px 50px rgba(16, 27, 30, 0.25), inset 0 2px 1px rgba(255, 255, 255, 0.78);
  transform: perspective(900px) rotateX(4deg) rotateY(-5deg);
}

.bts-antenna {
  width: 13px;
  height: 112px;
  position: absolute;
  top: -62px;
  background: linear-gradient(90deg, #cdd3d3, #7e898a);
  border: 1px solid #6d7778;
  border-radius: 7px 7px 2px 2px;
}

.antenna-left {
  left: 24px;
}

.antenna-right {
  right: 24px;
}

.bts-fins {
  height: 92px;
  position: absolute;
  inset: 26px 30px auto;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 9px;
}

.bts-fins span {
  background: linear-gradient(90deg, #697476, #c8cece 45%, #657173);
  border-radius: 2px;
  box-shadow: 3px 4px 4px rgba(16, 27, 30, 0.18);
}

.bts-label {
  width: 58%;
  padding: 17px;
  position: absolute;
  top: 135px;
  left: 21%;
  text-align: center;
  background: #eef1f0;
  border: 1px solid #7d8788;
  border-radius: 2px;
}

.bts-label small,
.bts-label span {
  display: block;
  color: #596466;
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
}

.bts-label strong {
  display: block;
  margin: 5px 0;
  color: #182427;
  font-family: "IBM Plex Mono", monospace;
  font-size: 23px;
}

.bts-leds {
  position: absolute;
  top: 210px;
  right: 30px;
  display: flex;
  gap: 8px;
}

.bts-leds span {
  width: 7px;
  height: 7px;
  background: #455052;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.bts-leds .led-active {
  background: #24d3a5;
  box-shadow: 0 0 8px rgba(36, 211, 165, 0.9);
}

.bts-ports {
  height: 40px;
  position: absolute;
  right: 22px;
  bottom: -1px;
  left: 22px;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr 0.7fr 0.7fr;
  gap: 8px;
  align-items: center;
}

.bts-ports span {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c7cece;
  background: #273335;
  border: 1px solid #111b1d;
  border-radius: 2px 2px 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 7px;
}

.bts-ports .ethernet-port {
  color: #84e6d8;
  border-color: var(--teal-dark);
}

.nanobts-figure figcaption {
  width: 100%;
  margin-top: 55px;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-around;
  gap: 14px;
}

.nanobts-figure figcaption span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #526164;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.nanobts-figure figcaption i {
  color: var(--teal-dark);
  font-size: 14px;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #bdc8c5;
  border-left: 1px solid #bdc8c5;
}

.requirements-grid > div {
  min-height: 310px;
  padding: 32px;
  border-right: 1px solid #bdc8c5;
  border-bottom: 1px solid #bdc8c5;
}

.requirements-grid h3 {
  margin: 0 0 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 600;
}

.requirements-grid h3 i {
  color: var(--teal-dark);
  font-size: 20px;
}

.requirements-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.requirements-grid li {
  padding: 10px 0 10px 17px;
  position: relative;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid #dde3e1;
}

.requirements-grid li::before {
  content: "";
  width: 5px;
  height: 5px;
  position: absolute;
  top: 18px;
  left: 0;
  background: var(--amber);
}

.rf-notice {
  margin-top: 28px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 3px;
}

.rf-notice > i {
  color: var(--amber);
  font-size: 24px;
}

.rf-notice p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.6;
}

.rf-notice strong {
  color: #fff;
}

.rf-notice a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal) !important;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
}

.training-contact {
  border-bottom: 1px solid #213033;
}

.course-payment {
  padding-top: 72px !important;
  padding-bottom: 72px !important;
}

.course-booking {
  padding: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  gap: 70px;
  align-items: start;
  background: var(--paper);
  border: 1px solid #bdc8c5;
  border-top: 4px solid var(--teal-dark);
}

.course-booking-heading {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.course-booking-heading > i {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-dark);
  background: #e2ece9;
  border: 1px solid #c7d8d4;
  border-radius: 3px;
  font-size: 19px;
}

.course-booking .eyebrow {
  margin-bottom: 14px;
}

.course-booking h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
}

.course-booking p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.course-booking p strong {
  color: var(--ink);
}

#paypal-container-YJZWJDF7S7ZS2 {
  width: 100%;
  min-height: 45px;
}

@media (max-width: 1199px) {
  .training-hero::after {
    top: 68px;
  }

  .stack-diagram {
    grid-template-columns: minmax(115px, 1fr) 50px minmax(115px, 1fr) 60px minmax(115px, 1fr) 60px minmax(115px, 1fr) 50px minmax(130px, 1.1fr);
  }

  .stack-node {
    padding: 18px 14px;
  }

  .nanobts-layout {
    gap: 60px;
  }
}

@media (max-width: 991px) {
  .course-booking {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .training-hero-copy h1 {
    font-size: 50px;
  }

  .training-hero-intro {
    font-size: 18px;
  }

  .training-proof > div {
    padding: 0 18px;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .course-intro-layout,
  .nanobts-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .course-intro h2,
  .nanobts-copy h2 {
    font-size: 40px;
  }

  .agenda-days {
    grid-template-columns: 1fr;
  }

  .stack-diagram {
    max-width: 620px;
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stack-node {
    min-height: 120px;
  }

  .stack-node > i {
    margin-bottom: 20px;
  }

  .stack-link {
    min-height: 82px;
    justify-content: center;
  }

  .stack-link i {
    transform: rotate(90deg);
  }

  .core-branches {
    width: 100%;
    margin-top: 16px;
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .branch-line {
    display: none;
  }

  .branch-title {
    margin: 10px 0 4px;
    text-align: left;
  }

  .branch-node {
    position: relative;
  }

  .branch-node::before {
    content: attr(data-interface);
    position: absolute;
    top: 18px;
    right: 18px;
    color: var(--teal);
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
    font-weight: 600;
  }

  .stack-caption {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .nanobts-copy {
    max-width: 700px;
  }

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

  .requirements-grid > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .training-hero {
    height: calc(100svh - 24px);
    min-height: 690px;
    max-height: 800px;
  }

  .training-hero-content {
    padding-top: 108px;
    padding-bottom: 28px;
  }

  .training-hero-copy h1 {
    font-size: 39px;
    line-height: 1.08;
  }

  .training-hero-intro {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.55;
  }

  .training-hero-actions {
    margin-top: 25px;
  }

  .training-proof {
    padding-top: 18px;
    gap: 8px;
  }

  .training-proof > div {
    padding: 0 8px;
    display: block;
  }

  .training-proof strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
  }

  .training-proof span {
    display: block;
    font-size: 9px;
    line-height: 1.35;
  }

  .course-intro h2,
  .nanobts-copy h2 {
    font-size: 33px;
  }

  .course-intro-copy p {
    font-size: 15px;
  }

  .agenda-day {
    padding: 25px;
  }

  .agenda-day > header {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .agenda-day li {
    padding-left: 42px;
  }

  .nanobts-figure {
    min-height: 430px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .bts-device {
    width: 94%;
    height: 240px;
  }

  .bts-fins {
    height: 72px;
    inset: 22px 22px auto;
    gap: 6px;
  }

  .bts-label {
    top: 108px;
  }

  .bts-label strong {
    font-size: 18px;
  }

  .bts-leds {
    top: 172px;
    right: 22px;
  }

  .bts-shadow {
    width: 85%;
  }

  .signal-rings {
    width: 360px;
    height: 360px;
    left: calc(50% - 180px);
  }

  .nanobts-figure figcaption {
    margin-top: 48px;
    flex-wrap: wrap;
  }

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

  .requirements-grid > div,
  .requirements-grid > div:last-child {
    min-height: 0;
    grid-column: auto;
    padding: 27px;
  }

  .rf-notice {
    grid-template-columns: auto 1fr;
  }

  .rf-notice a {
    grid-column: 2;
  }
}

@media (max-width: 479px) {
  .course-payment {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .course-booking {
    padding: 26px 20px;
  }

  .course-booking-heading {
    grid-template-columns: 1fr;
  }

  .course-booking h2 {
    font-size: 27px;
  }

  .training-hero {
    min-height: 730px;
  }

  .training-hero-copy h1 {
    font-size: 34px;
  }

  .training-hero-actions .button {
    width: 100%;
  }

  .course-intro h2,
  .nanobts-copy h2 {
    font-size: 30px;
  }

  .nanobts-figure {
    min-height: 390px;
  }

  .bts-device {
    height: 210px;
  }

  .bts-fins {
    height: 58px;
  }

  .bts-label {
    top: 88px;
  }

  .bts-leds {
    top: 151px;
  }
}
