/* Ensure cards are equal height */
.career-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Footer stays at bottom */
.career-card .card-footer {
  margin-top: auto;
}

/* Align Edit/Delete buttons cleanly */
.career-card .btn {
  min-width: 80px;
}

/* ---------- CAREERS GRID (4 per row) ---------- */

.career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

/* Force 4 per row on large screens */
@media (min-width: 1200px) {
  .career-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- CARD BOX STYLE ---------- */

.career-card-link {
  text-decoration: none;
  color: inherit;
}

.career-card-box {
  border: 1px solid #19875440;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.career-card-box:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

/* ---------- FIXED IMAGE SIZE ---------- */

.career-card-img-fixed {
  width: 100%;
  height: 180px;          /* <— lock height so ALL images match */
  object-fit: cover;
  background: #f5f5f5;
}

/* ---------- BODY ---------- */

.career-card-box-body {
  padding: 1rem 1.25rem 1.25rem;
}

.career-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #004c2d;
  margin-bottom: 0.35rem;
}

.career-card-meta {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.4rem;
}

.career-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-top: 0.25rem;
}

/* Career apply page
   ----------------- */
.career-apply-wrapper {
  max-width: 960px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

/* Make "About this role" card visually match the form card */
.career-apply-wrapper .career-about-card {
    border-radius: 1rem;
}

/* Use the same primary/theme color as buttons.
   In theme.css you can change --bs-primary and all of this will follow. */
.career-about-title,
.career-about-link {
    color: var(--bs-primary);
}

.career-about-link {
    font-weight: 500;
    text-decoration: none;
}

.career-about-link:hover,
.career-about-link:focus {
    text-decoration: underline;
}

/* Career apply layout tweaks */
.career-apply-wrapper {
  max-width: 960px;
  margin-inline: auto;
}

/* Card under heading with about text + button */
.career-about-card {
  border-radius: var(--esl-radius-lg, 1rem);
}

/* Make the link inside the about card inherit button/brand colour theme-wise */
.career-about-card .btn-outline-primary {
  font-weight: 500;
}

/* ---------------------------------------------------------
   Careers hero (top section of careers.html)
   --------------------------------------------------------- */

.careers-hero .prose {
  color: var(--text-muted);
}

/* Slight tighter spacing on smaller screens */
@media (max-width: 576px) {
  .careers-hero {
    row-gap: 2rem;
  }
}
