/* Shared CSS for page-about. Assumed body has dark background from shared.css (var(--bg-color)) */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Main text color for dark background */
  background: #0D0E12; /* Overall background */
}

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

.page-about__hero-section {
  padding-top: 10px; /* Small padding-top as body handles header offset */
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%);
  border-bottom: 1px solid #A84F0C;
}

.page-about__hero-image-container {
  margin-top: 30px;
  width: 100%;
  max-width: 1000px; /* Adjust max-width for hero image container */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

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

.page-about__main-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #FFB04D; /* Glow color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.4);
  max-width: 100%;
}

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

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 1.05em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  box-shadow: 0 6px 20px rgba(255, 176, 77, 0.6);
}

.page-about__btn-secondary {
  background: #17191F;
  color: #FFA53A;
  border: 2px solid #FFA53A;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.2);
}

.page-about__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F;
  border-color: #FFB04D;
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.4);
}

.page-about__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #FFB04D;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  text-shadow: 0 0 8px rgba(255, 176, 77, 0.3);
}

.page-about__mission-section,
.page-about__why-choose-us-section,
.page-about__faq-section {
  background: #0D0E12; /* Consistent dark background */
  padding-bottom: 60px;
}

.page-about__values-section,
.page-about__cta-section {
  background: #17191F; /* Card BG color for these sections */
  padding-bottom: 60px;
}

.page-about__content-grid {
  display: flex;
  gap: 30px;
  align-items: center;
}

.page-about__text-block {
  flex: 1;
  color: #FFF3E6;
  font-size: 1.05em;
}

.page-about__text-block p {
  margin-bottom: 15px;
}

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

.page-about__image-full {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-about__value-card:hover,
.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-about__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #FFA53A;
  margin-bottom: 15px;
}

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

.page-about__feature-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%;
  background: rgba(255, 165, 58, 0.1);
  padding: 15px;
  object-fit: contain;
}

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

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

.page-about__cta-description {
  font-size: 1.1em;
  color: #FFF3E6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Styles */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #A84F0C;
  overflow: hidden;
  background: #17191F; /* Card BG color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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: #FFF3E6;
}

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

.page-about__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFA53A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}

details.page-about__faq-item[open] .page-about__faq-question {
  background: rgba(255, 165, 58, 0.15);
  border-bottom: 1px solid #A84F0C;
}

details.page-about__faq-item .page-about__faq-answer {
  padding: 0 25px 20px;
  background: #0D0E12; /* Background color for answer */
  border-radius: 0 0 10px 10px;
  color: #FFF3E6;
  font-size: 1em;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
}

.page-about__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1023px) {
  /* Game trial specific styles, required to be included */
  .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) {
  /* Game trial specific styles, required to be included */
  .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;
  }
}

@media (max-width: 768px) {
  .page-about__main-title {
    font-size: 2em;
  }

  .page-about__intro-text {
    font-size: 1em;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-about__content-grid {
    flex-direction: column;
    gap: 20px;
  }

  .page-about__text-block {
    font-size: 1em;
  }

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

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

  .page-about__card-title {
    font-size: 1.2em;
  }

  .page-about__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
  }

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

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

  .page-about__faq-qtext {
    font-size: 1em;
  }

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

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

  /* Mobile image adaptation */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__container,
  .page-about__hero-image-container,
  .page-about__cta-buttons,
  .page-about__cta-bottom,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-section,
  .page-about__mission-section,
  .page-about__values-section,
  .page-about__why-choose-us-section,
  .page-about__cta-section,
  .page-about__faq-section {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Ensure images don't cause overflow */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Placeholder for reward modal if it were used on this page, as per instruction to include */
.page-about__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-about__reward-modal.is-hidden {
  display: none !important;
}

.page-about__reward-modal:not(.is-hidden) {
  opacity: 1;
  visibility: visible;
}

.page-about__reward-modal-content {
  background: #17191F;
  color: #FFF3E6;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-about__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: #FFF3E6;
  cursor: pointer;
  line-height: 1;
}

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