/* -------------------------------------------------------------------------- */
/*                              About Page Styles                             */
/* -------------------------------------------------------------------------- */

/* Base styles for the page-about scope */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #ffffff; /* Default body background is white */
}

/* -------------------------------------------------------------------------- */
/*                                Hero Section                                */
/* -------------------------------------------------------------------------- */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  padding-bottom: 40px;
  background-color: #f0f8ff;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the area, will be contain on mobile */
}

.page-about__hero-content {
  max-width: 900px;
  padding: 30px 20px 0;
  margin-top: -80px; /* Overlap slightly with the image for a cohesive look */
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

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

.page-about__hero-description {
  font-size: 1.1rem;
  color: #555555;
  margin-bottom: 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

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

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

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

.page-about__btn-secondary:hover {
  background: #005a2d;
  border-color: #005a2d;
}

.page-about__btn-link {
  background: transparent;
  color: #017439;
  border: 1px solid #017439;
  padding: 8px 15px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 5px;
}

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

/* -------------------------------------------------------------------------- */
/*                                 Sections                                   */
/* -------------------------------------------------------------------------- */
.page-about__section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-about__section:nth-of-type(even) {
  background-color: #f9f9f9;
}

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

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-about__intro-text {
  text-align: center;
  font-size: 1.1rem;
  color: #666666;
  max-width: 800px;
  margin: -20px auto 40px;
}

/* -------------------------------------------------------------------------- */
/*                            Mission & Vision Section                        */
/* -------------------------------------------------------------------------- */
.page-about__mission-vision .page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.page-about__subtitle {
  font-size: 1.8rem;
  color: #017439;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #444444;
}

/* -------------------------------------------------------------------------- */
/*                             Why Choose Us Section                          */
/* -------------------------------------------------------------------------- */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__feature-card {
  background: #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, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-about__feature-image {
  width: 100%;
  max-width: 400px; /* Max width for images in cards */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
}

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

.page-about__feature-card p {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* -------------------------------------------------------------------------- */
/*                             Commitment Section                             */
/* -------------------------------------------------------------------------- */
.page-about__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__commitment-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

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

.page-about__commitment-item p {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* -------------------------------------------------------------------------- */
/*                                Team Section                                */
/* -------------------------------------------------------------------------- */
.page-about__team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__team-member-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #017439;
  display: block;
}

.page-about__member-name {
  font-size: 1.4rem;
  color: #017439;
  margin-bottom: 5px;
  font-weight: 700;
}

.page-about__member-role {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 15px;
  font-style: italic;
}

.page-about__member-bio {
  font-size: 0.95rem;
  color: #666666;
  text-align: left;
}

/* -------------------------------------------------------------------------- */
/*                                Future Section                              */
/* -------------------------------------------------------------------------- */
.page-about__future-section .page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}

details.page-about__faq-item summary.page-about__faq-question:hover {
  background: #f5f5f5;
}

.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #444444;
}

/* -------------------------------------------------------------------------- */
/*                               Media Queries                                */
/* -------------------------------------------------------------------------- */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
  .page-about__container {
    padding: 0 15px;
  }

  .page-about__hero-content {
    margin-top: -60px;
    padding: 25px 15px 0;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-about__hero-description {
    font-size: 1rem;
  }

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

  .page-about__section-title {
    font-size: clamp(1.6rem, 3.8vw, 2.5rem);
  }

  .page-about__mission-vision .page-about__content-grid,
  .page-about__future-section .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-about__subtitle {
    font-size: 1.6rem;
  }

  .page-about__feature-card,
  .page-about__commitment-item,
  .page-about__team-member-card {
    padding: 25px;
  }

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

  .page-about__commitment-title {
    font-size: 1.5rem;
  }

  .page-about__team-photo {
    width: 150px;
    height: 150px;
  }

  .page-about__member-name {
    font-size: 1.3rem;
  }

  .page-about__faq-qtext {
    font-size: 15px;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-about__hero-section {
    padding-top: 10px; /* Ensure small top padding */
    padding-bottom: 20px;
  }

  .page-about__hero-image-wrapper {
    max-height: 400px;
  }

  .page-about__hero-image {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    aspect-ratio: unset !important; /* Mobile: unset aspect ratio */
    width: 100% !important;
    height: auto !important;
  }

  .page-about__hero-content {
    margin-top: -40px;
    padding: 20px 15px 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  }

  .page-about__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

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

  /* 按钮与按钮容器 */
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    overflow: hidden !important;
  }

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

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

  .page-about__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .page-about__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }

  .page-about__intro-text {
    font-size: 0.9rem;
    margin-top: -15px;
    margin-bottom: 30px;
  }

  /* 通用图片与容器 */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__feature-card,
  .page-about__commitment-item,
  .page-about__team-member-card {
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-about__commitment-title {
    font-size: 1.35rem;
  }

  .page-about__team-photo {
    width: 120px;
    height: 120px;
  }

  .page-about__member-name {
    font-size: 1.2rem;
  }

  .page-about__member-role,
  .page-about__member-bio {
    font-size: 0.85rem;
  }

  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-qtext {
    font-size: 15px;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
  }

  /* Sản phẩm/feature grid - 2 cột */
  .page-about__features-grid,
  .page-about__commitment-grid,
  .page-about__team-members {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-about__section-title-wrap,
  .page-about__article-body,
  .page-about__article-figure {
    text-align: center;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__article-body p,
  .page-about__article-body li {
    font-size: 1rem; /* Adjust font size for readability */
  }
}