.page-resources-safety-fairness {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Matches body background from shared.css */
  line-height: 1.6;
}

.page-resources-safety-fairness__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-resources-safety-fairness__hero-section {
  position: relative;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px);
  display: flex;
  align-items: center;
  min-height: 500px; /* Ensure hero section has a decent height */
}

.page-resources-safety-fairness__hero-section .page-resources-safety-fairness__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-resources-safety-fairness__hero-content {
  max-width: 800px;
  margin-bottom: 40px;
}

.page-resources-safety-fairness__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Register/Login font color for emphasis */
}

.page-resources-safety-fairness__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources-safety-fairness__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-resources-safety-fairness__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-resources-safety-fairness__hero-image-wrapper {
  width: 100%;
  max-width: 800px;
  margin-top: 40px;
}

.page-resources-safety-fairness__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* General Sections */
.page-resources-safety-fairness__section {
  padding: 60px 0;
}

.page-resources-safety-fairness__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Brand primary color */
}

.page-resources-safety-fairness__dark-bg .page-resources-safety-fairness__section-title {
  color: #ffffff;
}

.page-resources-safety-fairness__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources-safety-fairness__dark-bg .page-resources-safety-fairness__text-block {
  color: #f0f0f0;
}

.page-resources-safety-fairness__highlight {
  color: #017439;
  font-weight: bold;
}

.page-resources-safety-fairness__dark-bg .page-resources-safety-fairness__highlight {
  color: #FFFF00;
}

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

.page-resources-safety-fairness__grid--half {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.page-resources-safety-fairness__card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-resources-safety-fairness__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-safety-fairness__card-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
}

.page-resources-safety-fairness__card-text {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-resources-safety-fairness__image-centered {
  text-align: center;
  margin-top: 40px;
}

.page-resources-safety-fairness__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-safety-fairness__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-resources-safety-fairness__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #017439;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-resources-safety-fairness__list-item strong {
  color: #FFFF00;
}

/* FAQ Section */
.page-resources-safety-fairness__faq-list {
  margin-top: 40px;
}

.page-resources-safety-fairness__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources-safety-fairness__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

.page-resources-safety-fairness__faq-question:hover {
  background-color: #f0f0f0;
}

.page-resources-safety-fairness__faq-title {
  font-size: 1.2em;
  color: #017439;
  margin: 0;
}

.page-resources-safety-fairness__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-resources-safety-fairness__faq-item.active .page-resources-safety-fairness__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-resources-safety-fairness__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-resources-safety-fairness__faq-item.active .page-resources-safety-fairness__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
  padding-top: 0;
}

.page-resources-safety-fairness__faq-answer p {
  margin-bottom: 15px;
  font-size: 1em;
  line-height: 1.7;
}

/* CTA Section */
.page-resources-safety-fairness__cta-section {
  background-color: #017439;
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.page-resources-safety-fairness__cta-content {
  max-width: 900px;
}

.page-resources-safety-fairness__cta-section .page-resources-safety-fairness__section-title {
  color: #ffffff;
  margin-bottom: 25px;
}

.page-resources-safety-fairness__cta-section .page-resources-safety-fairness__text-block {
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Dark/Light Background helpers */
.page-resources-safety-fairness__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-resources-safety-fairness__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-safety-fairness__hero-title {
    font-size: 2.8em;
  }
  .page-resources-safety-fairness__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources-safety-fairness {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-safety-fairness__hero-section .page-resources-safety-fairness__container {
    flex-direction: column;
  }

  .page-resources-safety-fairness__hero-content {
    margin-bottom: 20px;
  }

  .page-resources-safety-fairness__hero-title {
    font-size: 2.2em;
  }

  .page-resources-safety-fairness__hero-description {
    font-size: 1em;
  }

  .page-resources-safety-fairness__btn-primary {
    width: 100% !important;
    max-width: 300px !important; /* constrain width slightly */
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-resources-safety-fairness__section {
    padding: 40px 0;
  }

  .page-resources-safety-fairness__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources-safety-fairness__grid {
    grid-template-columns: 1fr;
  }

  .page-resources-safety-fairness__grid--half {
    grid-template-columns: 1fr;
  }

  .page-resources-safety-fairness__card {
    padding: 25px;
  }

  .page-resources-safety-fairness__card-title {
    font-size: 1.4em;
  }

  .page-resources-safety-fairness__faq-question {
    padding: 15px;
  }

  .page-resources-safety-fairness__faq-title {
    font-size: 1.1em;
  }

  .page-resources-safety-fairness__faq-answer {
    padding: 0 15px;
  }

  .page-resources-safety-fairness__faq-item.active .page-resources-safety-fairness__faq-answer {
    padding: 15px;
    padding-top: 0;
  }

  .page-resources-safety-fairness__cta-section {
    padding: 60px 0;
  }

  /* Mobile image and container adaptation */
  .page-resources-safety-fairness img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources-safety-fairness__hero-image-wrapper,
  .page-resources-safety-fairness__image-centered,
  .page-resources-safety-fairness__container,
  .page-resources-safety-fairness__section,
  .page-resources-safety-fairness__card,
  .page-resources-safety-fairness__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-resources-safety-fairness__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}