/* ==========================================================
   Jobs Core Landing Page — [jobs_core_landing]
   File terpisah, di-enqueue hanya saat shortcode aktif.
   ========================================================== */

/* Sembunyikan page title bawaan tema saat landing page aktif */
body.jcl-landing .entry-title,
body.jcl-landing .page-title,
body.jcl-landing h1.page-header,
body.jcl-landing .page-header,
body.jcl-landing .post-title,
body.jcl-landing header.entry-header > h1,
body.jcl-landing .entry-header .entry-title {
  display: none !important;
}

.jcl-wrap {
  font-family: inherit;
  color: var(--jc-text, #0f172a);
  max-width: 100%;
  overflow-x: hidden;
}
.jcl-wrap * {
  box-sizing: border-box;
}

/* ----- HERO ----- */
.jcl-hero {
  --jc-cta: #f59e0b;
  --jc-cta-hover: #d97706;
  background: var(--jc-primary, #00566b);
  border-radius: 16px;
  padding: 40px 36px 32px;
  margin-bottom: 32px;
}
.jcl-hero-text {
  margin-bottom: 24px;
  text-align: center;
}
.jcl-hero-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.jcl-hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

/* Stats di hero landing */
.jcl-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 28px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  padding: 16px 24px;
  justify-content: center;
}
.jcl-stat {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}
.jcl-stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.jcl-stat-lbl {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.jcl-stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* ----- SECTION COMMON ----- */
.jcl-section {
  margin-bottom: 40px;
}
.jcl-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.jcl-section-head--center {
  flex-direction: column;
  text-align: center;
  justify-content: center;
}
.jcl-section-title {
  font-size: clamp(1.6rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--jc-primary, #00566b);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.jcl-section-title i {
  font-size: 1.2rem;
}
.jcl-section-desc {
  color: var(--jc-muted, #475569);
  margin: 8px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}
.jcl-see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--jc-primary, #00566b);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: gap 0.15s;
}
.jcl-see-all:hover {
  gap: 8px;
  text-decoration: underline;
}

/* ----- LOWONGAN GRID ----- */
.jcl-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 14px;
  max-width: 100%;
  overflow: visible; /* jangan hidden — shadow & hover card terpotong */
  padding: 4px;      /* ruang agar box-shadow tidak terpotong tepi */
}
.jcl-job-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff !important;
  background-color: #fff !important;
  border: 1px solid var(--jc-border, #e5e7eb) !important;
  border-radius: 12px;
  /* Padding kanan lebih besar untuk ruang badge BUKA */
  padding: 16px 70px 16px 16px !important;
  text-decoration: none !important;
  color: var(--jc-text, #0f172a) !important;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
  position: relative;
  outline: none !important;
  box-shadow: none;
  /* Pastikan card tidak overflow container */
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box !important;
}
/* Reset semua elemen teks di dalam card dari override tema */
.jcl-job-card p,
.jcl-job-card span,
.jcl-job-card strong,
.jcl-job-card em {
  background-color: transparent !important;
  text-decoration: none !important;
}
.jcl-job-card:hover,
.jcl-job-card:focus,
.jcl-job-card:active {
  border-color: var(--jc-primary, #00566b) !important;
  box-shadow: 0 4px 16px rgba(0, 86, 107, 0.12) !important;
  transform: translateY(-2px);
  background: #fff !important;
  color: inherit !important;
  text-decoration: none !important;
}
.jcl-job-card.is-expired {
  opacity: 0.55;
}
.jcl-job-logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--jc-border, #e5e7eb);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--jc-bg-soft, #f8fafc);
  color: var(--jc-muted, #475569);
  font-size: 24px;
}
.jcl-job-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.jcl-job-body {
  flex: 1;
  min-width: 0; /* kritis: cegah flex child overflow */
  overflow: hidden;
}
.jcl-job-company {
  font-size: 12px;
  font-weight: 700;
  color: var(--jc-primary, #00566b) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent !important;
}
.jcl-job-posisi {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--jc-text, #0f172a) !important;
  margin: 0 0 9px;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  overflow: hidden; /* cegah horizontal overflow */
  max-width: 100%;
  background: transparent !important;
  background-color: transparent !important;
  -webkit-text-fill-color: var(--jc-text, #0f172a) !important;
}
.jcl-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
}
.jcl-job-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--jc-muted, #475569) !important;
  background: transparent !important;
}
.jcl-job-meta-item i {
  font-size: 12px;
  color: var(--jc-primary, #00566b) !important;
}
.jcl-job-meta-item.is-expired {
  color: #ef4444 !important;
}
.jcl-job-meta-item.is-expired i {
  color: #ef4444 !important;
}
.jcl-job-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--jc-accent, #e0f4f8);
  color: var(--jc-primary, #00566b);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.jcl-job-badge.is-expired {
  background: #fee2e2;
  color: #ef4444;
}
.jcl-jobs-footer {
  margin-top: 24px;
  text-align: center;
}
.jcl-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  border: 2px solid var(--jc-primary, #00566b);
  color: var(--jc-primary, #00566b) !important;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none !important;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap; /* cegah teks wrap */
}
.jcl-all-btn:hover {
  background: var(--jc-primary, #00566b);
  color: #fff !important;
}
.jcl-empty {
  text-align: center;
  color: var(--jc-muted, #475569);
  padding: 32px;
  background: var(--jc-bg-soft, #f8fafc);
  border-radius: 12px;
}

/* ----- CARA MENDAFTAR ----- */
.jcl-steps-section {
  background: var(--jc-bg-soft, #f8fafc);
  border-radius: 16px;
  padding: 40px 32px;
}
.jcl-steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 32px;
}
.jcl-step {
  flex: 1;
  text-align: center;
  padding: 24px 20px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--jc-border, #e5e7eb);
}
.jcl-step-icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--jc-accent, #e0f4f8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--jc-primary, #00566b);
}
.jcl-step-num {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  background: var(--jc-primary, #00566b);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.jcl-step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--jc-text, #0f172a);
  margin: 0 0 8px;
}
.jcl-step-desc {
  font-size: 14px;
  color: var(--jc-muted, #475569);
  line-height: 1.6;
  margin: 0;
}
.jcl-step-arrow {
  flex-shrink: 0;
  color: var(--jc-primary, #00566b);
  opacity: 0.4;
  font-size: 18px;
  padding-top: 48px;
  align-self: flex-start;
}

/* ----- CTA SECTION ----- */
.jcl-cta-section {
  background: var(--jc-primary, #00566b);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 8px;
}
.jcl-cta-icon {
  font-size: 2rem;
  color: #f59e0b;
  margin-bottom: 12px;
  display: block;
}
.jcl-cta-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
}
.jcl-cta-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 28px;
}
.jcl-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 32px;
  background: #f59e0b;
  color: #fff !important;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none !important;
  transition:
    background 0.15s,
    transform 0.15s;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.jcl-cta-btn:hover {
  background: #d97706;
  transform: translateY(-2px);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 720px) {
  .jcl-hero {
    padding: 28px 18px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
  }
  .jcl-hero-title {
    font-size: 2.1rem;
  }
  .jcl-stats {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .jcl-stat {
    padding: 0;
  }
  .jcl-stat-sep {
    width: 48px;
    height: 1px;
  }

  .jcl-jobs-grid {
    grid-template-columns: 1fr !important;
    overflow: visible;
  }
  .jcl-job-card {
    padding: 14px 64px 14px 14px !important;
  }
  .jcl-job-logo {
    width: 48px !important;
    height: 48px !important;
  }
  .jcl-all-btn {
    white-space: nowrap;
    font-size: 14px;
    padding: 11px 20px;
  }

  .jcl-steps-section {
    padding: 28px 16px;
  }
  .jcl-steps-grid {
    flex-direction: column;
    gap: 12px;
  }
  .jcl-step-arrow {
    display: none;
  }

  .jcl-cta-section {
    padding: 32px 18px;
    border-radius: 12px;
  }
  .jcl-cta-btn {
    width: 100%;
    justify-content: center;
  }
}
