/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #0A0A0A; /* Custom background color */
  color: #FFF6D6; /* Custom main text color */
  padding-bottom: 50px; /* Adjust for footer if needed */
}

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

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

.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  margin-bottom: 20px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 16px;
}

.page-about__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  color: #FFD36B; /* Glow color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF6D6;
}

.page-about__cta-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
  color: #111111; /* Dark text for contrast on bright button */
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1em;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Main color for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-about__paragraph {
  font-size: 1em;
  margin-bottom: 1em;
  color: #FFF6D6; /* Main text color */
}

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

.page-about__card {
  background: #111111; /* Custom card background */
  border: 1px solid #3A2A12; /* Custom border color */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #FFF6D6; /* Main text color for cards */
}

.page-about__card-title, .page-about__value-title, .page-about__feature-title, .page-about__sub-title {
  font-size: 1.5em;
  color: #FFD36B; /* Auxiliary color for card titles */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
}

.page-about__values-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.page-about__value-item {
  text-align: left;
  padding: 20px;
}

.page-about__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
  display: block;
}

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

.page-about__feature-item {
  text-align: left;
  padding: 20px;
}

.page-about__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
}

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

.page-about__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
}

.page-about__security-grid, .page-about__support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__security-image, .page-about__support-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.page-about__text-link {
  color: #F2C14E;
  text-decoration: underline;
  margin-top: 15px;
  display: inline-block;
}

.page-about__text-link:hover {
  color: #FFD36B;
}

/* FAQ Section */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12; /* Custom border color */
  overflow: hidden;
  background: #111111; /* Custom card background */
  color: #FFF6D6;
}
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: rgba(242, 193, 78, 0.1);
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF6D6;
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Main color 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: #0A0A0A; /* Darker background for answer */
  border-radius: 0 0 5px 5px;
  color: #FFF6D6;
}

/* Common responsive styles for images and containers */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-about__section,
.page-about__card,
.page-about__container,
.page-about__cta-group {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Homepage specific CSS blocks (as required by prompt for any page's CSS output) */
@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) {
  .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;
  }
  /* Placeholder for other PC specific styles */
  .page-about__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .page-about__hot-games-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  .page-about {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-about__main-title {
    font-size: 2em;
  }

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

  .page-about__hero-section {
    padding-bottom: 20px;
  }

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

  .page-about__security-grid,
  .page-about__support-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .page-about__security-content, .page-about__support-info {
    order: 2;
  }

  .page-about__security-image, .page-about__support-image {
    order: 1;
  }

  .page-about__card {
    padding: 20px;
  }

  .page-about__card-title, .page-about__value-title, .page-about__feature-title, .page-about__sub-title {
    font-size: 1.3em;
  }

  .page-about__cta-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

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

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .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;
    overflow-x: hidden; /* Ensure no horizontal scroll */
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* FAQ mobile styles */
  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; }

  /* Placeholder for homepage-specific mobile styles as required */
  /* 1. 首屏试玩 (already covered by 1023px block above) */

  /* 2. 优惠 __promo-strip */
  .page-about__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* Adjust if needed for 4 items, but 2 is safer for general */
    overflow-x: hidden !important;
    gap: 15px;
  }
  .page-about__promo-card {
    flex-direction: column !important; /* Stack image and text */
    text-align: center;
  }
  .page-about__promo-card-image {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 10px;
  }
  .page-about__promo-card-content {
    padding: 0;
  }

  /* 3. 热门 __hot-games */
  .page-about__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
    overflow-x: hidden !important;
  }
  .page-about__hot-games-item-name,
  .page-about__hot-games-item-rtp,
  .page-about__hot-games-item-desc {
    display: none !important; /* Hide details on mobile */
  }
  .page-about__hot-games-item-image {
    width: 100% !important;
    height: auto !important;
  }

  /* 4. 品牌 __brand-intro */
  .page-about__brand-intro {
    padding: 20px 15px;
    text-align: center;
  }
  .page-about__brand-intro-content {
    flex-direction: column;
    align-items: center;
  }
  .page-about__brand-intro-image {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px;
  }

  /* 5. 中奖条 __winner-ticker */
  .page-about__winner-ticker {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 8px 15px !important;
    box-sizing: border-box !important;
    z-index: 999;
  }
  body {
    padding-bottom: 40px; /* Adjust for ticker height */
  }
}

/* Game trial overlay styles (as required by prompt for any page's CSS output) */
.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 #3A2A12; /* Custom border color */
  border-radius: 10px;
  overflow: hidden;
}
.page-about__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease;
}
.page-about__reward-modal:not([hidden]) {
  visibility: visible;
  opacity: 1;
}
.page-about__reward-modal-content {
  background: #111111;
  color: #FFF6D6;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  position: relative;
}
.page-about__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: #F2C14E;
  cursor: pointer;
}