.page-about {
  color: #ffffff; /* Body background is dark (#1a1a1a), so text is light */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-about__hero-section {
  position: relative;
  padding: 100px 20px 60px; /* Adjust top padding for header offset */
  background: linear-gradient(135deg, #017439, #005f2c);
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-about__main-title {
  font-size: 3.2em;
  color: #FFFF00; /* Register and Login font color for emphasis */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-about__hero-description {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__section-title {
  font-size: 2.5em;
  color: #FFFF00; /* Use yellow for titles on dark backgrounds */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-about__sub-title {
  font-size: 1.8em;
  color: #017439; /* Brand color for sub-titles on light backgrounds */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__section-description {
  font-size: 1.1em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 50px;
}

.page-about__content-area {
  padding: 60px 0;
}

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

.page-about__content-wrapper:nth-child(even) {
  flex-direction: row-reverse; /* Alternate image and text */
}

.page-about__text-block {
  flex: 1;
  min-width: 300px;
  color: #ffffff; /* Default text color for sections with dark background */
}

.page-about__text-block p {
  margin-bottom: 15px;
}

.page-about__text-block ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-about__text-block li {
  margin-bottom: 8px;
}

.page-about__image-block {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-about__dark-section {
  background-color: #1a1a1a; /* Match body background */
  color: #ffffff;
}

.page-about__dark-section .page-about__section-title {
  color: #FFFF00; /* Yellow for titles on dark background */
}

.page-about__dark-section .page-about__sub-title {
  color: #017439; /* Primary brand color for sub-titles on dark background */
}

.page-about__dark-section .page-about__text-block {
  color: #ffffff;
}

.page-about__intro-section .page-about__section-title,
.page-about__commitment-section .page-about__section-title,
.page-about__future-section .page-about__section-title {
  color: #017439; /* Primary brand color for titles on light background */
}

.page-about__intro-section .page-about__text-block,
.page-about__commitment-section .page-about__text-block,
.page-about__future-section .page-about__text-block {
  color: #333333; /* Dark text on light background */
}

.page-about__intro-section .page-about__sub-title,
.page-about__commitment-section .page-about__sub-title,
.page-about__future-section .page-about__sub-title {
  color: #017439; /* Primary brand color for sub-titles on light background */
}

.page-about__intro-section,
.page-about__commitment-section,
.page-about__future-section {
  background-color: #ffffff; /* Light background for contrast */
  color: #333333;
}

.page-about__cta-section {
  text-align: center;
  padding: 50px 20px;
  background-color: #f5f5f5;
  border-radius: 8px;
  margin-top: 60px;
}

.page-about__cta-text {
  font-size: 1.5em;
  margin-bottom: 30px;
  color: #333333;
}

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

.page-about__team-member-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-about__team-member-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #017439;
}

.page-about__team-member-name {
  font-size: 1.5em;
  color: #FFFF00;
  margin-bottom: 10px;
}

.page-about__team-member-role {
  color: #ffffff;
  font-size: 0.95em;
}

.page-about__faq-list {
  margin-top: 40px;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: #017439;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
  color: #FFFF00;
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__main-title {
    font-size: 2.8em;
  }

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

  .page-about__content-wrapper {
    flex-direction: column;
  }
  .page-about__content-wrapper:nth-child(even) {
    flex-direction: column; /* Reset order for smaller screens */
  }

  .page-about__text-block, .page-about__image-block {
    min-width: unset;
    width: 100%;
  }
}

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

  .page-about__hero-section {
    padding: 80px 15px 40px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
  }

  .page-about__main-title {
    font-size: 2.2em;
  }

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

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

  .page-about__sub-title {
    font-size: 1.5em;
  }

  .page-about__container {
    padding: 0 15px;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button responsiveness */
  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    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__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-about__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-about__faq-answer {
    padding: 15px;
  }

  .page-about__team-grid {
    grid-template-columns: 1fr;
  }
}

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

  .page-about__section-title {
    font-size: 1.5em;
  }

  .page-about__hero-description {
    font-size: 1em;
  }
}