/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on assumed light body background */
  background-color: #ffffff; /* Explicit background for content area */
}

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

.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 40px;
  background-color: #f5f5f5;
  text-align: center;
}

.page-about__hero-image {
  width: 100%;
  max-width: 1920px;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-about__hero-content {
  max-width: 900px;
  padding: 0 16px;
}

.page-about__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
  color: #555555;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

.page-about__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1a7fb0;
  border-color: #1a7fb0;
}

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

.page-about__section--introduction {
  background-color: #ffffff;
}

.page-about__section--why-choose {
  background-color: #26A9E0;
  color: #ffffff; /* White text on brand color background */
}

.page-about__section--why-choose .page-about__section-title,
.page-about__section--why-choose .page-about__paragraph,
.page-about__section--why-choose .page-about__feature-title,
.page-about__section--why-choose .page-about__feature-description {
  color: #ffffff;
}

.page-about__section--technology {
  background-color: #f5f5f5;
}

.page-about__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-about__paragraph {
  font-size: 17px;
  margin-bottom: 25px;
  text-align: justify;
}

.page-about__sub-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__section--why-choose .page-about__sub-title {
  color: #ffffff;
}

.page-about__list {
  list-style: disc inside;
  margin-bottom: 25px;
  padding-left: 20px;
}

.page-about__list li {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-about__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__grid-two-cols--reversed {
  grid-template-columns: 1fr 1fr;
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.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: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-about__feature-card .page-about__feature-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-about__feature-card .page-about__feature-description {
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-about__feature-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 20px;
}

/* FAQ Styles */
.page-about__section--faq {
  background-color: #ffffff;
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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: #f5f5f5;
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Homepage-specific CSS (as per global requirement) */
@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 homepage PC sections */
  .page-about__promo-strip { margin-top: 16px; /* Example for homepage */ }
  .page-about__promo-strip-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
  .page-about__hot-games-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; margin-top: 30px; }
  .page-about__hot-games-name, .page-about__hot-games-rtp, .page-about__hot-games-desc { display: block; text-align: center; }
  .page-about__winner-ticker { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; }
}

/* Mobile responsiveness for About Us page */
@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }
  .page-about__main-title {
    font-size: 28px;
  }
  .page-about__intro-text {
    font-size: 16px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    padding: 10px 15px;
    font-size: 15px;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-about__paragraph {
    font-size: 15px;
  }
  .page-about__sub-title {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-about__grid-two-cols {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-about__grid-two-cols--reversed {
    grid-template-columns: 1fr;
  }
  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__feature-card {
    padding: 20px;
  }
  .page-about__feature-card .page-about__feature-title {
    font-size: 20px;
  }
  .page-about__feature-card .page-about__feature-description {
    font-size: 15px;
  }
  /* 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; }

  /* General image and container responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__container,
  .page-about__section,
  .page-about__content-block,
  .page-about__image-block,
  .page-about__feature-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Placeholder for homepage-specific mobile sections */
  .page-about__promo-strip-track { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); overflow-x: hidden; }
  .page-about__hot-games-grid { grid-template-columns: repeat(2, 1fr); }
  .page-about__brand-intro { display: block; /* Show on mobile if hidden on desktop */ }
  .page-about__winner-ticker { padding-left: 10px; padding-right: 10px; }
}

/* Default styles for game trial overlay (as per global requirement) */
.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;}
.page-about__reward-modal.is-hidden{display:none!important;pointer-events:none!important;}
.page-about__reward-modal-close{position:absolute;top:15px;right:15px;font-size:24px;color:#fff;cursor:pointer;z-index:10001;background:none;border:none;}