/* Careers Page Styles - aligned with site theme */

body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Form Success/Error Messages */
.form-success {
  background: #d4edda;
  color: #155724;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #c3e6cb;
}

.form-error {
  background: #f8d7da;
  color: #721c24;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #f5c6cb;
}

.careers-hero {
  background: linear-gradient(
      135deg,
      rgba(43, 110, 188, 0.1) 0%,
      rgba(43, 110, 188, 0.05) 100%
    ),
    url("assests/hero.jpg");
  background-size: cover;
  background-position: center;
  padding: 100px 0 90px 0;
}

.careers-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  text-align: center;
}

.careers-hero-badge {
  display: inline-flex;
  align-items: center;
  background: #e6eef7;
  color: #2b6ebc;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  margin-bottom: 24px;
}

.careers-title {
  font-size: 44px;
  font-weight: 800;
  color: #222;
  margin: 0 0 12px 0;
}
.careers-subtitle {
  font-size: 18px;
  color: #555;
  margin: 0;
}

.openings-section {
  padding: 80px 0;
  background: #fff;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}
.openings-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-heading {
  margin: 0 0 8px 0;
  font-size: 32px;
  font-weight: 800;
  color: #222;
}
.section-text {
  margin: 0;
  color: #666;
  font-size: 16px;
}

.openings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.job-card {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.job-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px; /* gradient border thickness */
  background: linear-gradient(
    135deg,
    rgba(43, 110, 188, 0.35),
    rgba(43, 110, 188, 0.05)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.job-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}
.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.job-title {
  font-size: 20px;
  margin: 0;
  color: #333;
  font-weight: 800;
}
.job-type {
  background: #e6eef7;
  color: #2b6ebc;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(43, 110, 188, 0.2);
}
.job-meta {
  display: flex;
  gap: 16px;
  color: #777;
  font-size: 14px;
  margin-bottom: 12px;
}
.job-desc {
  color: #555;
  margin: 0 0 10px 0;
  line-height: 1.55;
}
.job-req {
  margin: 0 0 14px 18px;
  color: #555;
}
.job-req li {
  margin: 4px 0;
}
.job-actions {
  display: flex;
  justify-content: flex-end;
}
.apply-btn {
  background: #2b6ebc;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(43, 110, 188, 0.25);
}
.apply-btn:hover {
  background: #245a9e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(43, 110, 188, 0.25);
}

.benefits-section {
  padding: 70px 0;
  background: #f8f9fa;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.benefit-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6eef7;
  color: #2b6ebc;
  font-size: 24px;
}

/* Apply Modal */
.apply-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.apply-modal.active {
  display: flex;
}
.modal-overlay {
  position: absolute;
  inset: 0;
}
.apply-modal-content {
  position: relative;
  background: #fff;
  width: min(800px, 95vw);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow: auto;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.apply-title {
  margin: 0 0 16px 0;
  font-size: 22px;
  font-weight: 800;
  color: #222;
}
.apply-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-weight: 700;
  color: #333;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #2b6ebc;
  box-shadow: 0 0 0 3px rgba(43, 110, 188, 0.12);
}
.submit-btn {
  background: #2b6ebc;
  color: #fff;
  border: none;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}
.submit-btn:hover {
  background: #245a9e;
}

@media (max-width: 768px) {
  .container {
    padding: 0 40px;
  }
  .careers-title {
    font-size: 36px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 25px;
  }
  .careers-title {
    font-size: 30px;
  }
}
