/* ===== LOWONGAN STYLES — Target Match Design ===== */

body {
  font-family: var(--font-main, 'Plus Jakarta Sans', sans-serif);
  color: var(--text-body, #334155);
  background-color: #ffffff;
}

/* ===== HERO SECTION ===== */
.hero {
  background-color: #ffffff;
  background-image: radial-gradient(circle at 50% 30%, #ecfdf5 0%, #ffffff 80%);
  position: relative;
  padding: 60px 24px 40px;
  text-align: center;
  color: #237A47;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}

.hero-container {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* CIRCULAR ICON BADGE */
.hero-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e6f4f1;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #237A47;
  margin-bottom: 20px;
}

.hero-icon-badge svg {
  stroke: #047857;
}

/* HERO TITLE */
.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
  color: #237A47;
}

.hero-title span {
  color: inherit;
  font-weight: inherit;
}

/* DECORATIVE DIVIDER LINE WITH DIAMOND DOT */
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px auto 22px;
  width: 180px;
}

.hero-divider-line {
  height: 1.5px;
  flex: 1;
  background: linear-gradient(90deg, transparent, #059669, transparent);
}

.hero-divider-dot {
  width: 6px;
  height: 6px;
  background: #059669;
  transform: rotate(45deg);
}

/* HERO SUBTITLE */
.hero-subtitle {
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.65;
  max-width: 660px;
  margin: 0 auto 24px;
  font-weight: 500;
}

/* SEARCH & FILTER BAR */
.search-box-wrap {
  max-width: 540px;
  margin: 0 auto;
}

.search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 6px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
}

.search-box:focus-within {
  border-color: #059669;
  box-shadow: 0 6px 18px rgba(6, 78, 59, 0.08);
}

.search-icon {
  width: 18px;
  height: 18px;
  fill: #64748b;
  margin-right: 10px;
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.88rem;
  font-family: inherit;
  color: #1e293b;
  background: transparent;
  padding: 6px 0;
}

.search-box input::placeholder {
  color: #94a3b8;
}

.btn-search-clear {
  background: #e2e8f0;
  border: none;
  color: #64748b;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.btn-search-clear:hover {
  background: #cbd5e1;
  color: #1e293b;
}

/* ===== LOWONGAN SECTION ===== */
.lowongan-section {
  background-color: #f8fafc;
  padding: 32px 24px 80px;
}

.lowongan-container {
  max-width: 860px;
  margin: 0 auto;
}

.lowongan-header-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 20px;
}

.total-badge {
  font-size: 0.84rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 5px 14px;
  border-radius: 50px;
}

/* JOB LIST & CARDS */
.lowongan-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.lowongan-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 26px 30px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.lowongan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(6, 78, 59, 0.08);
  border-color: #cbd5e1;
}

.lowongan-card-body {
  display: flex;
  align-items: center;
  gap: 28px;
}

.lowongan-img-wrap {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #237A47 0%, #1B6339 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.lowongan-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lowongan-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #237A47 0%, #1B6339 100%);
  color: #ffffff;
}

.lowongan-info {
  flex: 1;
}

.lowongan-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #237A47;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.lowongan-desc {
  font-size: 0.93rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 12px;
}

.lowongan-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
}

.lowongan-location svg {
  width: 16px;
  height: 16px;
  stroke: #64748b;
  flex-shrink: 0;
}

.lowongan-action {
  flex-shrink: 0;
  align-self: center;
}

.btn-lamar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #237A47;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(35, 122, 71, 0.2);
  text-decoration: none;
}

.btn-lamar:hover {
  background: #1B6339;
  box-shadow: 0 6px 20px rgba(35, 122, 71, 0.35);
  transform: translateY(-1px);
}

.lowongan-empty {
  text-align: center;
  padding: 60px 24px;
  color: #94a3b8;
  font-size: 0.95rem;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 20px;
}

.lowongan-empty svg {
  width: 48px;
  height: 48px;
  fill: #cbd5e1;
  margin-bottom: 12px;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.page-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-btn:hover {
  border-color: #047857;
  color: #047857;
  background: #f0fdf4;
}

.page-btn.active {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  color: #ffffff;
  border-color: #047857;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
}

.page-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.nav-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}


/* ===== MODAL AKSES FORM ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
}

.modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.show .modal-box {
  transform: scale(1);
}

.modal-header {
  background: linear-gradient(135deg, #237A47 0%, #1B6339 100%);
  padding: 20px 24px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}

.modal-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-form label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-form label .required {
  color: #ef4444;
}

.modal-form input {
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  background-color: #f8fafc;
  transition: all 0.2s ease;
}

.modal-form input:focus {
  border-color: #047857;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.12);
}

.modal-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-cancel {
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  border: none;
  color: #ffffff;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.2);
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.35);
}


/* ===== CUSTOM ALERT MODAL (Replacing native alert) ===== */
.alert-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25 ease;
}

.alert-modal-overlay.show {
  opacity: 1;
}

.alert-modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 400px;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  padding: 30px 24px 24px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.alert-modal-overlay.show .alert-modal-box {
  transform: scale(1);
}

.alert-modal-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.alert-modal-icon-wrap.error {
  background: #fef2f2;
  border: 2px solid #fecaca;
}

.alert-modal-icon-wrap.error svg {
  fill: #dc2626;
  width: 32px;
  height: 32px;
}

.alert-modal-icon-wrap.success {
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
}

.alert-modal-icon-wrap.success svg {
  fill: #16a34a;
  width: 32px;
  height: 32px;
}

.alert-modal-icon-wrap.info {
  background: #eff6ff;
  border: 2px solid #bfdbfe;
}

.alert-modal-icon-wrap.info svg {
  fill: #2563eb;
  width: 32px;
  height: 32px;
}

.alert-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.alert-modal-message {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 24px;
}

.alert-modal-actions {
  display: flex;
  justify-content: center;
}

.btn-alert-ok {
  width: 100%;
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  color: #ffffff;
  border: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.25);
}

.btn-alert-ok:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(4, 120, 87, 0.35);
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    padding: 40px 18px 48px;
  }
  .hero-title {
    font-size: 1.7rem;
    letter-spacing: -0.4px;
  }
  .hero-subtitle {
    font-size: 0.88rem;
  }

  /* Keep horizontal layout but shrink image */
  .lowongan-card-body {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }

  /* Smaller compact image on mobile */
  .lowongan-img-wrap {
    width: 88px !important;
    height: 88px !important;
    border-radius: 14px !important;
    flex-shrink: 0 !important;
  }

  .lowongan-info {
    flex: 1;
    min-width: 0; /* prevent overflow */
  }

  .lowongan-title {
    font-size: 1rem !important;
    margin-bottom: 6px !important;
  }

  .lowongan-desc {
    font-size: 0.82rem !important;
    margin-bottom: 10px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .lowongan-location {
    font-size: 0.8rem !important;
    margin-bottom: 12px !important;
  }

  .lowongan-card {
    padding: 18px 16px !important;
    border-radius: 16px !important;
  }

  /* Action button moves below info, full width */
  .lowongan-card-body {
    flex-wrap: wrap;
  }

  .lowongan-action {
    width: 100%;
    flex-basis: 100%;
    margin-top: 4px;
  }
  .btn-lamar {
    width: 100%;
    justify-content: center;
    padding: 12px !important;
    font-size: 0.9rem !important;
  }

  /* Modal buttons stack on mobile */
  .modal-actions {
    flex-direction: column;
  }
  .btn-cancel,
  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .lowongan-section {
    padding: 20px 14px 60px !important;
  }
  .lowongan-card {
    padding: 14px 12px !important;
  }
  .hero-title {
    font-size: 1.45rem !important;
  }
  .lowongan-img-wrap {
    width: 72px !important;
    height: 72px !important;
    border-radius: 12px !important;
  }
}