/* ============================================================
   Careers pages — namespaced under .careers-page to avoid any
   clash with existing home.css rules (.card, .container, etc.)
   Palette matches the site: #2e7d32 / #4caf50 greens, #07a9a1 teal,
   #f0f9f4 soft background.
   ============================================================ */

.careers-hero {
  background-image: linear-gradient(rgba(20, 40, 25, 0.55), rgba(20, 40, 25, 0.55)),
    url("https://images.unsplash.com/photo-1500937386664-56d1dfef3854?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.careers-hero.small {
  height: 240px;
  color: #ffffff;
}

.careers-hero h1 {
  color: #ffffff;
}

.careers-hero p {
  max-width: 700px;
  margin: 10px auto 0;
  color: #ffffff;
}
/* ---------- Perks / "What You'll Get" ---------- */

.careers-perks {
  background: #f0f9f4;
  padding: 60px 0;
}

.perks-grid {
  width: 100%;
  max-width: 1000px;
  margin: 35px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}

.perk-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.perk-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(76, 175, 80, 0.25);
}

.perk-item .perk-icon {
  width: 56px;
  height: 56px;
  line-height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: #ffffff;
  font-size: 22px;
  margin: 0 auto 16px;
  display: block;
}

.perk-item p {
  font-size: 15px;
  margin: 0;
  color: #333;
}

/* ---------- Open positions ---------- */

.careers-positions {
  padding: 70px 0;
  background: #ffffff;
}

.jobs-grid {
  width: 100%;
  max-width: 1150px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.job-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-align: left;
  height: 100%;
}

.job-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.job-card-banner {
  position: relative;
  height: 150px;
  background-size: cover;
  background-position: center;
}

.job-card-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 40, 25, 0.15), rgba(20, 40, 25, 0.75));
}

.job-card-banner .job-icon {
  position: absolute;
  bottom: 12px;
  left: 16px;
  width: 46px;
  height: 46px;
  line-height: 46px;
  text-align: center;
  border-radius: 50%;
  background: #ffffff;
  color: #2e7d32;
  font-size: 19px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.job-card-banner .job-positions-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #4caf50;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  z-index: 2;
}

.job-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.job-card-body h3 {
  color: #2e7d32;
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 10px;
  line-height: 1.3;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 0;
  list-style: none;
}

.job-meta span {
  background: #f0f9f4;
  color: #2e7d32;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.job-meta span i {
  color: #07a9a1;
}

.job-desc {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.5;
}

.job-card-body .btn-secondary.button {
  margin: 0;
  align-self: flex-start;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
}

.no-jobs {
  text-align: center;
  padding: 40px 0;
  font-size: 16px;
  color: #666;
}

.careers-closed {
  background: #f9f9f9;
  padding: 40px 0;
}

.closed-jobs-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 20px auto 0;
  color: #888;
  font-size: 14px;
}

.closed-jobs-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

/* ---------- Job detail page ---------- */

.job-detail-section {
  padding: 60px 0;
}

.job-detail-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  text-align: left;
  width: 90%;
  margin: 0 auto;
}

.job-info {
  width: 55%;
}

.job-info h2 {
  font-size: 23px;
  text-align: left;
  color: #2e7d32;
  margin-top: 28px;
}

.job-info h2:first-child {
  margin-top: 0;
}

.job-list {
  list-style: none;
  padding: 0;
}

.job-list li {
  padding: 7px 0;
  font-size: 15px;
  color: #444;
}

.job-list li i {
  color: #07a9a1;
  margin-right: 8px;
}

.job-facts {
  margin-top: 24px;
  background: #f0f9f4;
  border-radius: 14px;
  padding: 18px 22px;
}

.job-facts p {
  margin: 5px 0;
  font-size: 14px;
}

.job-apply {
  width: 40%;
  background: #ffffff;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #4caf50;
}

.job-apply h2 {
  font-size: 21px;
  text-align: left;
  color: #2e7d32;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  font-family: inherit;
  background: #fafafa;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4caf50;
  background: #ffffff;
}

.field-help {
  display: block;
  color: #888;
  font-size: 12px;
  margin-top: 4px;
}

.field-error {
  display: block;
  color: #c62828;
  font-size: 12px;
  margin-top: 4px;
}

.application-form .btn-primary.button {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 12px;
  padding: 13px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
}

.success-container {
  text-align: center;
  padding: 50px 0;
}

.success-container p {
  margin-bottom: 22px;
  font-size: 16px;
}

@media (max-width: 824px) {
  .job-detail-container {
    flex-direction: column;
    width: 90%;
  }

  .job-info,
  .job-apply {
    width: 100%;
  }

  .jobs-grid {
    width: 90%;
  }
}

@media (max-width: 425px) {
  .jobs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}