.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Matches body background */
}

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

.page-about__hero-section {
  position: relative;
  width: 100%;
  padding: 100px 20px 60px; /* Adjust padding-top to account for fixed header */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by header */
  text-align: center;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-about__hero-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;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808; /* Custom color for register/login */
}

.page-about__btn-secondary:hover {
  background-color: #C30808;
  color: #ffffff;
}

.page-about__intro-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-about__image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
}

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

.page-about__text-content {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
}

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #017439;
  text-align: center;
}

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

.page-about__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #017439;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-about__paragraph--white {
  color: #f0f0f0;
}

.page-about__list {
  list-style: disc inside;
  margin-left: 20px;
  font-size: 1.1em;
}

.page-about__list li {
  margin-bottom: 10px;
}

.page-about__list-strong {
  color: #017439;
}

.page-about__why-choose-us {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

.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-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-10px);
}

.page-about__feature-icon {
  width: 100%; /* Ensures images scale within card */
  height: auto;
  max-height: 200px; /* Limits height to maintain aspect ratio */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

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

.page-about__commitment-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

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

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

.page-about__commitment-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-about__team-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

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

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

.page-about__team-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-about__team-role {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-about__team-description {
  font-size: 0.95em;
  color: #e0e0e0;
}

.page-about__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-about__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.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;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__content-area {
    flex-direction: column;
    text-align: center;
  }
  .page-about__image-wrapper,
  .page-about__text-content {
    max-width: 100%;
  }
  .page-about__intro-image {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }
  .page-about__paragraph,
  .page-about__list,
  .page-about__feature-description,
  .page-about__commitment-title,
  .page-about__team-role,
  .page-about__team-description,
  .page-about__faq-question,
  .page-about__faq-answer p {
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile button responsiveness */
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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;
  }

  /* Mobile container padding for content areas */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__intro-section .page-about__container,
  .page-about__why-choose-us .page-about__container,
  .page-about__commitment-section .page-about__container,
  .page-about__team-section .page-about__container,
  .page-about__faq-section .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__faq-question,
  .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 15px !important;
  }

  .page-about__feature-icon,
  .page-about__commitment-image,
  .page-about__team-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-about__feature-card,
  .page-about__commitment-item,
  .page-about__team-member {
    padding: 20px;
  }
}