/* Shared body padding for fixed header (if not in shared.css) */
/* body { padding-top: var(--header-offset, 122px); } */

/* Base styles for the About Us page */
.page-about {
  color: #FFF1E8; /* Main text color for dark background */
  background-color: #140C0C; /* Main background color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

.page-about__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  background-color: #140C0C;
}

.page-about__hero-image-container {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

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

.page-about__hero-content-wrapper {
  text-align: center;
}

.page-about__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: #FFF1E8;
  margin-bottom: 20px;
  line-height: 1.1;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-description {
  font-size: 18px;
  color: #FFF1E8;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  margin-right: 15px;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #E5A03D 0%, #C25B10 100%);
  transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
  background: #F3C54D;
  color: #140C0C;
  transform: translateY(-2px);
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mission & Vision */
.page-about__mission-vision .page-about__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Why Choose Us */
.page-about__why-choose-us {
  background-color: #2A1212;
  padding: 60px 0;
}

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

.page-about__feature-card {
  background-color: #2A1212; /* Card background */
  border: 1px solid #6A1E1E; /* Border color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #FFF1E8;
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(243, 197, 77, 0.5));
}

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

.page-about__feature-description {
  font-size: 16px;
  line-height: 1.5;
  text-align: justify;
}

/* Products & Services */
.page-about__products-services {
  padding: 60px 0;
}

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

.page-about__service-item {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #FFF1E8;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__service-title {
  font-size: 24px;
  color: #F3C54D;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__service-description {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: justify;
}

/* FAQ Section */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #6A1E1E;
  overflow: hidden;
  background: #2A1212;
  color: #FFF1E8;
}
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: #3A1A1A;
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3C54D;
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFF1E8;
  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: #1F0F0F;
  border-radius: 0 0 5px 5px;
  font-size: 16px;
}

/* CTA Section */
.page-about__cta-section {
  background-color: #C61F1F;
  padding: 60px 0;
  text-align: center;
  color: #FFF1E8;
}

.page-about__cta-description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Copyright */
.page-about__copyright {
  background-color: #0d0d0d;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #1a1a1a;
}

/* Responsive Styles */
@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;
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px;
  }

  .page-about__hero-image-container {
    max-height: 300px;
  }

  .page-about__main-title {
    font-size: clamp(28px, 7vw, 40px);
  }

  .page-about__hero-description {
    font-size: 16px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    margin-right: 0;
    margin-bottom: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

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

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

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

  .page-about__feature-icon {
    width: 80px;
    height: 80px;
  }

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

  .page-about__feature-description,
  .page-about__service-description {
    font-size: 15px;
  }

  .page-about__service-image {
    height: 180px;
  }

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

  details.page-about__faq-item summary.page-about__faq-question { padding: 15px; }
  .page-about__faq-qtext { font-size: 16px; }
  .page-about__faq-toggle { font-size: 20px; width: 24px; }
  details.page-about__faq-item .page-about__faq-answer { padding: 0 15px 15px; }

  .page-about__cta-description {
    font-size: 16px;
  }

  /* General image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Containers for images/content */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-container,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Promo strip (if present on homepage - included for completeness as per rules) */
  .page-about__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
    overflow-x: hidden;
  }

  /* Hot games (if present on homepage - included for completeness as per rules) */
  .page-about__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Example for fixed winner ticker on homepage (if applicable) */
  /* body { padding-bottom: 60px; } */
  /* .page-about__winner-ticker { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 100; } */
}

/* The following are for homepage specific elements, included as per strict CSS output rules */
.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;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-about__reward-modal[hidden] {
  display: none !important;
}
.page-about--reward-open {
  overflow: hidden;
}
.page-about__reward-modal-content {
  background: #2A1212;
  color: #FFF1E8;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  position: relative;
}
.page-about__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #FFF1E8;
  font-size: 24px;
  cursor: pointer;
}