.page-about {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #1a1a2e; /* Ensures consistency with body if not overridden by shared.css */
}

.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); /* Ensures content is not hidden by fixed header */
  text-align: center;
  background: linear-gradient(135deg, #017439, #005a2e);
  color: #ffffff;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for important titles */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__cta-buttons--centered {
  margin-top: 40px;
}

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

.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: #ff3333;
  border-color: #ff3333;
  transform: translateY(-2px);
}

.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);
}

.page-about__section-title {
  font-size: 2.2em;
  color: #FFFF00; /* Custom color for important titles */
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

.page-about__sub-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-about__dark-section {
  background-color: #1a1a2e;
  color: #ffffff;
  padding: 60px 0;
}

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

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

.page-about__light-bg .page-about__section-description {
  color: #555555;
}

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

.page-about__light-bg a {
  color: #017439;
  text-decoration: underline;
}

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

.page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-about__image-wrapper {
  text-align: center;
}

.page-about__image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  display: block; /* Ensures block behavior for max-width/height:auto */
  margin: 0 auto; /* Center image */
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-about__text-block--full-width {
  grid-column: 1 / -1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-about__text-block--full-width .page-about__sub-title {
  color: #017439;
}

.page-about__text-block--full-width p {
  color: #555555;
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-about__value-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-about__value-card img {
  
  
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px #017439);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__value-card .page-about__card-title {
  font-size: 1.4em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-about__value-card p {
  font-size: 1em;
  color: #f0f0f0;
}

.page-about__value-card a {
  color: #FFFF00;
  text-decoration: underline;
}

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

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

.page-about__product-card {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-about__product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-about__product-card .page-about__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-about__product-card .page-about__card-title a {
  color: #017439;
  text-decoration: none;
}

.page-about__product-card .page-about__card-title a:hover {
  text-decoration: underline;
}

.page-about__product-card p {
  font-size: 1em;
  color: #555555;
}

.page-about__product-card a {
  color: #017439;
  text-decoration: underline;
}

.page-about__product-card a:hover {
  color: #005a2e;
}

.page-about__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px 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-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-about__faq-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
  flex-grow: 1;
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-about__faq-answer p {
  margin-bottom: 15px;
  font-size: 1em;
}

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

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

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

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

/* Ensure contrast for specific elements in dark sections */
.page-about__dark-section .page-about__section-title {
  color: #FFFF00; /* High contrast for titles */
}

.page-about__dark-section .page-about__section-description {
  color: #f0f0f0;
}

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

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

.page-about__dark-section a {
  color: #FFFF00;
  text-decoration: underline;
}

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

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

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

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

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

  .page-about__image-wrapper {
    order: -1; /* Image first on smaller screens for some sections */
  }

  .page-about__products-grid,
  .page-about__values-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

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

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

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

  .page-about__intro-text {
    font-size: 1em;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-about__container,
  .page-about__section,
  .page-about__card,
  .page-about__grid-two-columns,
  .page-about__values-grid,
  .page-about__products-grid,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-about__image-wrapper img,
  .page-about__product-card img,
  .page-about__value-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__section-title {
    font-size: 1.6em;
    padding-top: 30px;
  }

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

  .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__main-title {
    font-size: 1.5em;
  }

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

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

  .page-about__products-grid,
  .page-about__values-grid {
    grid-template-columns: 1fr;
  }
}