/* -------------------- Homepage Trial Game CSS (Mandatory Inclusion) -------------------- */
@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 Homepage elements that might appear in about.css due to strict inclusion rules */
/* Promo Strip (if present on homepage) */
.page-about__promo-strip-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  padding: 16px;
  max-width: 1280px;
  margin: 0 auto;
}
.page-about__promo-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: var(--card-bg-color, #17191F);
  border-radius: 8px;
  overflow: hidden;
  color: var(--text-main-color, #FFF3E6);
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.page-about__promo-card-icon {
  width: 60px;
  height: 60px;
  margin-right: 15px;
  flex-shrink: 0;
}
.page-about__promo-card-content {
  flex-grow: 1;
}
.page-about__promo-card-title {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-main-color, #FFF3E6);
}
.page-about__promo-card-description {
  font-size: 0.9em;
  line-height: 1.4;
  color: #ccc;
}

/* Hot Games (if present on homepage) */
.page-about__hot-games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding: 16px;
  max-width: 1280px;
  margin: 0 auto;
}
.page-about__hot-game-card {
  background: var(--card-bg-color, #17191F);
  border-radius: 8px;
  overflow: hidden;
  color: var(--text-main-color, #FFF3E6);
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
}
.page-about__hot-game-image {
  width: 100%;
  height: auto;
  display: block;
}
.page-about__hot-game-info {
  padding: 10px;
}
.page-about__hot-game-name {
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-main-color, #FFF3E6);
}
.page-about__hot-game-rtp {
  font-size: 0.85em;
  color: #FFA53A;
}
.page-about__hot-game-desc {
  font-size: 0.8em;
  color: #aaa;
  display: none; /* Hidden on desktop by default as per specific instructions for game cards */
}

/* Winner Ticker (if present on homepage) */
.page-about__winner-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: #FFF3E6;
  padding: 10px 0;
  z-index: 100;
  text-align: center;
}

/* -------------------- About Page Specific CSS -------------------- */

:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --card-bg-color: #17191F;
  --bg-color: #0D0E12;
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange-color: #D96800;
}

.page-about {
  background-color: var(--bg-color);
  color: var(--text-main-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-about__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-about__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: var(--primary-color);
  text-align: center;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.page-about__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 25px;
  text-align: justify;
  color: #ccc;
}

.page-about__card {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-main-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__hero-section {
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-color);
}

.page-about__hero-image-container {
  width: 100%;
  max-width: 1200px; /* Constrain image width for better flow */
  margin-bottom: 30px;
}

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

.page-about__hero-content {
  z-index: 1;
  position: relative;
  padding: 0 15px;
}

.page-about__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-about__btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 13px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-about__dark-section {
  background-color: var(--card-bg-color);
}

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

.page-about__feature-item {
  text-align: center;
}

.page-about__feature-icon {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__feature-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-about__feature-description {
  font-size: 1em;
  color: #ccc;
}

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

.page-about__milestone-item {
  text-align: center;
}

.page-about__milestone-year {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: 800;
}

.page-about__milestone-description {
  font-size: 1em;
  color: #ccc;
}

.page-about__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 10px;
  max-width: 900px;
}

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

.page-about__advantage-item {
  text-align: center;
}

.page-about__advantage-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__advantage-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-about__advantage-description {
  font-size: 1em;
  color: #ccc;
  text-align: justify;
}

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

.page-about__value-item {
  text-align: center;
}

.page-about__value-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-about__value-description {
  font-size: 1em;
  color: #ccc;
}

.page-about__cta-section {
  text-align: center;
}

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

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
  color: var(--text-main-color);
}
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(var(--primary-color), 0.1);
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color);
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  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: var(--card-bg-color);
  border-radius: 0 0 10px 10px;
  font-size: 1em;
  color: #ccc;
}

.page-about__copyright-info {
  text-align: center;
  padding: 20px 0;
  background-color: #000;
  color: #888;
  font-size: 0.9em;
}

/* -------------------- Responsive Design (max-width: 768px) -------------------- */
@media (max-width: 768px) {
  .page-about__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-about__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-about__subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-about__text-block {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

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

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsiveness */
  .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__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 */
  }

  .page-about__feature-grid,
  .page-about__milestone-list,
  .page-about__advantages-grid,
  .page-about__values-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__feature-icon,
  .page-about__advantage-icon {
    max-width: 150px;
  }

  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-qtext {
    font-size: 1.1em;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
  }

  /* Homepage specific media queries for 768px */
  .page-about__promo-strip-track {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile for promo strip */
    gap: 10px;
  }
  .page-about__promo-card {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }
  .page-about__promo-card-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }
  .page-about__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .page-about__hot-game-name,
  .page-about__hot-game-rtp {
    font-size: 0.9em;
  }
  .page-about__hot-game-desc {
    display: none; /* Ensure hidden on mobile */
  }
  .page-about__hero-brand, .page-about__hero-jackpot {
    display: none; /* Hidden on mobile */
  }
  .page-about__winner-ticker {
    font-size: 0.8em;
    padding: 8px 0;
  }
}