/* Body background is #0D0E12 (very dark), so default text color should be light */
.page-about {
  background-color: var(--color-background, #0D0E12); /* Fallback to custom color if var not defined */
  color: #FFF3E6; /* Text Main */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 50px;
}

.page-about__hero-section {
  padding-top: 10px; /* Small top padding as per instruction */
  padding-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-about__hero-content-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  gap: 20px;
  padding: 0 15px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.page-about__hero-text-block {
  padding: 20px 0;
}

.page-about__main-title {
  font-size: clamp(24px, 4vw, 48px); /* Using clamp as suggested */
  color: #FFF3E6; /* Text Main */
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-about__intro-description {
  font-size: 18px;
  color: #FFF3E6; /* Text Main */
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%; /* Ensure container takes full width for responsive buttons */
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Important for responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Custom Button color */
  color: #FFF3E6; /* Text Main for contrast */
  border: none;
}

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

.page-about__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #A84F0C; /* Border color */
}

.page-about__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F;
  border-color: #FFA53A;
  transform: translateY(-2px);
}

.page-about__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  color: #FFF3E6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

.page-about__dark-section {
  background-color: #0D0E12; /* Background color */
  padding: 60px 0;
}

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

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

.page-about__card {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFF3E6; /* Ensure card text is light */
}

.page-about__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-about__card p {
  font-size: 16px;
  color: #FFF3E6; /* Text Main */
}

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

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

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

.page-about__value-title {
  font-size: 22px;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 10px;
  font-weight: 600;
}

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

.page-about__feature-item {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFF3E6; /* Ensure feature item text is light */
}

.page-about__feature-icon {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-about__feature-title {
  font-size: 22px;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 15px;
  font-weight: 600;
}

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

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

.page-about__responsible-gaming-section p {
  font-size: 16px;
  color: #FFF3E6; /* Text Main */
  max-width: 900px;
  margin: 0 auto 30px;
}

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

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #A84F0C; /* Border color */
  overflow: hidden;
  background: #17191F; /* Card BG */
}
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;
  color: #FFA53A; /* Auxiliary color for question text */
}
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, 165, 58, 0.1); /* Slight highlight on hover */
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFA53A; /* Auxiliary color for question text */
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFF3E6; /* Text Main for toggle icon */
  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: #0D0E12; /* Background color */
  border-radius: 0 0 10px 10px;
  color: #FFF3E6; /* Text Main */
}

.page-about__faq-answer p {
  margin-bottom: 15px;
  color: #FFF3E6; /* Text Main */
}

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

.page-about__cta-bottom-section p {
  font-size: 18px;
  color: #FFF3E6; /* Text Main */
  max-width: 800px;
  margin: 0 auto 30px;
}

/* --- Responsive Styles --- */
/* MANDATORY HOMEPAGE CSS BLOCK (as per instruction) */
@media (max-width: 1023px) {
  .page-about__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-about__hero-brand,
  .page-about__hero-jackpot {
    display: none !important;
  }
  .page-about__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-about__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-about__game-trial-topbar,
  .page-about__game-trial-bottombar {
    display: none !important;
  }
  .page-about__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-about__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-about__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-about__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  /* MANDATORY HOMEPAGE CSS BLOCK (as per instruction) */
  .page-about__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-about__hero-brand,
  .page-about__hero-jackpot,
  .page-about__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-about__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-about__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-about__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-about__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-about__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }

  /* PC specific styles for about page */
  .page-about__hero-content-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-about__hero-section {
    padding-bottom: 20px;
  }
  .page-about__main-title {
    font-size: 28px;
  }
  .page-about__intro-description {
    font-size: 16px;
  }
  .page-about__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-about__content-grid,
  .page-about__values-grid,
  .page-about__features-grid {
    gap: 20px;
  }
  .page-about__card,
  .page-about__feature-item {
    padding: 20px;
  }
  .page-about__card-title,
  .page-about__value-title,
  .page-about__feature-title {
    font-size: 20px;
  }
  .page-about__card-image,
  .page-about__feature-icon {
    height: auto; /* Allow height to adjust on mobile */
    max-height: 180px;
  }

  /* MANDATORY HOMEPAGE CSS BLOCK (as per instruction, for promo/hot-games/brand/ticker) */
  /* 1. 首屏试玩: Covered by 1023px block, no need to repeat. */

  /* 2. 优惠 __promo-strip: (Placeholder class, general rule for promo strips) */
  .page-about__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
    overflow-x: hidden;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-about__promo-card {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .page-about__promo-card img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }
  .page-about__promo-card-content {
    padding: 10px;
  }
  .page-about__promo-card-title {
    font-size: 16px;
  }
  .page-about__promo-card-button {
    max-width: 100% !important;
    width: 100% !important;
    margin-top: 10px;
    padding: 10px 15px;
    font-size: 14px;
  }

  /* 3. 热门 __hot-games: (Placeholder classes) */
  .page-about__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
    overflow-x: hidden;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-about__hot-games-item {
    text-align: center;
  }
  .page-about__hot-games-item img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }
  .page-about__hot-games-name,
  .page-about__hot-games-rtp,
  .page-about__hot-games-desc {
    display: none !important; /* Hide on mobile as per instruction */
  }

  /* 4. 品牌 __brand-intro: (Placeholder class) */
  .page-about__brand-intro {
    padding: 30px 15px !important;
    text-align: center;
  }
  .page-about__brand-intro h2 {
    font-size: 24px;
  }
  .page-about__brand-intro p {
    font-size: 15px;
  }

  /* 5. 中奖条 __winner-ticker: (Placeholder class) */
  .page-about__winner-ticker {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999;
    background: rgba(0,0,0,0.8);
    color: #FFF3E6;
    padding: 10px 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  body, main.page-content {
    padding-bottom: 50px !important; /* Adjust body/main padding for fixed ticker */
  }

  /* 6. 通用图片与容器 */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__content-grid,
  .page-about__values-grid,
  .page-about__features-grid,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 7. 按钮与按钮容器 */
  .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-left: 15px;
    padding-right: 15px;
    font-size: 16px;
  }
  .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;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  /* 8. Other modules (FAQ) */
  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px !important;
    font-size: 16px;
  }
  .page-about__faq-qtext {
    font-size: 16px !important;
  }
  .page-about__faq-toggle {
    font-size: 20px !important;
    width: 24px !important;
    height: 24px !important;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px !important;
  }
}

/* MANDATORY homepage-related styles */
.page-about__game-trial-overlay{z-index:5;pointer-events:auto;}.page-about__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}.page-about__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}.page-about__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}.page-about__reward-modal{position:fixed;inset:0;z-index:10000;}
/* Placeholder for additional homepage-related CSS blocks as per instruction, e.g., promo/hot-games/brand-intro/winner-ticker if they were meant to be generic classes */