/* CSS file for About Us page */

/* General page styling */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

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

.page-about__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  border-radius: 0 0 15px 15px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  max-height: 500px; /* Adjust as needed */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  border-radius: 10px;
}

.page-about__hero-content {
  padding: 0 15px 30px;
  max-width: 900px;
  color: #1F2D3D; /* Text Main */
  text-align: center;
}

.page-about__main-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
}

.page-about__intro-text {
  font-size: 18px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

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

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

.page-about__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
  background: #F4F7FB;
  transform: translateY(-2px);
}

.page-about__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 25px;
  text-align: center;
  padding-top: 20px;
}

.page-about__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__paragraph {
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-about__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #1F2D3D; /* Text Main */
}

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

.page-about__image-block {
  margin: 30px 0;
  text-align: center;
}

.page-about__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* FAQ Section */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
  color: #1F2D3D; /* Text Main */
}
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: #F4F7FB;
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF;
  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: #F4F7FB;
  border-radius: 0 0 5px 5px;
  color: #1F2D3D; /* Text Main */
}

/* Responsive Design */
/* Mobile-first approach, then override for larger screens */

@media (max-width: 1023px) {
  /* This section is primarily for homepage elements that are not present here. */
  /* General responsive adjustments for .page-about elements */
  .page-about__hero-section {
    padding-bottom: 20px;
  }
  .page-about__main-title {
    font-size: clamp(24px, 5vw, 36px);
  }
  .page-about__intro-text {
    font-size: 16px;
  }
  .page-about__section-title {
    font-size: 28px;
  }
  .page-about__sub-title {
    font-size: 20px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100%;
    max-width: 300px; /* Limit max width for readability */
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
  /* This section is primarily for homepage elements that are not present here. */
  /* General desktop layout for .page-about elements */
  .page-about__hero-section {
    padding-top: 20px;
    padding-bottom: 50px;
  }
  .page-about__hero-image {
    max-height: 600px;
    margin-bottom: 30px;
  }
  .page-about__hero-content {
    padding: 0 30px;
  }
  .page-about__main-title {
    font-size: 48px;
  }
  .page-about__intro-text {
    font-size: 20px;
  }
  .page-about__section-title {
    font-size: 36px;
  }
  .page-about__sub-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 15px;
  }
  .page-about__hero-section {
    padding-top: 5px;
    margin-bottom: 20px;
  }
  .page-about__hero-image {
    margin-bottom: 15px;
    border-radius: 0;
  }
  .page-about__hero-content {
    padding: 0 10px 20px;
  }
  .page-about__main-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 10px;
  }
  .page-about__intro-text {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    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;
    font-size: 15px;
  }
  .page-about__section-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-top: 15px;
  }
  .page-about__sub-title {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-about__paragraph,
  .page-about__list li {
    font-size: 15px;
  }
  .page-about__image-block {
    margin: 20px 0;
  }
  .page-about__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }
  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; }

  /* Ensure all containers and elements do not cause horizontal scroll */
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* The following homepage specific CSS is included as per global instruction, 
   but will not affect this 'about' page as these classes are not present here. */
@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 specific modules as per global instructions. 
   These classes are not used on the 'about' page. */
@media (max-width:768px){
  .page-about__promo-strip { /* Example for promo strip, not used on about page */ }
  .page-about__hot-games { /* Example for hot games, not used on about page */ }
  .page-about__brand-intro { /* Example for brand intro, not used on about page */ }
  .page-about__winner-ticker { /* Example for winner ticker, not used on about page */ }
}

/* Body background color handling from shared.css */
/* Assuming --body-bg is a light color like #F4F7FB */
.page-about {
  color: #1F2D3D; /* Text Main */
}

.page-about__dark-section {
  background: #2F6BFF;
  color: #ffffff;
}

.page-about__light-bg {
  background: #F4F7FB;
  color: #1F2D3D;
}

.page-about__card {
  background: #FFFFFF; /* Card BG */
  color: #1F2D3D; /* Text Main */
  border: 1px solid #D6E2FF; /* Border */
}