.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Inherited from body, but explicitly set for clarity */
}

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

.page-about__dark-section {
  background-color: #017439; /* Main brand color for dark sections */
  color: #ffffff;
}

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

.page-about__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__hero-content-wrapper {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1920px; /* Max width for the image */
  object-fit: cover;
}

.page-about__hero-text-content {
  padding: 40px 20px;
  max-width: 900px;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.4); /* Slightly dark overlay for text readability */
  margin-top: -100px; /* Pull text block slightly up over the image, but not overlapping significantly */
  position: relative; /* To allow z-index if needed, but primarily for margin-top effect */
  z-index: 1; /* Ensure text is above any subtle background elements */
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

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

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

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

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

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

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

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

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
  color: #017439; /* Default for light backgrounds */
}

.page-about__section-title--white {
  color: #ffffff;
}

.page-about__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
  color: #333333; /* Default for light backgrounds */
}

.page-about__text-block--white {
  color: #ffffff;
}

.page-about__mission-vision-section {
  padding: 60px 0;
}

.page-about__why-choose-us-section {
  padding: 60px 0;
}

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

.page-about__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-about__feature-icon {
  width: 100%;
  max-width: 150px; /* Constrain icon size */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
}

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

.page-about__feature-description {
  font-size: 1rem;
  color: #555555;
  text-align: center;
}

.page-about__history-section {
  padding: 60px 0;
}

.page-about__responsible-gaming-section {
  padding: 60px 0;
  text-align: center;
}

.page-about__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-about__cta-content {
  background-color: #f5f5f5;
  border-radius: 12px;
  padding: 50px 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  color: #333333;
}

/* Ensure all images are responsive */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__hero-text-content {
    margin-top: -80px;
    padding: 30px 15px;
  }

  .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: 12px 25px;
  }

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

  .page-about__text-block {
    font-size: 1rem;
  }

  .page-about__feature-card {
    padding: 25px;
  }

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

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

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-about__hero-section {
    padding-top: 10px !important; /* Small top padding */
  }

  .page-about__hero-content-wrapper {
    flex-direction: column;
  }

  .page-about__hero-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  .page-about__hero-text-content {
    margin-top: -60px; /* Adjust margin for smaller screens */
    padding: 20px 15px;
    width: calc(100% - 30px); /* Account for padding in container */
    max-width: calc(100% - 30px);
    margin-left: 15px;
    margin-right: 15px;
  }

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

  .page-about__hero-description {
    font-size: 0.95rem !important;
  }

  .page-about__hero-cta-buttons,
  .page-about__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !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__container {
    padding: 20px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-about__text-block {
    font-size: 0.9rem !important;
  }

  .page-about__features-grid {
    grid-template-columns: 1fr !important; /* Single column layout for features */
  }

  .page-about__feature-card {
    padding: 20px !important;
  }

  .page-about__feature-title {
    font-size: 1.3rem !important;
  }

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

  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* No specific product display section on this page, but general image/container rules apply */
}