.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Main text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css, which is #1a1a2e */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #ffffff; /* White for section titles on dark body background */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #017439; /* Use primary brand color for hero background */
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Make background image subtle */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-about__hero-title {
  font-size: 3em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-about__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-about__btn-secondary {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-about__btn-link {
  background-color: transparent;
  color: #017439; /* Brand color for links */
  border: 2px solid transparent;
  padding: 0;
  text-decoration: underline;
  margin-top: 10px;
}

.page-about__btn-link:hover {
  color: #005a2e;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
}

.page-about__dark-section {
  background-color: #1a1a2e; /* Use body background for dark sections */
  color: #ffffff;
}

.page-about__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.page-about__card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff; /* Text color for cards on dark background */
}

.page-about__card-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 15px;
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: #f5f5f5; /* Light background for this section */
  color: #333333; /* Dark text on light background */
}

.page-about__values-section .page-about__section-title {
  color: #333333; /* Dark title on light background */
}

.page-about__grid-three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-about__value-item .page-about__card {
  background-color: #ffffff; /* White card on light background */
  color: #333333; /* Dark text on white card */
  border: 1px solid #e0e0e0;
  text-align: center;
}

.page-about__value-icon {
  width: 100%;
  height: auto;
  max-width: 200px; /* Ensure icon-like images are not too large but still >200px */
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-about__value-title {
  font-size: 1.5em;
  color: #017439; /* Primary brand color for value titles */
  margin-bottom: 10px;
}

/* History Section */
.page-about__history-section {
  padding: 80px 0;
}

.page-about__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__history-text {
  flex: 1;
}

.page-about__history-text p {
  margin-bottom: 15px;
  color: #f0f0f0; /* Light text on dark background */
}

.page-about__history-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-about__history-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Security & Fairness Section */
.page-about__security-fairness-section {
  padding: 80px 0;
  background-color: #f5f5f5; /* Light background */
  color: #333333; /* Dark text */
}

.page-about__security-fairness-section .page-about__section-title {
  color: #333333;
}

.page-about__security-text {
  flex: 1;
}

.page-about__security-text p {
  margin-bottom: 15px;
  color: #333333;
}

.page-about__security-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-about__security-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
}

.page-about__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #017439; /* Primary brand color for question background */
  color: #ffffff;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #005a2e;
}

.page-about__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
  color: #f0f0f0; /* Light text for answer */
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 20px;
}

.page-about__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}
.page-about__faq-answer a {
  color: #FFFF00; /* Yellow for links inside FAQ answers */
  text-decoration: underline;
}
.page-about__faq-answer a:hover {
  color: #FFD700;
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439; /* Primary brand color for CTA background */
  color: #ffffff;
}

.page-about__cta-section .page-about__section-title {
  color: #ffffff;
}

.page-about__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__grid-two-cols,
  .page-about__grid-three-cols,
  .page-about__content-wrapper {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .page-about__reverse-on-mobile {
    flex-direction: column-reverse; /* Reverse order for security section image/text */
  }
  .page-about__history-image-wrapper,
  .page-about__security-image-wrapper {
    margin-top: 30px;
  }
}

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

  /* Fixed header spacing for mobile */
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-buttons,
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to button container */
    overflow: hidden !important;
  }

  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__hero-image-wrapper,
  .page-about__history-image-wrapper,
  .page-about__security-image-wrapper,
  .page-about__value-item .page-about__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-about__container {
    padding: 0 15px; /* Adjust container padding for mobile */
  }
  .page-about__hero-content {
    padding: 20px 15px;
  }
  .page-about__card {
    padding: 20px;
  }
  .page-about__faq-question {
    padding: 12px 15px;
  }
  .page-about__faq-answer {
    padding: 0 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 12px 15px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
}