/* Állásajánlat részletes — allashirdetes-sablon (Medicare) */
.job-detail-page {
  --jd-brand: #4a8ea6;
  --jd-brand-dark: #3a7a94;
  --jd-brand-light: #6bb3cc;
  --jd-brand-pale: #e8f4f8;
  --jd-brand-ice: #f2f8fa;
  --jd-navy: #1e3a50;
  --jd-navy-deep: #142536;
  --jd-bg-warm: #f5f7fa;
  --jd-white: #fff;
  --jd-text: #2c3e50;
  --jd-text-mid: #5a6b7d;
  --jd-text-soft: #8a99a8;
  --jd-border: #dbe2ea;
  --jd-border-soft: #e8ecf0;
  --jd-accent: #e8b14c;
  --jd-accent-pale: #fbf3df;
  --jd-green: #1a8378;
  --jd-green-pale: #e3f5f3;
  --jd-shadow-sm: 0 2px 8px rgba(30, 58, 80, 0.06);
  --jd-shadow-md: 0 6px 24px rgba(30, 58, 80, 0.1);
  --jd-r: 10px;
  --jd-r-lg: 16px;
  --jd-r-xl: 22px;
  --jd-max: 1680px;
  --jd-pad-x: clamp(14px, 4vw, 48px);
  margin: 0;
  background: var(--jd-bg-warm);
  color: var(--jd-text);
  font-family: Poppins, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.job-detail-page a {
  color: inherit;
  text-decoration: none;
}

/* CTA: a fenti `a { color: inherit }` specifikusabb lenne a puszta osztálynál — explicit szín */
.job-detail-page a.btn-jd-apply {
  color: var(--jd-navy-deep);
}

.job-detail-page a.btn-jd-apply-full {
  color: var(--jd-navy);
}

.job-detail-page a.btn-jd-email {
  color: rgba(255, 255, 255, 0.88);
}

.job-detail-page a.btn-jd-email:hover {
  color: #fff;
}

.jd-wrap {
  width: 100%;
  max-width: min(var(--layout-max, var(--jd-max, 1680px)), calc(100vw - 2 * var(--layout-pad-x, var(--jd-pad-x, clamp(14px, 4vw, 48px)))));
  margin: 0 auto;
  padding-left: var(--layout-pad-x, var(--jd-pad-x, clamp(14px, 4vw, 48px)));
  padding-right: var(--layout-pad-x, var(--jd-pad-x, clamp(14px, 4vw, 48px)));
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}

.jd-hero {
  position: relative;
  min-height: 0;
  padding: 52px 0 48px;
  background-color: #19324a;
  background-image: linear-gradient(
    135deg,
    rgba(25, 50, 74, 0.95) 0%,
    rgba(32, 79, 117, 0.92) 60%,
    rgba(36, 140, 153, 0.85) 100%
  );
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.jd-crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.jd-crumb a:hover {
  color: #fff;
}

.jd-crumb__sep {
  opacity: 0.35;
}

.jd-hero__cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 12px;
}

.jd-hero__cat__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5fd17a;
  flex-shrink: 0;
}

/* Egy sor: szakma + város | gomb jobbra */
.jd-hero__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: nowrap;
}

.jd-hero__title {
  display: block;
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.jd-hero__title-main {
  font-style: normal;
  font-weight: 700;
  color: #fff;
}

.jd-hero__title-city {
  font-style: italic;
  font-weight: 600;
  color: var(--jd-brand-light);
  margin-left: 0.35em;
  white-space: normal;
  overflow-wrap: anywhere;
}

.jd-hero__apply {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-left: auto;
}

.jd-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.jd-tag--accent {
  background: rgba(232, 177, 76, 0.18);
  border-color: rgba(232, 177, 76, 0.35);
  color: #ffd780;
}

.jd-tag--green {
  background: rgba(95, 209, 122, 0.14);
  border-color: rgba(95, 209, 122, 0.28);
  color: #7de89a;
}

.btn-jd-apply {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  min-height: 50px;
  padding: 14px 28px 14px 32px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f9fb 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 10px 28px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(20, 37, 54, 0.08);
  transition:
    transform 0.2s cubic-bezier(0.34, 1.45, 0.64, 1),
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.btn-jd-apply::after {
  content: "\2192";
  font-size: 1.05em;
  font-weight: 600;
  line-height: 1;
  opacity: 0.88;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-jd-apply:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 14px 36px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(74, 142, 166, 0.22),
    0 0 24px rgba(107, 179, 204, 0.28);
}

.btn-jd-apply:hover::after {
  transform: translateX(4px);
  opacity: 1;
}

.btn-jd-apply:active {
  transform: translateY(0);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 6px 16px rgba(0, 0, 0, 0.18);
}

.btn-jd-apply:focus-visible {
  outline: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 10px 28px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(107, 179, 204, 0.85),
    0 0 0 6px rgba(25, 50, 74, 0.45);
}

@media (max-width: 720px) {
  .jd-hero {
    padding: 36px 0 32px;
  }

  .jd-hero__row {
    flex-wrap: wrap;
  }

  .jd-hero__title {
    font-size: clamp(26px, 7vw, 36px);
    flex: 1 1 100%;
  }

  .jd-hero__apply {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-jd-apply,
  .btn-jd-apply::after,
  .btn-jd-apply-full {
    transition: none;
  }

  .btn-jd-apply:hover,
  .btn-jd-apply-full:hover {
    transform: none;
  }

  .btn-jd-apply:hover::after {
    transform: none;
  }
}

.jd-body {
  padding: 30px 0 48px;
}

/* Sticky oldalsáv + magas űrlap: a globális disclaimer negatív marginje beléjük csúszna */
.job-detail-page .content-disclaimer.tpl-section {
  margin-top: 0;
  padding-top: clamp(1rem, 2vw, 1.5rem);
}

.jd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 40px;
  align-items: start;
}

@media (max-width: 1024px) {
  .jd-grid {
    grid-template-columns: 1fr;
  }
  .jd-sidebar .jd-apply-card,
  .jd-sidebar .jd-contact-card {
    display: none;
  }
}

.jd-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.jd-block {
  background: var(--jd-white);
  border: 1px solid var(--jd-border);
  border-radius: var(--jd-r-xl);
  padding: 34px 36px;
  box-shadow: var(--jd-shadow-sm);
}

@media (max-width: 560px) {
  .jd-block {
    padding: 24px 20px;
  }
}

.jd-block__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.jd-block__title__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--jd-brand-pale), var(--jd-brand-ice));
  color: var(--jd-brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.jd-block__title h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--jd-navy);
  margin: 0;
}

.jd-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--jd-text-mid);
}

.jd-lead p {
  margin: 0 0 0.9em;
}

.jd-lead p:last-child {
  margin-bottom: 0;
}

.jd-lead strong {
  color: var(--jd-navy);
  font-weight: 700;
}

.jd-howto {
  font-size: 15px;
  line-height: 1.75;
  color: var(--jd-text-mid);
}

.jd-howto p {
  margin: 0 0 0.85em;
}

.jd-howto p:last-child {
  margin-bottom: 0;
}

.jd-howto a {
  color: var(--jd-brand-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jd-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--jd-text-mid);
}

.jd-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--jd-brand-pale);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='8' viewBox='0 0 11 8' fill='none'%3E%3Cpath d='M1 4l3 3L10 1' stroke='%233A7A94' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.jd-list--must li::before {
  background-color: var(--jd-navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='8' viewBox='0 0 11 8' fill='none'%3E%3Cpath d='M1 4l3 3L10 1' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.jd-list--plus li::before {
  background-color: var(--jd-accent-pale);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='8' viewBox='0 0 11 8' fill='none'%3E%3Cpath d='M1 4l3 3L10 1' stroke='%23a06c12' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.jd-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 4px;
}

@media (max-width: 680px) {
  .jd-benefit-grid {
    grid-template-columns: 1fr;
  }
}

.jd-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--jd-bg-warm);
  border: 1px solid var(--jd-border-soft);
  border-radius: var(--jd-r-lg);
}

.jd-benefit-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--jd-navy);
  margin-bottom: 3px;
}

.jd-benefit-item span {
  font-size: 12px;
  color: var(--jd-text-soft);
  line-height: 1.5;
}

.jd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

@media (min-width: 1025px) {
  .jd-sidebar {
    position: sticky;
    top: 24px;
  }
}

.jd-info-card {
  background: var(--jd-white);
  border: 1px solid var(--jd-border);
  border-radius: var(--jd-r-xl);
  overflow: hidden;
  box-shadow: var(--jd-shadow-sm);
}

.jd-info-card__hd {
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--jd-navy-deep), var(--jd-navy));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.jd-info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--jd-border-soft);
}

.jd-info-row:last-child {
  border-bottom: none;
}

.jd-info-row__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--jd-text-soft);
  margin-bottom: 3px;
}

.jd-info-row__val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--jd-navy);
  line-height: 1.4;
}

.jd-info-row__val span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--jd-text-mid);
  margin-top: 2px;
}

.jd-apply-card {
  background: linear-gradient(135deg, var(--jd-navy-deep) 0%, #1e4060 60%, #1c6b78 100%);
  border-radius: var(--jd-r-xl);
  padding: 28px 24px;
  color: #fff;
  box-shadow: var(--jd-shadow-md);
}

.jd-apply-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.jd-apply-card p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 20px;
}

.btn-jd-apply-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f9fb 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-jd-apply-full:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 24px rgba(0, 0, 0, 0.16);
}

.btn-jd-apply-full:active {
  transform: translateY(0);
}

.btn-jd-apply-full:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(107, 179, 204, 0.85),
    0 6px 18px rgba(0, 0, 0, 0.12);
}

.btn-jd-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.jd-contact-card {
  background: var(--jd-white);
  border: 1px solid var(--jd-border);
  border-radius: var(--jd-r-xl);
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: var(--jd-shadow-sm);
}

.jd-contact-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--jd-brand) 0%, var(--jd-navy) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.jd-apply-section {
  padding: 40px 0 56px;
  border-top: 1px solid var(--jd-border-soft);
}

.jd-apply-form-wrap {
  background: var(--jd-white);
  border: 1px solid var(--jd-border);
  border-radius: var(--jd-r-xl);
  padding: 40px 44px;
  box-shadow: var(--jd-shadow-sm);
}

@media (max-width: 600px) {
  .jd-apply-form-wrap {
    padding: 28px 20px;
  }
}

.jd-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 720px) {
  .jd-form__row {
    grid-template-columns: 1fr;
  }
}

.jd-form__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}

.jd-form__label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--jd-navy);
}

.jd-form__input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--jd-border);
  border-radius: var(--jd-r);
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.jd-form__input:focus {
  outline: none;
  border-color: var(--jd-brand);
  box-shadow: 0 0 0 3px rgba(74, 142, 166, 0.14);
}

/* Select2 illeszkedés */
.job-detail-page .select2-container {
  font-family: Poppins, sans-serif;
}

.job-detail-page .select2-container--default .select2-selection--single {
  min-height: 48px;
  border: 1.5px solid var(--jd-border);
  border-radius: var(--jd-r-lg);
  padding: 6px 10px;
}

.job-detail-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 34px;
  color: var(--jd-text);
}

.job-detail-page .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--jd-brand);
}

/* Admin gyorsszerkesztés: ez az oldal nem tölti a jobs-public.css-t, a dock stílus nélkül esik szét */
.job-detail-page .front-admin-dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 9997;
  width: min(940px, calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 40, 64, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(15, 40, 64, 0.16);
  backdrop-filter: blur(6px);
  box-sizing: border-box;
}

.job-detail-page .front-admin-dock__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #1f3246;
}

.job-detail-page .front-admin-dock__text strong {
  font: 700 14px/1.2 Poppins, system-ui, sans-serif;
}

.job-detail-page .front-admin-dock__text span {
  font: 500 12px/1.35 Montserrat, system-ui, sans-serif;
  opacity: 0.85;
}

.job-detail-page .front-admin-dock__actions {
  display: flex;
  flex-flow: row nowrap;
  flex-shrink: 0;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.job-detail-page .front-admin-dock__actions .front-admin-dock__btn {
  flex: 0 0 auto;
}

.job-detail-page .front-admin-dock__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(25, 130, 144, 0.25);
  background: linear-gradient(180deg, #2797a5, #1f8794);
  color: #fff;
  font: 700 12px/1 Montserrat, system-ui, sans-serif;
  padding: 10px 12px;
  box-shadow: 0 4px 14px rgba(31, 135, 148, 0.35);
  cursor: pointer;
}

.job-detail-page .front-admin-dock__btn:hover {
  filter: brightness(1.05);
}

.job-detail-page .front-admin-dock__btn--muted {
  background: #f1f5f9;
  color: #1e3a50;
  border-color: rgba(15, 40, 64, 0.12);
  box-shadow: none;
}

@media (max-width: 720px) {
  .job-detail-page .front-admin-dock {
    flex-direction: column;
    align-items: stretch;
    bottom: 10px;
  }

  .job-detail-page .front-admin-dock__actions {
    flex-flow: row nowrap;
    justify-content: stretch;
    width: 100%;
  }

  .job-detail-page .front-admin-dock__actions .front-admin-dock__btn {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
  }
}

/* .content-disclaimer — front-import-global.css-ben van (globális) */