/* Careers Page - Hero & Images */

.careers-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a2b5e;
  overflow: hidden;
}

.careers-hero::before {
  content: '';
  position: absolute;
  inset: -5%;
  background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1920');
  background-size: cover;
  background-position: center;
  animation: hero-bg-kenburns 25s ease-in-out infinite alternate;
}

.careers-hero-overlay {
  display: none;
}

.careers-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 4rem 2.5rem;
  text-align: center;
}

.careers-hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-transform: uppercase;
  text-align: center;
}

.careers-hero-description {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

/* What We Look For - background image */
.careers-lookfor-wrapper {
  position: relative;
  border-top: 1px solid rgba(26, 43, 94, 0.12);
  overflow: hidden;
}

.careers-lookfor-wrapper::after {
  content: '';
  position: absolute;
  inset: -5%;
  z-index: 0;
  background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1920');
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  -webkit-filter: blur(8px);
  animation: hero-bg-kenburns 25s ease-in-out infinite alternate;
}

.careers-lookfor-wrapper .careers-lookfor {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 4rem 2.5rem;
  background: transparent;
}

@media (max-width: 768px) {
  .careers-lookfor-wrapper .careers-lookfor {
    min-height: 240px;
    padding: 3rem 1.5rem;
  }
}

.careers-lookfor-wrapper .how-we-engage-title {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.careers-lookfor-wrapper .how-we-engage-line {
  background: #ffffff;
}

.careers-lookfor-wrapper .how-we-engage-text {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

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

  .careers-hero-content {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .careers-hero {
    min-height: 35vh;
  }

  .careers-hero-content {
    padding: 2rem 1rem;
  }

  .careers-hero-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .careers-hero-description {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
  }
}

/* Current Openings Section */
.current-openings {
  background: #ffffff;
  padding: 4rem 2.5rem 5rem;
  text-align: center;
  border-top: 1px solid rgba(26, 43, 94, 0.12);
}

.current-openings-title {
  font-size: var(--subheading-font-size, clamp(1.25rem, 2.5vw, 1.5rem));
  font-weight: 700;
  color: #1a2b5e;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.current-openings-line {
  width: 80px;
  height: 2px;
  background: #1a2b5e;
  margin: 0 auto 2.5rem;
}

.current-openings-list {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Job cards */
.job-card {
  background: #ffffff;
  border: 1px solid rgba(26, 43, 94, 0.12);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.job-card:hover {
  border-color: rgba(26, 43, 94, 0.25);
}

.job-card-details[open] .job-card {
  box-shadow: 0 4px 12px rgba(26, 43, 94, 0.08);
}

.job-card-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
}

.job-card-summary::-webkit-details-marker {
  display: none;
}

.job-card-summary::after {
  content: '▾';
  font-size: 1.2em;
  color: #1a2b5e;
  opacity: 0.6;
}

.job-card-details[open] .job-card-summary::after {
  content: '▴';
}

.job-card-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1a2b5e;
}

.job-card-meta {
  font-size: 0.9rem;
  color: rgba(26, 43, 94, 0.7);
}

.job-card-jd {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid rgba(26, 43, 94, 0.08);
}

.job-card-jd p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1a2b5e;
  text-align: left;
}

.job-card-jd p:last-of-type {
  margin-bottom: 1rem;
}

.job-card-jd ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1a2b5e;
  text-align: left;
}

.job-card-jd ul li {
  margin-bottom: 0.35rem;
}

.job-apply-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: #1a2b5e;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.job-apply-btn:hover {
  background: #131d42;
}

.job-apply-btn:active {
  opacity: 0.9;
}

/* Apply modal */
.apply-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.apply-modal {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.apply-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(26, 43, 94, 0.08);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #1a2b5e;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.apply-modal-close:hover {
  background: rgba(26, 43, 94, 0.15);
}

.apply-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a2b5e;
  margin: 0 0 1.5rem;
  padding-right: 2rem;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.apply-field label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a2b5e;
  margin-bottom: 0.5rem;
}

.apply-field .required {
  color: #c62828;
}

.apply-field input[type="file"] {
  width: 100%;
  padding: 0.5rem;
  font-size: 0.9rem;
  border: 1px solid rgba(26, 43, 94, 0.2);
  border-radius: 6px;
  background: #f8f9fc;
}

.apply-submit {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: #1a2b5e;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.apply-submit:hover {
  background: #131d42;
}

@media (max-width: 768px) {
  .current-openings-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .current-openings {
    padding: 3rem 1.5rem 4rem;
  }

  .job-card-summary {
    padding: 1rem 1.25rem;
  }

  .job-card-jd {
    padding: 0 1.25rem 1.25rem;
  }
}
