/* -------------------------------------------------------------------------- */
/*                            Base & Layout Styles                            */
/* -------------------------------------------------------------------------- */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background: var(--secondary-color); /* Assumes --secondary-color is #FFFFFF */
}

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

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

.page-about__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-about__section-title--light {
  color: #ffffff;
}

.page-about__dark-section {
  background: #26A9E0;
  color: #ffffff;
}

/* -------------------------------------------------------------------------- */
/*                                Hero Section                                */
/* -------------------------------------------------------------------------- */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background: linear-gradient(135deg, #26A9E0, #1a7bbd);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 20px 15px;
  margin-top: -150px; /* Adjust to overlap image slightly for visual effect */
}

.page-about__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

.page-about__hero-cta {
  padding: 15px 30px;
  font-size: 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* -------------------------------------------------------------------------- */
/*                           Mission & Vision Section                         */
/* -------------------------------------------------------------------------- */
.page-about__mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #333333;
}

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

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

.page-about__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-about__card-text {
  font-size: 16px;
  line-height: 1.7;
  flex-grow: 1;
}

/* -------------------------------------------------------------------------- */
/*                             Core Values Section                            */
/* -------------------------------------------------------------------------- */
.page-about__values-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-about__value-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: background-color 0.3s ease;
  height: 100%;
}

.page-about__value-item:hover {
  background: rgba(255, 255, 255, 0.25);
}

.page-about__value-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-about__value-description {
  font-size: 16px;
  color: #f0f0f0;
}

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

.page-about__feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-icon {
  width: 100%;
  height: auto;
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-about__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-about__feature-description {
  font-size: 16px;
  line-height: 1.7;
}

/* -------------------------------------------------------------------------- */
/*                             Team Section                                   */
/* -------------------------------------------------------------------------- */
.page-about__team-intro-text {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

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

.page-about__team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
}

.page-about__member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid #26A9E0;
}

.page-about__member-name {
  font-size: 20px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 5px;
}

.page-about__member-role {
  font-size: 16px;
  color: #666;
}

/* -------------------------------------------------------------------------- */
/*                              FAQ Section                                   */
/* -------------------------------------------------------------------------- */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
}

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: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

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

details.page-about__faq-item .page-about__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
}

.page-about__faq-answer p {
  margin-top: 0;
  margin-bottom: 15px;
}

.page-about__faq-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* -------------------------------------------------------------------------- */
/*                           Call To Action Section                           */
/* -------------------------------------------------------------------------- */
.page-about__cta-content {
  text-align: center;
}

.page-about__cta-text {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-about__cta-button {
  padding: 15px 35px;
  font-size: 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/*                                 Buttons                                    */
/* -------------------------------------------------------------------------- */
.page-about__btn-primary {
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-about__btn-secondary:hover {
  background: #f0f8ff;
  color: #1a7bbd;
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/*                            Responsive Design                               */
/* -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .page-about__home-hero { /* This section is not present in about.html, but kept for strict compliance */
    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 { /* This section is not present in about.html, but kept for strict compliance */
    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 {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-about__hero-content {
    margin-top: -80px; /* Less overlap on mobile */
    padding-bottom: 20px;
  }

  .page-about__main-title {
    font-size: 32px;
  }

  .page-about__intro-text {
    font-size: 16px;
  }

  .page-about__hero-cta {
    font-size: 18px;
    padding: 12px 25px;
  }

  .page-about__mission-vision-grid,
  .page-about__core-values .page-about__values-list,
  .page-about__features-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__card {
    padding: 25px;
  }

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

  .page-about__value-item {
    padding: 20px;
  }

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

  .page-about__team-intro-text {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  .page-about__cta-text {
    font-size: 18px;
    margin-bottom: 30px;
  }

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

  .page-about__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 18px;
  }

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

  .page-about__hero-image-wrapper,
  .page-about__card,
  .page-about__value-item,
  .page-about__feature-item,
  .page-about__team-member,
  .page-about__faq-item,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* No promo-strip, hot-games, brand-intro, winner-ticker for about page, but for compliance if they were here: */
  /* .page-about__promo-strip-track { grid-template-columns: repeat(4, 1fr); overflow-x: hidden; } */
  /* .page-about__hot-games-grid { grid-template-columns: repeat(2, 1fr); } */
  /* .page-about__winner-ticker { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 999; } */
  /* body { padding-bottom: 50px; } */
}

/* Common utility for hiding elements */
.is-hidden {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}