/* =====================
   GLOBAL
===================== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #ffffff;
}

/* =====================
   HERO SECTION
===================== */
.career-hero {
  height: 70vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  font-size: 46px;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 17px;
}

.hero-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 30px;
  background: #00b96b;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 15px;
}

/* =====================
   CAREER SECTION
===================== */
.career-section {
  padding: 70px 20px;
  background: #f8f9fa;
  text-align: center;
}

.career-section h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.subtitle {
  color: #555;
  margin-bottom: 45px;
}

/* =====================
   WHY US
===================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 55px;
}

.why-card {
  background: #ffffff;
  padding: 22px;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

/* =====================
   JOB LIST (FIXED)
===================== */
.job-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

/* =====================
   JOB CARD (NO EXTRA SPACE)
===================== */
.job-card {
  background: #ffffff;
  padding: 22px;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

.job-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #111;
}

.job-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.55;
  margin-bottom: 6px;
}

/* =====================
   APPLY BUTTON (FIXED CENTER)
===================== */
.apply-btn {
  margin-top: 16px;          /* IMPORTANT FIX */
  align-self: center;        /* center without stretching card */
  padding: 10px 24px;
  background: #00b96b;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.apply-btn:hover {
  background: #009e5c;
  transform: translateY(-1px);
}

/* =====================
   APPLY MODAL
===================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 999;
}

.modal-content {
  background: #ffffff;
  max-width: 480px;
  margin: 5% auto;
  padding: 28px;
  border-radius: 14px;
  position: relative;
}

.close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 22px;
  cursor: pointer;
  color: #666;
}

.modal-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 18px;
}

/* FORM */
.form-group {
  margin-bottom: 12px;
  text-align: left;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.form-group label span {
  color: red;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.form-group textarea {
  min-height: 90px;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #22c06c;
  box-shadow: 0 0 0 3px rgba(34,192,108,0.15);
}

#submitBtn {
  width: 100%;
  padding: 12px;
  background: #22c06c;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
}

#submitBtn:disabled {
  background: #9adbb9;
  cursor: not-allowed;
}

.success-msg {
  display: none;
  margin-top: 10px;
  text-align: center;
  color: #22c06c;
  font-size: 14px;
}

/* =====================
   FOOTER
===================== */
.main-footer {
  background: #22c06c;
  color: #ffffff;
  padding: 55px 40px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 35px;
}

.footer-bottom {
  background: #000;
  color: #ccc;
  text-align: center;
  padding: 12px;
  font-size: 14px;
}
