/* Shared body padding-top is handled by shared.css */
:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --text-main: #1F2D3D;
  --text-custom-black: #000000;
  --bg-card: #FFFFFF;
  --bg-page: #F4F7FB;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

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

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

.page-about__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
}

.page-about__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-about__description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

.page-about__hero-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

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

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg p,
.page-about__dark-bg li,
.page-about__dark-bg h3 {
  color: #ffffff;
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg p,
.page-about__light-bg li,
.page-about__light-bg h3 {
  color: var(--text-main);
}

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

.page-about__content-flex--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
}

.page-about__sub-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-about__image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__feature-list,
.page-about__security-list,
.page-about__responsibility-list,
.page-about__steps-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-about__feature-list li,
.page-about__security-list li,
.page-about__responsibility-list li,
.page-about__steps-list li {
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.05em;
  line-height: 1.5;
  color: inherit;
  position: relative;
  padding-left: 40px;
}

.page-about__feature-list li::before,
.page-about__security-list li::before,
.page-about__responsibility-list li::before,
.page-about__steps-list li::before {
  content: '✓';
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 15px;
  top: 15px;
}

.page-about__steps-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  background: var(--secondary-color);
  color: #ffffff;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  left: 10px;
  top: 13px;
}

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

.page-about__card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  color: var(--text-main);
}

.page-about__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-about__dark-bg {
  background: var(--primary-color);
  color: #ffffff;
}

.page-about__dark-bg .page-about__card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.page-about__dark-bg .page-about__card-title {
  color: var(--secondary-color);
}

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

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  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: var(--btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #5A9BFF 0%, #3F7BFF 100%);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-about__btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.2);
}

/* FAQ Styles */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--bg-card);
}
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;
  color: var(--text-main);
}
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;
}
.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: var(--text-main);
}

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

.page-about__copyright-info {
  padding: 20px 0;
  text-align: center;
  font-size: 0.9em;
  color: var(--text-main);
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

/* GLOBAL MANDATORY CSS SNIPPETS (even if not directly used on this page) */
@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) {
  /* General mobile adaptations for images and containers */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__container,
  .page-about__section,
  .page-about__card,
  .page-about__content-flex {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons mobile adaptation */
  .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__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container,
  .page-about__contact-methods {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

  /* Page specific mobile styles */
  .page-about__hero-section {
    padding-top: 20px;
    padding-bottom: 30px;
  }
  .page-about__main-title {
    font-size: 2em;
  }
  .page-about__description {
    font-size: 1em;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__content-flex {
    flex-direction: column;
    gap: 30px;
  }
  .page-about__content-flex--reverse {
    flex-direction: column;
  }
  .page-about__image {
    max-width: 100%;
  }
  .page-about__benefits-grid {
    grid-template-columns: 1fr;
  }
  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 promo/hot-games/brand-intro/winner-ticker if they were on about page */
  .page-about__promo-strip-track { /* Example for promo-strip */
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }
  .page-about__hot-games-grid { /* Example for hot-games */
    grid-template-columns: 1fr;
  }
  /* .page-about__brand-intro { display: block; } */ /* If it was hidden on desktop */
  /* .page-about__winner-ticker { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 999; } */
  /* body { padding-bottom: 60px; } */ /* Example for winner-ticker offset */
}

/* Game Trial Specific CSS (even if not used on this page, as per global instruction) */
.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;
}