/* PAGE HERO - CURRENT OPENINGS */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(
    135deg,
    rgba(207, 1, 6, 0.05) 0%,
    rgba(248, 249, 250, 1) 100%
  );
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><path fill="%23cf0106" fill-opacity="0.03" d="M200,0 C310.46,0 400,89.54 400,200 C400,310.46 310.46,400 200,400 C89.54,400 0,310.46 0,200 C0,89.54 89.54,0 200,0 Z M200,50 C118.43,50 50,118.43 50,200 C50,281.57 118.43,350 200,350 C281.57,350 350,281.57 350,200 C350,118.43 281.57,50 200,50 Z"></path></svg>')
    center/contain no-repeat;
  opacity: 0.5;
}

.page-hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.page-hero p {
  font-size: 20px;
  color: var(--medium-gray);
  max-width: 800px;
  margin: 0 auto 30px;
  position: relative;
  z-index: 2;
}

/* JOB OPENINGS SECTION */
.openings-section {
  padding: 80px 0;
  background-color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.section-title p {
  color: var(--medium-gray);
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
}

.jobs-container {
  max-width: 900px;
  margin: 0 auto;
}

.job-card {
  background-color: white;
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--primary-blue);
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-left-color: var(--primary-red);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 20px;
}

.job-header h3 {
  font-size: 24px;
  margin-bottom: 5px;
}

.job-location {
  color: var(--primary-red);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-type {
  display: inline-block;
  background-color: rgba(16, 64, 102, 0.1);
  color: var(--primary-blue);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.job-summary {
  color: var(--medium-gray);
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.7;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--light-gray);
}

.job-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.job-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--medium-gray);
  font-size: 15px;
}

.job-detail i {
  color: var(--primary-red);
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.job-responsibilities {
  margin-bottom: 30px;
}

.job-responsibilities h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--dark-blue);
}

.responsibilities-list {
  list-style: none;
  padding-left: 20px;
}

.responsibilities-list li {
  margin-bottom: 10px;
  padding-left: 10px;
  position: relative;
  color: var(--medium-gray);
}

.responsibilities-list li:before {
  content: "•";
  position: absolute;
  left: -10px;
  color: var(--primary-red);
  font-weight: bold;
}

.job-requirements {
  margin-bottom: 30px;
}

.job-requirements h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--dark-blue);
}

.requirements-list {
  list-style: none;
  padding-left: 20px;
}

.requirements-list li {
  margin-bottom: 10px;
  padding-left: 10px;
  position: relative;
  color: var(--medium-gray);
}

.requirements-list li:before {
  content: "✓";
  position: absolute;
  left: -10px;
  color: var(--primary-red);
  font-weight: bold;
}

.job-cta {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid var(--light-gray);
}

/* APPLICATION FORM MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.application-modal {
  background-color: white;
  border-radius: 8px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--dark-blue) 100%
  );
  color: white;
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: white;
  margin-bottom: 0;
  font-size: 22px;
}

.close-modal {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  transform: rotate(90deg);
}

.modal-content {
  padding: 30px;
}

.application-form {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-size: 16px;
  font-family: "Open Sans", sans-serif;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(16, 64, 102, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.file-upload {
  border: 2px dashed var(--light-gray);
  padding: 30px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.file-upload:hover {
  border-color: var(--primary-blue);
  background-color: rgba(16, 64, 102, 0.05);
}

.file-upload i {
  font-size: 36px;
  color: var(--medium-gray);
  margin-bottom: 10px;
}

.file-upload p {
  color: var(--medium-gray);
  margin-bottom: 5px;
}

.file-upload small {
  color: var(--medium-gray);
  font-size: 12px;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

/* WHY JOIN US SECTION */
.why-join-section {
  padding: 80px 0;
  background-color: var(--off-white);
}

.why-join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.benefit-card {
  background-color: white;
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  border-top: 5px solid var(--primary-red);
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.benefit-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(207, 1, 6, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--primary-red);
  font-size: 30px;
}

.benefit-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.benefit-card p {
  color: var(--medium-gray);
}

/* CTA SECTION */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--dark-blue) 100%
  );
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
  font-size: 36px;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

@media (max-width: 1024px) {
  .job-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-join-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 140px 0 60px;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  .page-hero p {
    font-size: 18px;
  }

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

  .job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .why-join-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-hero h1 {
    font-size: 32px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .job-card {
    padding: 25px;
  }

  .cta-section h2 {
    font-size: 30px;
  }

  .modal-content {
    padding: 20px;
  }
}
