/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

/* ================= HERO SECTION ================= */
.career-hero {
  min-height: 80vh;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 40px 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.btn-primary {
  background: #0088cc;
  color: #fff;
  padding: 14px 32px;
  border-radius: 40px;
  text-decoration: none;
  transition: 0.3s ease;
  font-weight: 600;
}

.btn-primary:hover {
  background: #0072ff;
  transform: translateY(-3px);
}

/* ================= WHY JOIN ================= */
.why-join {
  padding: 80px 10%;
  text-align: center;
  background: #ffffff;
}

.why-join h2 {
  margin-bottom: 40px;
  font-size: 2rem;
}

.features {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-card {
  background: #fff;
  padding: 30px;
  width: 300px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

/* ================= JOB SECTION ================= */
.job-section {
  padding: 100px 10%;
  text-align: center;
  background: #eef2f7;
}

.job-section h2 {
  margin-bottom: 40px;
  font-size: 2rem;
}

.job-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.job-card {
  background: #fff;
  padding: 30px;
  width: 300px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
}

.job-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.job-card h3 {
  margin-bottom: 10px;
  text-transform: capitalize;
}

/* ================= APPLY / LOGIN BUTTON ================= */
.apply-btn,
.login-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: #0088cc;
  color: #ffffff;
  border-radius: 30px;
  border: none;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
  cursor: pointer;
}

.apply-btn:hover,
.login-btn:hover {
  background: #203a43;
  transform: translateY(-3px);
}

/* ================= MODAL ================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-content {
  background: #fff;
  padding: 40px;
  width: 90%;
  max-width: 500px;
  border-radius: 20px;
  position: relative;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-content input,
.modal-content textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.submit-btn {
  padding: 14px;
  background: #0088cc;
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s ease;
}

.submit-btn:hover {
  background: #203a43;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

/* ================= ALERT MESSAGES ================= */
.message-container {
  position: fixed;
  top: 100px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.custom-alert {
  min-width: 280px;
  padding: 16px 20px;
  border-radius: 12px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.4s ease forwards;
}

.custom-alert.success {
  background: linear-gradient(135deg, #00b09b, #96c93d);
}

.custom-alert.error {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.custom-alert button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .career-hero {
    min-height: 60vh;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .features,
  .job-grid {
    flex-direction: column;
    align-items: center;
  }

  .feature-card,
  .job-card {
    width: 90%;
  }

  .why-join,
  .job-section {
    padding: 60px 5%;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.7rem;
  }

  .btn-primary {
    padding: 12px 24px;
  }

  .apply-btn,
  .login-btn {
    padding: 10px 22px;
    font-size: 14px;
  }
}