.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Ensure consistency with body background */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  background-color: #017439; /* Brand primary color for hero background */
  color: #ffffff;
  overflow: hidden;
}

.page-about__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
  margin-bottom: 40px;
}

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

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

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

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

.page-about__btn-primary:hover {
  background-color: #e01010;
  border-color: #e01010;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  opacity: 0.15; /* Subtle background image */
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none; /* No filter for images */
}

/* General Section Styles */
.page-about__section {
  padding: 60px 20px;
}

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

.page-about__heading {
  font-size: 2.8em;
  color: #FFFF00; /* Use brand accent color for headings */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-about__sub-heading {
  font-size: 1.8em;
  color: #017439; /* Primary brand color for sub-headings */
  margin-top: 30px;
  margin-bottom: 20px;
}

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

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

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

/* Color Contrast Specific Styles */
.page-about__dark-bg {
  background-color: #1a1a1a; /* Body background color */
  color: #ffffff; /* Light text for dark background */
}

.page-about__dark-bg .page-about__heading {
  color: #FFFF00;
}

.page-about__dark-bg .page-about__sub-heading {
  color: #ffffff;
}

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

.page-about__light-bg .page-about__heading {
  color: #017439;
}

.page-about__light-bg .page-about__sub-heading {
  color: #017439;
}

.page-about__light-bg .page-about__paragraph,
.page-about__light-bg .page-about__list-item {
  color: #333333;
}

/* Why Choose Us Section */
.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: #f8f8f8; /* Light background for cards in light section */
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 450px; /* Ensure minimum height for cards */
  display: flex;
  flex-direction: column;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-about__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  filter: none; /* No filter for images */
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  flex-grow: 1; /* Allow title to take available space */
}

.page-about__feature-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 10px;
}

.page-about__cta-buttons--center {
  margin-top: 50px;
  text-align: center;
}

/* Team Section */
.page-about__team-gallery {
  margin-top: 40px;
  text-align: center;
}

.page-about__team-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  filter: none; /* No filter for images */
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

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

.page-about__faq-item {
  background-color: #f8f8f8; /* Light background for FAQ items in light section */
  color: #333333;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

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

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

.page-about__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #C30808; /* Use Register/Login button color for toggle */
  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;
  background-color: #ffffff;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Ensure content is fully visible */
  padding: 20px 25px;
}

.page-about__faq-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
}

.page-about__faq-button {
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__heading {
    font-size: 2.2em;
  }
  .page-about__sub-heading {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }
  .page-about__hero-title {
    font-size: 2.2em;
    line-height: 1.3;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__section {
    padding: 40px 15px;
  }
  .page-about__container {
    padding: 0 10px;
  }
  .page-about__heading {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__sub-heading {
    font-size: 1.4em;
  }
  .page-about__paragraph,
  .page-about__list-item,
  .page-about__feature-description,
  .page-about__faq-text {
    font-size: 0.95em;
  }
  .page-about__feature-card {
    padding: 25px;
    min-height: auto;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    filter: none; /* No filter for images */
  }
  
  /* All containers with images/videos/buttons must be responsive */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__features-grid,
  .page-about__feature-card,
  .page-about__team-gallery,
  .page-about__faq-list,
  .page-about__faq-item,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding for sections/containers to avoid content touching edges */
  .page-about__section,
  .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* FAQ specific mobile adjustments */
  .page-about__faq-question {
    padding: 15px 20px;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__heading {
    font-size: 1.5em;
  }
  .page-about__sub-heading {
    font-size: 1.2em;
  }
  .page-about__faq-title {
    font-size: 1.1em;
  }
}