/* ===============================
   CAREER PAGE CUSTOM STYLES
   (Tailwind handles most styling)
================================ */

/* Banner - if needed separately */
.career-banner {
  width: 100%;
  height: 260px;
  background: url("/img/career-header.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.career-banner h1 {
  color: white;
  font-size: 42px;
  font-weight: 700;
}

/* Filter Section Layout - Grid */
.career-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: start;
}

/* Ensure filter section has proper stacking context for dropdowns */
.career-filter-section {
  position: relative;
  z-index: 40; /* Higher than the job grid below */
}

@media (max-width: 1024px) {
  .career-filter-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .career-filter-grid {
    grid-template-columns: 1fr;
  }
}

/* Dropdown Panel Adjustments */
.dropdown-panel {
  min-width: 280px;
}

/* Job Grid Layout */
.job-grid {
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .job-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .job-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* Job Card Mobile Styles */
@media (max-width: 640px) {
  .job-card {
    display: flex;
    flex-direction: column;
  }

  .job-card .job-body {
    padding: 0.75rem;
    flex: 1;
  }

  .job-card .job-title {
    font-size: 0.875rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    height: 40px;
  }

  .job-card .job-category {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
  }

  .job-card .job-category svg,
  .job-card .job-meta svg {
    width: 0.75rem;
    height: 0.75rem;
  }

  .job-card .job-meta {
    font-size: 0.7rem;
    margin-top: auto;
  }

  .job-card .job-footer {
    padding: 0.75rem;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  .job-card .btn-detail {
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .job-card .status-open {
    font-size: 0.65rem;
    justify-content: center;
    padding: 0.25rem 0;
  }

  .job-card .job-thumb {
    height: 5rem;
  }
}

/* Job Card Specific Styles */
.job-card {
  /* Tailwind handles most styles, add any custom here */
}

/* Status Badge */
.status-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

/* Empty State */
.no-job {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
  font-size: 1.125rem;
}

/* Detail Page Styles */
.career-detail {
  padding: 60px 0;
  font-family: "Inter", sans-serif;
}

.job-header .job-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.job-meta span {
  margin-right: 20px;
  font-size: 14px;
  color: #555;
}

@media (max-width: 528px) {
  .job-meta span {
    font-size: 12px;
  }
}

.section-box {
  background: #ffffff;
  padding: 30px;
  margin-top: 35px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-box h3 {
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 600;
}

.section-box ul {
  padding-left: 20px;
}

.apply-box {
  margin-top: 50px;
  padding: 30px;
  background: #f3f6fa;
  border-left: 4px solid #005bbb;
  border-radius: 10px;
}

.btn-apply {
  display: inline-block;
  margin-top: 15px;
  background: #005bbb;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.btn-apply:hover {
  background: #004899;
}
