.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Body background from shared.css is white */
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 40px;
  background-color: #017439; /* Dark brand color for hero background */
  color: #ffffff; /* White text for dark background */
  position: relative;
  overflow: hidden;
}

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

.page-about__hero-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-about__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

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

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

/* Content Section */
.page-about__content-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

.page-about__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-about__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #017439; /* Brand primary color for titles */
  margin-bottom: 25px;
  text-align: center;
  padding-top: 20px;
}

.page-about__section-title--faq {
    color: #ffffff; /* White text for FAQ section title */
}

.page-about__sub-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #017439;
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-about__paragraph {
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-about__figure {
  margin: 40px 0;
  text-align: center;
}

.page-about__figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__figcaption {
  font-style: italic;
  font-size: 0.95rem;
  color: #666666;
  margin-top: 10px;
}

/* Feature Grid */
.page-about__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-about__feature-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333; /* Dark text for light background */
}

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

.page-about__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
}

.page-about__card-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 5px;
}

.page-about__card-text {
  font-size: 1rem;
  color: #555555;
}

/* Commitment List */
.page-about__commitment-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 60px;
}

.page-about__list-item {
  background-color: #f9f9f9;
  padding: 18px 25px;
  margin-bottom: 12px;
  border-left: 5px solid #017439;
  border-radius: 5px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333333;
}

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

/* Product Showcase */
.page-about__product-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-about__product-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

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

.page-about__product-link {
  text-decoration: none;
  color: inherit;
  display: block;
  padding-bottom: 20px;
}

.page-about__product-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-about__product-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #017439;
  margin: 0 15px 10px;
}

.page-about__product-description {
  font-size: 0.95rem;
  color: #555555;
  padding: 0 15px;
}

/* Info Cards (Registration, Deposit/Withdraw, App Download) */
.page-about__info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-about__info-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  color: #333333;
}

.page-about__info-card .page-about__card-title {
  margin-bottom: 15px;
}

.page-about__info-card .page-about__card-text {
  margin-bottom: 25px;
}

.page-about__info-card .page-about__btn-primary {
  font-size: 1rem;
  padding: 10px 20px;
}

.page-about__btn-register {
  background-color: #C30808; /* Register/Login red */
  color: #FFFF00; /* Register/Login yellow text */
  border: 2px solid #C30808;
}

.page-about__btn-register:hover {
  background-color: #e02a2a;
  border-color: #e02a2a;
}

/* Final CTA */
.page-about__final-cta {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 50px;
}

.page-about__btn-large {
  padding: 18px 40px;
  font-size: 1.2rem;
  border-radius: 10px;
}

/* FAQ Section (no JS accordion as per rules for non-homepage h3 Q&A) */
.page-about__faq-section {
    background-color: #017439; /* Dark brand color for FAQ background */
    color: #ffffff; /* White text for dark background */
    padding: 60px 0;
}

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

.page-about__faq-question {
    font-size: 1.3rem;
    font-weight: 600;
    color: #FFFF00; /* Yellow text for questions */
    margin-top: 25px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}

.page-about__faq-answer {
    font-size: 1rem;
    line-height: 1.6;
    color: #f0f0f0;
    margin-bottom: 20px;
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-about__article-wrap {
    padding: 0 30px;
  }
  .page-about__hero-section {
    padding-bottom: 30px;
  }
  .page-about__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-about__hero-description {
    font-size: 1.1rem;
  }
  .page-about__section-title {
    font-size: 2rem;
  }
  .page-about__sub-title {
    font-size: 1.4rem;
  }
  .page-about__feature-grid,
  .page-about__product-showcase,
  .page-about__info-cards {
    gap: 20px;
  }
  .page-about__product-image {
    height: 180px;
  }
}


/* Mobile Styles - Must include all required sections */
@media (max-width: 768px) {
  .page-about {
    font-size: 16px; /* Mobile base font size */
    line-height: 1.6;
  }

  /* 1. Top Section (Hero) */
  .page-about__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 30px;
  }

  .page-about__hero-content-wrapper {
    padding: 0 15px;
  }

  .page-about__main-title {
    font-size: 2rem !important; /* Fixed for mobile */
    margin-bottom: 10px;
  }

  .page-about__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  /* 4. Buttons and Button Containers */
  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px; /* Add padding to container */
  }

  .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;
    text-align: center;
  }

  /* Button containers mobile adaptation */
  .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__cta-buttons {
    display: flex;
    flex-direction: column; /* Mobile vertical stacking */
  }

  /* 3. General Images and Figure */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-about__figure {
    margin: 30px 0;
  }
  .page-about__figcaption {
    padding: 0 15px;
  }

  /* 2. Single Column Long Text Container */
  .page-about__article-wrap,
  .page-about__content-section,
  .page-about__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .page-about__sub-title {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 10px;
  }

  .page-about__paragraph {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .page-about__feature-grid,
  .page-about__product-showcase,
  .page-about__info-cards {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 40px;
  }

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

  .page-about__card-title {
    font-size: 1.2rem;
  }

  .page-about__product-image {
    height: 160px;
  }

  .page-about__product-title {
    font-size: 1.1rem;
  }

  .page-about__list-item {
    font-size: 1rem;
    padding: 15px 20px;
  }

  /* 5. Registration Tutorial and FAQ Block */
  .page-about__faq-section {
      padding: 40px 15px;
  }
  .page-about__faq-question {
      font-size: 1.2rem;
      margin-top: 20px;
  }
  .page-about__faq-answer {
      font-size: 0.95rem;
  }
  
  .page-about__final-cta {
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 0 15px;
  }

  .page-about__btn-large {
    font-size: 1.1rem;
    padding: 15px 30px;
  }
}