/* =========================================================
   Individual course pages — jp-hero
   Applies to any non-profession body (Spring/Kafka/PHP etc.)
   v=20260927jphero2
   ========================================================= */
body:not([class*='profession-page']) .hero-section.jp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(38rem, 80vh, 48rem);
  padding: clamp(1.1rem, 2.2vw, 1.8rem) 0 clamp(2.1rem, 3.6vw, 3.2rem) !important;
  background: #06101d !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Kill legacy java.css / course-common decorative hero overlays */
body:not([class*='profession-page']) .hero-section.jp-hero::before,
body:not([class*='profession-page']) .hero-section.jp-hero::after {
  content: none !important;
  display: none !important;
}

body:not([class*='profession-page']) .jp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scale(1.02);
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(0.95) brightness(0.68);
}

body:not([class*='profession-page']) .jp-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(4, 10, 20, 0.95) 0%, rgba(5, 14, 28, 0.88) 40%, rgba(6, 15, 28, 0.62) 68%, rgba(6, 13, 24, 0.4) 100%),
    linear-gradient(0deg, rgba(4, 10, 20, 0.86) 0%, rgba(4, 10, 20, 0) 42%),
    radial-gradient(circle at 84% 48%, rgba(249, 115, 22, 0.1), transparent 30rem);
  pointer-events: none;
}

body:not([class*='profession-page']) .jp-hero__wrap {
  position: relative;
  z-index: 2;
}

body:not([class*='profession-page']) .jp-hero .java-hero-v2__grid-bg,
body:not([class*='profession-page']) .jp-hero .java-hero-v2__orbs,
body:not([class*='profession-page']) .jp-hero .java-hero-v2__spotlight,
body:not([class*='profession-page']) .jp-hero .java-hero-v2__content::before {
  display: none !important;
}

body:not([class*='profession-page']) .jp-hero__layout {
  align-items: stretch !important;
  --bs-gutter-x: clamp(1.25rem, 2.8vw, 2.4rem);
}

@media (min-width: 992px) {
  body:not([class*='profession-page']) .jp-hero__content,
  body:not([class*='profession-page']) .jp-hero__offer {
    display: flex;
    flex-direction: column;
    align-self: stretch;
  }
}

body:not([class*='profession-page']) .jp-hero__content {
  justify-content: flex-start;
  min-width: 0;
  height: auto;
}

body:not([class*='profession-page']) .jp-hero__eyebrow {
  margin: 0 0 0.7rem;
  color: #fb923c !important;
  -webkit-text-fill-color: #fb923c !important;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body:not([class*='profession-page']) .jp-hero__title,
body:not([class*='profession-page']) .java-hero-v2__title.jp-hero__title {
  margin: 0 0 0.85rem;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-family: "Manrope", system-ui, sans-serif !important;
  font-size: clamp(2.05rem, 4.4vw, 3.55rem) !important;
  font-weight: 850 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.045em !important;
  background: none !important;
  white-space: normal !important;
  max-width: 100%;
}

body:not([class*='profession-page']) .jp-hero__title span,
body:not([class*='profession-page']) .java-hero-v2--b .jp-hero__title span {
  display: inline;
  background: none !important;
  color: #7dd3fc !important;
  -webkit-text-fill-color: #7dd3fc !important;
  filter: none;
}

body:not([class*='profession-page']) .jp-hero__lead {
  max-width: 36rem;
  margin: 0 0 1.15rem;
  color: rgba(226, 232, 240, 0.9) !important;
  -webkit-text-fill-color: rgba(226, 232, 240, 0.9) !important;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem) !important;
  font-weight: 500;
  line-height: 1.6 !important;
}

body:not([class*='profession-page']) .jp-hero__callout {
  display: flex;
  gap: 0.85rem;
  max-width: 36rem;
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(249, 115, 22, 0.38);
  border-radius: 0.9rem;
  background: rgba(249, 115, 22, 0.08);
}

body:not([class*='profession-page']) .jp-hero__callout > i {
  flex-shrink: 0;
  margin-top: 0.12rem;
  font-size: 1.25rem;
  color: #fb923c;
}

body:not([class*='profession-page']) .jp-hero__callout strong {
  display: block;
  margin-bottom: 0.28rem;
  color: #fdba74;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
}

body:not([class*='profession-page']) .jp-hero__callout p {
  margin: 0;
  color: rgba(226, 232, 240, 0.84);
  font-size: 0.84rem;
  line-height: 1.5;
}

body:not([class*='profession-page']) .jp-hero__teacher {
  max-width: 36rem;
  margin: 0 0 1.25rem;
  color: rgba(203, 213, 225, 0.88) !important;
  -webkit-text-fill-color: rgba(203, 213, 225, 0.88) !important;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
}

body:not([class*='profession-page']) .jp-hero__teacher-link {
  color: #7dd3fc !important;
  -webkit-text-fill-color: #7dd3fc !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(125, 211, 252, 0.45);
}

body:not([class*='profession-page']) .jp-hero__teacher-link:hover {
  color: #fb923c !important;
  -webkit-text-fill-color: #fb923c !important;
  text-decoration-color: rgba(251, 146, 60, 0.55);
}

body:not([class*='profession-page']) .jp-hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  max-width: 36rem;
  margin: 0 0 1.2rem;
}

body:not([class*='profession-page']) .jp-hero__metric > i {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  margin-bottom: 0.55rem;
  border-radius: 0.65rem;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body:not([class*='profession-page']) .jp-hero__metric--orange > i {
  color: #fb923c;
  background: rgba(249, 115, 22, 0.14);
  border-color: rgba(249, 115, 22, 0.28);
}

body:not([class*='profession-page']) .jp-hero__metric--blue > i {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.28);
}

body:not([class*='profession-page']) .jp-hero__metric--green > i {
  color: #34d399;
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.28);
}

body:not([class*='profession-page']) .jp-hero__metric strong,
body:not([class*='profession-page']) .jp-hero__metric span {
  display: block;
}

body:not([class*='profession-page']) .jp-hero__metric strong {
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

body:not([class*='profession-page']) .jp-hero__metric span {
  margin-top: 0.15rem;
  color: #94a3b8;
  font-size: 0.68rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body:not([class*='profession-page']) .jp-hero__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 36rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}

body:not([class*='profession-page']) .jp-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 999px;
  background: rgba(7, 15, 28, 0.82);
  backdrop-filter: blur(6px);
  color: #e2e8f0 !important;
  -webkit-text-fill-color: #e2e8f0 !important;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

body:not([class*='profession-page']) .jp-hero__chip i {
  font-size: 0.95rem;
  color: #7dd3fc;
}

body:not([class*='profession-page']) .jp-hero__chip:nth-child(1) i { color: #f59e0b; }
body:not([class*='profession-page']) .jp-hero__chip:nth-child(2) i { color: #4ade80; }
body:not([class*='profession-page']) .jp-hero__chip:nth-child(3) i { color: #60a5fa; }
body:not([class*='profession-page']) .jp-hero__chip:nth-child(4) i { color: #c084fc; }

body:not([class*='profession-page']) .jp-hero__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: 36rem;
  margin-top: 0.85rem;
}

body:not([class*='profession-page']) .jp-hero__price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0;
}

body:not([class*='profession-page']) .jp-hero__price-value {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1;
}

body:not([class*='profession-page']) .jp-hero__price-note {
  padding-left: 0.8rem;
  border-left: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
  font-size: 0.9rem;
  font-weight: 700;
}

body:not([class*='profession-page']) .jp-hero__entry {
  margin: 0.55rem 0 0.85rem;
  color: rgba(226, 232, 240, 0.88) !important;
  -webkit-text-fill-color: rgba(226, 232, 240, 0.88) !important;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
}

body:not([class*='profession-page']) .jp-hero__entry-link {
  color: #7dd3fc !important;
  -webkit-text-fill-color: #7dd3fc !important;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(125, 211, 252, 0.4);
}

body:not([class*='profession-page']) .jp-hero__entry-link:hover {
  color: #fb923c !important;
  -webkit-text-fill-color: #fb923c !important;
}

body:not([class*='profession-page']) .jp-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0;
}

body:not([class*='profession-page']) .jp-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 0.8rem;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body:not([class*='profession-page']) .jp-hero__btn--primary {
  border: 0;
  background: linear-gradient(100deg, #ffb347 0%, #f59e0b 42%, #f97316 100%);
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  box-shadow: 0 0.85rem 1.8rem rgba(249, 115, 22, 0.32);
}

body:not([class*='profession-page']) .jp-hero__btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}

body:not([class*='profession-page']) .jp-hero__btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 18, 34, 0.45);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  backdrop-filter: blur(8px);
}

body:not([class*='profession-page']) .jp-hero__btn--ghost:hover {
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(15, 30, 52, 0.62);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body:not([class*='profession-page']) .jp-hero__pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  color: #e2e8f0 !important;
  -webkit-text-fill-color: #e2e8f0 !important;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(226, 232, 240, 0.45);
}

body:not([class*='profession-page']) .jp-hero__pdf-link i {
  color: #ec1c24;
  -webkit-text-fill-color: #ec1c24;
  font-size: 1.25rem;
}

body:not([class*='profession-page']) .jp-hero__offer {
  position: relative;
  justify-content: stretch;
  min-width: 0;
  height: 100%;
  gap: 0.85rem;
}

body:not([class*='profession-page']) .jp-hero__exam {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 1.5rem 1.5rem 1.4rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.36);
  border-radius: 1.15rem;
  background: linear-gradient(160deg, rgba(9, 18, 34, 0.97), rgba(5, 11, 21, 0.98));
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

body:not([class*='profession-page']) .jp-hero__exam-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #7dd3fc !important;
  -webkit-text-fill-color: #7dd3fc !important;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body:not([class*='profession-page']) .jp-hero__exam-title {
  margin: 0;
  background: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-family: "Manrope", system-ui, sans-serif !important;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem) !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.04em !important;
}

body:not([class*='profession-page']) .jp-hero__exam-title .jp-hero__exam-accent {
  color: #7dd3fc !important;
  -webkit-text-fill-color: #7dd3fc !important;
}

body:not([class*='profession-page']) .jp-hero__exam-lead {
  margin: 0.7rem 0 1rem;
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
  font-size: 0.88rem;
  line-height: 1.55;
}

body:not([class*='profession-page']) .jp-hero__exam-list {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

body:not([class*='profession-page']) .jp-hero__exam-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #e2e8f0 !important;
  -webkit-text-fill-color: #e2e8f0 !important;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
}

body:not([class*='profession-page']) .jp-hero__exam-list i {
  color: #38bdf8;
  font-size: 0.95rem;
}

body:not([class*='profession-page']) .jp-hero__exam-steps {
  margin: 1rem 0 1.15rem;
  padding: 0.95rem 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

body:not([class*='profession-page']) .jp-hero__exam-steps-title {
  margin: 0 0 0.85rem;
  color: #7dd3fc !important;
  -webkit-text-fill-color: #7dd3fc !important;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body:not([class*='profession-page']) .jp-hero__exam-steps-list {
  display: grid;
  gap: 0.95rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: jp-step;
}

body:not([class*='profession-page']) .jp-hero__exam-steps-list li {
  display: grid;
  grid-template-columns: 1.65rem minmax(0, 1fr);
  column-gap: 0.75rem;
  row-gap: 0.2rem;
  align-items: start;
  counter-increment: jp-step;
}

body:not([class*='profession-page']) .jp-hero__exam-steps-list li::before {
  content: counter(jp-step);
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
}

body:not([class*='profession-page']) .jp-hero__exam-steps-list li strong {
  grid-column: 2;
  display: block;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
}

body:not([class*='profession-page']) .jp-hero__exam-steps-list li span {
  grid-column: 2;
  display: block;
  max-width: 100%;
  margin: 0;
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

body:not([class*='profession-page']) .jp-hero__exam-cta {
  width: 100%;
  margin-top: 0.35rem;
}

body:not([class*='profession-page']) .jp-hero__exam-note {
  margin: 0.7rem 0 0;
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
  font-size: 0.72rem;
  text-align: center;
}

body:not([class*='profession-page']) .jp-hero__license {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 0.75rem;
  background: rgba(8, 20, 38, 0.72);
  color: #dbeafe !important;
  -webkit-text-fill-color: #dbeafe !important;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
  backdrop-filter: blur(10px);
}

body:not([class*='profession-page']) .jp-hero__license i {
  color: #38bdf8;
  font-size: 1rem;
}

body:not([class*='profession-page']) .jp-hero__exam-title > .jp-hero__desktop-only,
body:not([class*='profession-page']) .jp-hero__exam-title > .jp-hero__mobile-only {
  display: contents;
}

body:not([class*='profession-page']) .jp-hero__mobile-only {
  display: none !important;
}

@media (max-width: 991.98px) {
  body:not([class*='profession-page']) .hero-section.jp-hero {
    min-height: 0;
    padding: 1rem 0 1.5rem !important;
  }
  body:not([class*='profession-page']) .jp-hero__offer {
    margin-top: 0.35rem;
  }
  body:not([class*='profession-page']) .jp-hero__exam {
    min-height: 0;
  }
  body:not([class*='profession-page']) .jp-hero__desktop-only {
    display: none !important;
  }
  body:not([class*='profession-page']) .jp-hero__mobile-only {
    display: revert !important;
  }
  body:not([class*='profession-page']) .jp-hero__exam-title > .jp-hero__mobile-only {
    display: contents !important;
  }
}

@media (max-width: 575.98px) {
  body:not([class*='profession-page']) .jp-hero__title,
  body:not([class*='profession-page']) .java-hero-v2__title.jp-hero__title {
    font-size: clamp(1.55rem, 7.8vw, 2.05rem) !important;
  }
  body:not([class*='profession-page']) .jp-hero__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }
  body:not([class*='profession-page']) .jp-hero__cta {
    display: grid;
  }
  body:not([class*='profession-page']) .jp-hero__btn {
    width: 100%;
  }
}
