/* style/careers.css */
.page-careers {
  color: #333333; /* Dark text for light body background */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #FFFFFF; /* Explicitly set for clarity, though body is default white */
}

.page-careers__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-careers__section--dark-bg {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* White text for dark background */
}

.page-careers__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px 40px;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-careers__hero-content {
  z-index: 1;
  max-width: 800px;
}

.page-careers__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  line-height: 1.2;
}

.page-careers__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-careers__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-careers__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}

.page-careers__btn--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for light button */
  border: 2px solid #FCBC45;
}

.page-careers__btn--primary:hover {
  background-color: #e0a53a;
  border-color: #e0a53a;
}

.page-careers__btn--secondary {
  background-color: transparent;
  color: #FFFFFF; /* White text for dark background */
  border: 2px solid #FFFFFF;
}

.page-careers__btn--secondary:hover {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.page-careers__hero-image {
  margin-top: 40px;
  width: 100%;
  max-width: 1000px; /* Limit image width */
  border-radius: 12px;
  overflow: hidden;
}

.page-careers__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-careers__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  color: #000000; /* Default dark for light background */
}

.page-careers__section--dark-bg .page-careers__section-title {
  color: #FCBC45; /* Light color for dark background */
}

.page-careers__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  opacity: 0.8;
}

.page-careers__section--dark-bg .page-careers__section-intro {
  color: #f0f0f0;
}

.page-careers__why-join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-careers__why-join-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-careers__why-join-item:hover {
  transform: translateY(-5px);
}

.page-careers__why-join-icon {
  width: 400px; /* Min size 200px, setting to larger */
  height: 300px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-careers__why-join-heading {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
}

.page-careers__why-join-text {
  font-size: 1em;
  color: #555555;
}

.page-careers__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-careers__value-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-careers__value-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-careers__value-heading {
  font-size: 1.8em;
  color: #FCBC45;
  margin-bottom: 15px;
}

.page-careers__value-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-careers__career-paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-careers__path-card {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-careers__path-card:hover {
  transform: translateY(-5px);
}

.page-careers__path-image {
  width: 300px; /* Min size 200px, setting to larger */
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-careers__path-heading {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 10px;
}

.page-careers__path-text {
  font-size: 0.95em;
  color: #555555;
}

.page-careers__life-content {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-careers__life-text-block {
  flex: 2;
}

.page-careers__life-heading {
  font-size: 2em;
  color: #FCBC45;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-careers__life-heading:first-child {
  margin-top: 0;
}

.page-careers__life-paragraph {
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-careers__life-image-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-careers__life-image {
  width: 500px; /* Min size 200px, setting to larger */
  height: 375px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-careers__process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-careers__process-step {
  text-align: center;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-careers__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #FCBC45;
  color: #000000;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-careers__step-heading {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
}

.page-careers__step-text {
  font-size: 1em;
  color: #555555;
}

.page-careers__application-cta {
  text-align: center;
  margin-top: 60px;
}

.page-careers__faq-container {
  margin-top: 40px;
}

.page-careers__faq-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  margin-bottom: 15px;
  padding: 20px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-careers__faq-question {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-careers__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  color: #FCBC45;
  transition: transform 0.3s ease;
}

.page-careers__faq-question.active::after {
  content: '-';
  transform: translateY(-50%) rotate(0deg);
}

.page-careers__faq-answer {
  font-size: 1em;
  color: #555555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding-top 0.5s ease-out;
  padding-top: 0;
}

.page-careers__faq-answer.active {
  max-height: 200px; /* Adjust based on content */
  padding-top: 10px;
}

.page-careers__cta-section {
  text-align: center;
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
}

.page-careers__cta-section .page-careers__section-title {
  color: #FCBC45;
}

.page-careers__cta-section .page-careers__section-intro {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-careers__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-careers__hero-title {
    font-size: 3em;
  }

  .page-careers__hero-description {
    font-size: 1.2em;
  }

  .page-careers__life-content {
    flex-direction: column;
    align-items: center;
  }

  .page-careers__life-image-block {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-careers__life-image {
    width: 100%;
    max-width: 400px;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-careers__hero-section {
    padding: 60px 15px 30px;
  }

  .page-careers__hero-title {
    font-size: 2.5em;
  }

  .page-careers__hero-description {
    font-size: 1.1em;
  }

  .page-careers__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-careers__btn {
    width: 100%;
    max-width: 300px;
  }

  .page-careers__section {
    padding: 40px 15px;
  }

  .page-careers__section-title {
    font-size: 2em;
  }

  .page-careers__section-intro {
    font-size: 1em;
  }

  .page-careers__why-join-grid,
  .page-careers__values-grid,
  .page-careers__career-paths-grid,
  .page-careers__process-steps {
    grid-template-columns: 1fr;
  }

  .page-careers__why-join-icon,
  .page-careers__path-image {
    width: 100%;
    height: auto;
    max-width: 300px;
  }

  .page-careers__life-image {
    width: 100%;
    height: auto;
  }
  
  /* Critical: prevent content overflow */
  .page-careers img {
    max-width: 100%;
    height: auto;
  }
  .page-careers {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-careers__hero-title {
    font-size: 2em;
  }

  .page-careers__hero-description {
    font-size: 0.95em;
  }

  .page-careers__btn {
    padding: 12px 20px;
  }

  .page-careers__section-title {
    font-size: 1.8em;
  }

  .page-careers__why-join-heading,
  .page-careers__value-heading,
  .page-careers__path-heading,
  .page-careers__life-heading,
  .page-careers__step-heading,
  .page-careers__faq-question {
    font-size: 1.5em;
  }
}