/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

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

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2FFF6; /* Text Main */
}

.page-about__section-title--light {
  color: #F2FFF6;
}

.page-about__sub-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

.page-about__article-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 18px;
}

.page-about__article-body p {
  margin-bottom: 15px;
  color: #A7D9B8; /* Text Secondary */
}

.page-about__article-body strong {
  color: #F2FFF6; /* Text Main */
}

.page-about__article-body--light p,
.page-about__article-body--light strong {
  color: #A7D9B8;
}

.page-about__dark-section {
  background-color: #11271B; /* Card BG, used for dark sections */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 60px;
  background-color: #08160F;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for 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; /* Ensures image covers area without distortion */
  aspect-ratio: 16/9;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-top: 30px;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(32px, 4vw, 48px); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-about__hero-description {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #ffffff; /* White text for primary button */
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow color for secondary button text */
  border: 2px solid #2E7A4E; /* Border color */
  margin-left: 15px;
}

.page-about__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  color: #F2FFF6;
  border-color: #57E38D;
}

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

/* Mission & Values */
.page-about__value-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-about__value-list li {
  background-color: #0A4B2C; /* Deep Green */
  padding: 20px;
  border-radius: 10px;
  color: #F2FFF6; /* Text Main */
  font-size: 17px;
  border: 1px solid #2E7A4E; /* Border color */
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

.page-about__feature-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border color */
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-about__feature-icon {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

.page-about__card-description {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Responsible Gaming */
.page-about__responsible-gaming-section .page-about__cta-button {
  margin-top: 30px;
}

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #2E7A4E; /* Border color */
  overflow: hidden;
  background: #0A4B2C; /* Deep Green */
}

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

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: #1E3A2A; /* Divider color for hover */
}

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

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #57E38D; /* Glow color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-about__faq-item .page-about__faq-answer {
  padding: 0 25px 20px;
  background: #11271B; /* Card BG */
  border-top: 1px solid #2E7A4E;
  border-radius: 0 0 8px 8px;
  color: #A7D9B8; /* Text Secondary */
}

.page-about__faq-answer p {
  margin-top: 15px;
  margin-bottom: 0;
}

/* Final CTA Section */
.page-about__cta-content {
  text-align: center;
}

.page-about__cta-description {
  font-size: 20px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */

/* General Mobile/Tablet Adjustments */
@media (max-width: 1024px) {
  .page-about__section-padding {
    padding: 40px 0;
  }

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

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

  .page-about__article-body {
    font-size: 16px;
  }
}

@media (max-width: 849px) {
  /* HERO 主图区域: object-fit:contain !important; aspect-ratio:unset; 禁止 cover 裁切两侧; 顶距约 10px，禁止 var(--header-offset) */
  .page-about__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important; /* Allow image to scale freely */
  }
}

@media (max-width: 768px) {
  /* General content area padding */
  .page-about__container,
  .page-about__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 主图区域 */
  .page-about__hero-section {
    padding-top: 10px; /* Small top padding, consistent with body padding-top handled by shared.css */
    padding-bottom: 40px;
  }

  .page-about__main-title {
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
  }

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

  .page-about__article-body,
  .page-about__article-body--light {
    font-size: 15px;
    padding: 0 10px; /* Slight padding for readability */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-about__feature-icon {
    width: 100% !important;
    max-width: 250px !important; /* Adjust max-width for smaller screens if needed */
    height: auto !important;
  }

  /* 按钮与按钮容器 */
  .page-about__cta-button,
  .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: 12px 20px;
    font-size: 16px;
    margin-left: 0 !important; /* Remove margin-left for stacked buttons */
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Product/Feature Grid */
  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  /* FAQ */
  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px 20px;
  }

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

  .page-about__faq-toggle {
    font-size: 24px;
    width: 24px;
  }

  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 20px 15px;
  }

  .page-about__value-list {
    grid-template-columns: 1fr;
  }
}

/* Mobile-specific adjustments for overflow */
.page-about__section,
.page-about__card,
.page-about__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}