/* style/about.css */

/* Base Styles for .page-about */
.page-about {
  font-family: Arial, sans-serif;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
}

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

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

.page-about__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #FF8C1A; /* Main color */
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF3E6;
}

.page-about__text-center {
  text-align: center;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height on desktop */
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Desktop: cover */
  aspect-ratio: 16 / 9; /* Maintain aspect ratio */
}

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

.page-about__main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: #FF8C1A;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-about__hero-content .page-about__description {
  font-size: 20px;
  margin-bottom: 30px;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 132, 26, 0.4);
}

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

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

.page-about__btn-secondary:hover {
  background: rgba(255, 140, 26, 0.1);
  color: #FFA53A;
  border-color: #FFA53A;
}

.page-about__btn--small {
  padding: 10px 20px;
  font-size: 16px;
}

/* Story and Responsible Gaming Sections (content-grid) */
.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
  min-width: 0;
}

.page-about__text-block p {
  margin-bottom: 20px;
  font-size: 17px;
  color: #FFF3E6;
  text-align: left;
}

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
}

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

.page-about__value-card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF3E6;
}

.page-about__value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 140, 26, 0.2);
}

.page-about__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 15px;
}

.page-about__value-card p {
  font-size: 16px;
  color: #FFF3E6;
  line-height: 1.5;
}

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

.page-about__feature-item {
  text-align: center;
  padding: 25px;
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: #FF8C1A;
  margin-bottom: 10px;
}

.page-about__feature-item p {
  font-size: 16px;
  color: #FFF3E6;
}

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
  color: #FFF3E6;
}

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;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFA53A;
}

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: rgba(255, 140, 26, 0.1);
}

.page-about__faq-qtext {
  flex: 1;
  text-align: left;
}

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

details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter for contrast */
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  color: #FFF3E6;
}

/* Dark background for sections */
.page-about__dark-bg {
  background-color: #0D0E12; /* Background */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-image-wrapper {
    max-height: 500px;
  }

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

  .page-about__main-title {
    font-size: clamp(32px, 4.5vw, 48px);
  }

  .page-about__description {
    font-size: 17px;
  }

  .page-about__content-grid,
  .page-about__content-grid--reverse {
    flex-direction: column;
    gap: 30px;
  }

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

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

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

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

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

  details.page-about__faq-item summary.page-about__faq-question {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-about {
    padding-top: 10px; /* Ensure small top padding on mobile */
    font-size: 16px;
    line-height: 1.6;
  }

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

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

  .page-about__section-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 20px;
  }

  .page-about__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* HERO 主图区域 */
  .page-about__hero-image-wrapper {
    max-height: 400px;
  }

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

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

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

  .page-about__hero-content .page-about__description {
    font-size: 17px;
  }

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

  /* Buttons - Mobile Adaption */
  .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__text-block p {
    font-size: 15px;
  }

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

  .page-about__image-block {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__values-grid,
  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__value-card,
  .page-about__feature-item {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto;
  }

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

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

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

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

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

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

  /* 产品展示图区域 (not applicable for about.html, but keeping structure for completeness) */
  /* If this page somehow had a product grid, it would need: */
  /* .page-about__products-grid { grid-template-columns: repeat(2, 1fr); overflow-x: hidden; } */

  /* 装饰主标题 + 长文 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 {
    font-size: 15px;
    text-align: left;
  }
}