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

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

.page-about__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  text-align: center;
  background: linear-gradient(135deg, #017439, #005a2e);
  color: #ffffff;
}

.page-about__main-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFFF00; /* Register and Login font color for main title for emphasis */
}

.page-about__intro-text {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: #FFFF00; /* Use brand color for titles */
}

.page-about__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #ffffff; /* Default text color for dark backgrounds */
}

.page-about__paragraph a {
  color: #FFFF00; /* Link color */
  text-decoration: underline;
}

.page-about__paragraph a:hover {
  color: #ffffff;
}

.page-about__keyword {
  font-weight: bold;
  color: #FFFF00;
}

.page-about__mission-section,
.page-about__values-section {
  padding: 60px 0;
}

.page-about__why-choose-us-section,
.page-about__faq-section,
.page-about__cta-section {
  padding: 60px 0;
}

.page-about__dark-bg {
  background: #1a1a2e; /* Body background color */
  color: #ffffff; /* Light text for dark background */
}

.page-about__light-bg {
  background: #FFFFFF; /* White background */
  color: #333333; /* Dark text for light background */
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__paragraph,
.page-about__light-bg .page-about__keyword {
  color: #333333; /* Ensure dark text on light background */
}

.page-about__light-bg .page-about__paragraph a {
  color: #017439; /* Brand color for links on light background */
}

.page-about__light-bg .page-about__paragraph a:hover {
  color: #005a2e;
}

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

.page-about__grid--reverse {
  flex-direction: row-reverse;
}

.page-about__content-block {
  flex: 1;
}

.page-about__image-wrapper {
  flex: 1;
  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);
  display: block;
  margin: 0 auto;
}

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

.page-about__feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-about__feature-card .page-about__feature-icon {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 4px;
}

.page-about__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-about__feature-description {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-about__feature-description a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-about__feature-description a:hover {
  color: #ffffff;
}

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

.page-about__value-item {
  background: #f0f0f0;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #333333;
  display: flex;
  align-items: center;
}

.page-about__value-item strong {
  color: #017439;
  margin-right: 10px;
}

.page-about__value-item a {
  color: #017439;
  text-decoration: underline;
}

.page-about__value-item a:hover {
  color: #005a2e;
}

.page-about__center-text {
  text-align: center;
  margin-top: 40px;
}

.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;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

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

.page-about__faq-question h3 {
  margin: 0;
  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 25px;
  background: rgba(255, 255, 255, 0.05);
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #ffffff;
}

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

.page-about__faq-answer p {
  margin: 0;
  padding-top: 10px;
  color: #f0f0f0;
}

.page-about__faq-answer a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-about__faq-answer a:hover {
  color: #ffffff;
}

.page-about__cta-content {
  text-align: center;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-about__cta-content .page-about__section-title {
  color: #017439;
}

.page-about__cta-content .page-about__paragraph {
  color: #333333;
}

.page-about__cta-content .page-about__paragraph a {
  color: #017439;
}

.page-about__btn-large {
  font-size: 1.3em;
  padding: 18px 40px;
  margin-top: 30px;
  background: #C30808; /* Register button color */
  color: #FFFF00; /* Register and Login font color */
  border: 2px solid #C30808;
}

.page-about__btn-large:hover {
  background: #e01a1a;
  border-color: #e01a1a;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.5em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__grid {
    flex-direction: column;
  }
  .page-about__grid--reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__main-title {
    font-size: 2em;
    padding: 0 15px;
  }
  .page-about__intro-text {
    font-size: 1em;
    padding: 0 15px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-large {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__section-title {
    font-size: 1.8em;
    padding: 0 15px;
  }
  .page-about__paragraph {
    font-size: 0.95em;
    padding: 0 15px;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__image {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-about__feature-card {
    padding: 20px;
  }
  .page-about__feature-card .page-about__feature-icon {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-about__value-item {
    padding: 10px 15px;
    font-size: 1em;
    margin: 0 15px 10px;
  }
  .page-about__faq-question,
  .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__faq-answer {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .page-about__faq-list {
    padding: 0 15px;
  }
  .page-about__faq-item {
    margin-left: 0;
    margin-right: 0;
  }
  .page-about__cta-content {
    padding: 30px 15px;
  }
  /* Ensure all content sections have padding and max-width on mobile */
  .page-about__mission-section,
  .page-about__why-choose-us-section,
  .page-about__values-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__content-area,
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !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 {
    flex-direction: column;
  }
}