/* style/about.css */

/* Base styles and body background adaptation */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #0a0a0a, so text is light */
  background-color: transparent; /* Rely on body background */
}

.page-about__dark-bg {
  background-color: #0a0a0a; /* Dark background from body */
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast sections */
  color: #ffffff;
}

.page-about__text-contrast-fix {
  color: #ffffff; /* Ensure white text on dark backgrounds */
}

/* Sections */
.page-about__section {
  padding: 60px 0;
  text-align: center;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-about__hero-content {
  position: relative;
  z-index: 10;
  padding: 30px 20px;
  max-width: 900px;
  margin-top: 20px; /* Space below image */
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main title */
}

.page-about__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

/* General Titles */
.page-about__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  margin-bottom: 30px;
  color: #26A9E0;
  font-weight: 600;
}

.page-about__sub-title {
  font-size: clamp(1.4em, 2.8vw, 2.2em);
  margin-top: 40px;
  margin-bottom: 20px;
  color: #26A9E0;
  font-weight: 500;
}

/* Text Blocks */
.page-about__text-block {
  font-size: 1em;
  margin-bottom: 15px;
  color: #ffffff;
}

/* Images in Content */
.page-about__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

/* Lists */
.page-about__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__list-item {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 5px;
  border-left: 4px solid #26A9E0;
  color: #ffffff;
}

.page-about__game-types .page-about__list-item {
  text-align: center;
}

/* Buttons */
.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 10px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Grid Layout for content */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .page-about__content-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .page-about__content-grid .page-about__grid-item:first-child {
    order: 0; /* Default order */
  }
  .page-about__content-grid .page-about__grid-item:last-child {
    order: 1; /* Default order */
  }
  .page-about__content-grid.page-about__team-grid .page-about__grid-item:first-child {
    order: 1; /* Image on right for team section */
  }
  .page-about__content-grid.page-about__team-grid .page-about__grid-item:last-child {
    order: 0; /* Text on left for team section */
  }
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  background-color: rgba(38, 169, 224, 0.2); /* Light brand color for summary */
  color: #ffffff;
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 0 20px 20px;
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }

  .page-about__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }

  .page-about__hero-content {
    padding: 20px 15px;
    margin-top: 10px;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-about__section-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
  }

  .page-about__sub-title {
    font-size: clamp(1.2em, 5vw, 1.8em);
  }

  .page-about__text-block, .page-about__list-item, .page-about__faq-answer {
    font-size: 15px;
  }

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

  .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;
    margin: 5px 0 !important;
  }

  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }

  /* Images and Video responsiveness */
  .page-about img,
  .page-about video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all image/video containers also adapt */
  .page-about__hero-image-wrapper,
  .page-about__grid-item,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__content-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .page-about__content-grid .page-about__grid-item:first-child,
  .page-about__content-grid .page-about__grid-item:last-child {
    order: unset; /* Reset order for mobile */
  }

  .page-about__faq-question {
    font-size: 1em;
  }

  .page-about__faq-answer {
    padding: 0 15px 15px;
  }
}

/* Image filter restriction */
.page-about img {
  filter: none; /* Prohibit CSS filters for images */
}

/* Content area image CSS size lower bound (based on selector scope) */
.page-about__image-content,
.page-about__hero-image {
  min-width: 200px;
  min-height: 200px;
}

@media (max-width: 768px) {
  .page-about__image-content,
  .page-about__hero-image {
    min-width: unset; /* Allow smaller on mobile if max-width: 100% applies */
    min-height: unset;
  }
}