/* Career Section */
.career-hero {
  background: linear-gradient(rgba(11, 36, 63, 0.8), rgba(11, 36, 63, 0.8)), url('/assets/sarathi_app/images/assets/CareerImg.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 5rem 2rem;
  margin-bottom: 3rem;
}

.career-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.career-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.career-hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.career-container {
  padding: 2rem 0;
}

.career-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.career-intro h2 {
  color: var(--blue-dark);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.career-intro p {
  max-width: 800px;
  margin: 0 auto;
  color: var(--gray-medium);
  font-size: 1.1rem;
}

/* Job Listings Grid */
.job-listings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-inline: 3rem;
}

/* Job Card */
.job-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Job Header */
.job-header {
  background: var(--blue-dark);
  color: white;
  padding: 1rem;
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.job-title {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  line-height: 1.3;
  min-height: 2.6em;
}

.job-department {
  font-size: 1rem;
  opacity: 0.8;
}

/* Job Details */
.job-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.job-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.5rem;
  min-height: 56px;
  align-content: start;
}

.job-info-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-medium);
  font-size: 0.95rem;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-info-item i {
  margin-right: 0;
}

.job-description {
  margin-bottom: 1.5rem;
  color: var(--gray-medium);
}

.job-requirements h4 {
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.job-requirements {
  flex: 1;
}

.requirements-list {
  padding-left: 1.2rem;
  color: var(--gray-medium);
}

.requirements-list li {
  margin-bottom: 0.3rem;
}

/* Apply Button */
.apply-btn {
  margin-top: auto;
  display: block;
  width: 100%;
  padding: 0.9rem;
  background: var(--red-primary);
  color: white;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.apply-btn:hover {
  background: #ca3d1d;
}

.benefits-section {
  background: var(--blue-dark);
  color: white;
  padding: 4rem 2rem;
  border-radius: 10px;
  margin-bottom: 3rem;
}

.benefits-header {
  text-align: center;
  margin-bottom: 2rem;
}

.benefits-header h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--red-primary);
}

.benefit-item h3 {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .job-listings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: 1rem;
  }

  .job-info {
    grid-template-columns: 1fr;
  }

  .career-intro p {
    margin-inline: 1rem;
  }
}

@media (max-width: 480px) {
  .job-listings {
    grid-template-columns: 1fr;
    margin-inline: 1rem;
  }

  .career-intro p {
    margin-inline: 1rem;
  }
}