/* style/about.css */
.page-about {
  color: #ffffff; /* Default text color for dark body background */
  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);
  text-align: center;
  background-color: #017439; /* Brand color */
  color: #ffffff;
}

.page-about__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-about__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  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__btn-register,
.page-about__btn-login {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-about__content-section,
.page-about__products-section,
.page-about__vision-section,
.page-about__cta-section {
  padding: 60px 0;
}

.page-about__commitment-section,
.page-about__experience-section,
.page-about__faq-section {
  padding: 60px 0;
  background-color: #0a0a0a; /* Body background color */
  color: #ffffff; /* Light text for dark background */
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-about__heading {
  font-size: 2.2em;
  margin-bottom: 30px;
  text-align: center;
  color: inherit;
}

.page-about__sub-heading {
  font-size: 1.6em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
}

.page-about__text {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: inherit;
}

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

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

.page-about__feature-card,
.page-about__product-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-about__light-bg .page-about__feature-card,
.page-about__light-bg .page-about__product-card {
  background-color: #f9f9f9;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-about__feature-card:hover,
.page-about__product-card:hover {
  transform: translateY(-5px);
}

.page-about__feature-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: inherit;
}

.page-about__feature-text {
  font-size: 1em;
  line-height: 1.6;
  color: inherit;
}

.page-about__product-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
}

.page-about__product-title {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-about__product-title a {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__product-title a:hover {
  color: #017439; /* Brand color on hover */
  text-decoration: underline;
}

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

.page-about__light-bg .page-about__product-title a:hover {
  color: #005a2d;
}

.page-about__product-description {
  font-size: 0.95em;
  color: inherit;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly darker for question area */
  transition: background-color 0.3s ease;
}

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFF00; /* Yellow for toggle icon */
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Plus to X/Minus */
}

.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; /* Ensure enough height for content */
  padding: 15px 25px 25px;
}

.page-about__faq-answer p {
  margin: 0;
  color: inherit;
}

.page-about__cta-section {
  text-align: center;
  background-color: #ffffff;
  color: #333333;
}

.page-about__btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background-color: #017439; /* Brand color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

  .page-about__heading {
    font-size: 1.8em;
  }

  .page-about__sub-heading {
    font-size: 1.4em;
  }
}

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

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

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

  .page-about__description {
    font-size: 1em;
    padding: 0 15px;
  }

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

  .page-about__btn-register,
  .page-about__btn-login,
  .page-about__btn-primary,
  .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__content-section,
  .page-about__commitment-section,
  .page-about__products-section,
  .page-about__experience-section,
  .page-about__vision-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 40px 0;
  }

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

  .page-about__heading {
    font-size: 1.6em;
  }

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

  .page-about__text {
    font-size: 1em;
  }

  .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,
  .page-about__features-grid,
  .page-about__products-grid,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-about__feature-card,
  .page-about__product-card,
  .page-about__faq-item {
    padding: 20px;
  }

  .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 20px;
  }
}

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

  .page-about__heading {
    font-size: 1.4em;
  }

  .page-about__btn-register,
  .page-about__btn-login,
  .page-about__btn-primary {
    padding: 10px 20px;
    font-size: 1em;
  }
}