.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Body background from shared.css is var(--secondary-color) which is #FFFFFF */
}

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

.page-about__section {
  padding: 60px 0;
}

.page-about__section-title {
  font-size: 36px;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

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

.page-about__grid {
  display: grid;
  gap: 30px;
}

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

.page-about__grid--2-cols-reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.page-about__grid--2-cols-reverse > * {
  direction: ltr;
}

.page-about__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

.page-about__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-about__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: #FFFFFF; /* High contrast for dark background */
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 18px;
  color: #f0f0f0; /* Slightly off-white for readability */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-register {
  background: #C30808; /* Custom register color */
  color: #FFFF00; /* Custom register font color */
}

.page-about__btn-login {
  background: #C30808; /* Custom login color */
  color: #FFFF00; /* Custom login font color */
}

.page-about__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Cards */
.page-about__card {
  background: #ffffff; /* Default white background */
  color: #333333; /* Default dark text */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a row have same height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

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

.page-about__card-title {
  font-size: 22px;
  color: #017439;
  margin-bottom: 15px;
}

.page-about__card p {
  font-size: 15px;
  line-height: 1.6;
}

/* Feature List */
.page-about__feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-about__feature-list li {
  background: #ffffff;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  text-align: left;
  border-left: 5px solid #017439;
}

.page-about__feature-list li:last-child {
  margin-bottom: 0;
}

.page-about__feature-title {
  font-size: 20px;
  color: #017439;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-about__btn-download {
  background: #017439;
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.page-about__btn-download:hover {
  background: #005a2e;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Use !important to ensure priority, large value for content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about__faq-question:active {
  background: #eeeeee;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #333;
  transform: rotate(180deg);
}

/* Background colors for sections */
.page-about__dark-section {
  background-color: #017439;
  color: #ffffff; /* Light text for dark background */
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__sub-title {
  color: #FFFFFF;
}

.page-about__dark-section .page-about__section-title::after {
  background-color: #FFFFFF;
}

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

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

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__grid--2-cols,
  .page-about__grid--2-cols-reverse {
    grid-template-columns: 1fr;
  }

  .page-about__grid--2-cols-reverse .page-about__image-block {
    order: -1; /* Image first on smaller screens */
  }

  .page-about__hero-section {
    padding: 40px 15px;
  }

  .page-about__main-title {
    font-size: 38px;
  }

  .page-about__intro-text {
    font-size: 16px;
  }

  .page-about__section-title {
    font-size: 30px;
  }

  .page-about__sub-title {
    font-size: 22px;
  }

  .page-about__card {
    padding: 25px;
  }

  .page-about__feature-list li {
    padding: 20px;
  }

  .page-about__feature-title {
    font-size: 18px;
  }
}

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

  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__main-title {
    font-size: 32px;
  }

  .page-about__intro-text {
    font-size: 15px;
  }

  .page-about__section {
    padding: 40px 0;
  }

  .page-about__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: 20px;
  }

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

  .page-about__cta-button,
  .page-about__btn-download,
  .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__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__container,
  .page-about__section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__section,
  .page-about__card,
  .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 {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-about__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-about__faq-answer {
    padding: 0 15px;
  }
  
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
}