/* style/about.css */

/* Base styles for the about page */
.page-about {
  color: #ffffff; /* Body background is dark, so text is light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Rely on body background */
}

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0a0a0a; /* Ensure dark background for hero */
}

.page-about__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff;
}

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

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

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

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

.page-about__btn-primary:hover {
  background-color: #1a8cc7;
  border-color: #1a8cc7;
}

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

.page-about__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__btn-link {
  background-color: transparent;
  color: #26A9E0;
  border: 1px solid #26A9E0;
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-about__btn-link:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Section specific styles */
.page-about__introduction-section,
.page-about__core-values-section,
.page-about__game-offerings-section,
.page-about__social-responsibility-section,
.page-about__contact-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Light background for sections on dark body */
  color: #ffffff;
}

.page-about__vision-mission-section,
.page-about__security-tech-section,
.page-about__support-promotions-section,
.page-about__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background for sections on dark body */
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-about__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-about__text-block {
  margin-bottom: 20px;
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #f0f0f0;
}

.page-about__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-about__introduction-section .page-about__container {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__introduction-section .page-about__text-block {
  flex: 2;
}

.page-about__introduction-section .page-about__image-content {
  flex: 1;
  max-width: 400px;
}

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

.page-about__grid-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__grid-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__grid-item p {
  color: #f0f0f0;
}

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

.page-about__value-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__value-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-about__value-item p {
  font-size: 0.95em;
  color: #f0f0f0;
}

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

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

.page-about__content-flex .page-about__image-content {
  flex: 1;
}

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

.page-about__game-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* FAQ styles */
.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 40px;
}

.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-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
  color: #26A9E0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-about__faq-item summary::-webkit-details-marker { /* For Webkit browsers */
  display: none;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

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

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

.page-about__faq-answer {
  padding: 15px 25px 25px;
  background-color: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #f0f0f0;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
}

.page-about__copyright {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9em;
  color: #cccccc;
  background-color: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-about__introduction-section .page-about__container,
  .page-about__content-flex {
    flex-direction: column;
    text-align: center;
  }
  .page-about__introduction-section .page-about__image-content {
    max-width: 600px;
    margin-top: 30px;
  }
  .page-about__content-flex--reverse {
    flex-direction: column;
  }
  .page-about__content-flex .page-about__image-content {
    margin-top: 30px;
  }
  .page-about__game-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles header offset */
  }

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

  .page-about__hero-description {
    font-size: 1em;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link {
    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__introduction-section,
  .page-about__vision-mission-section,
  .page-about__core-values-section,
  .page-about__security-tech-section,
  .page-about__game-offerings-section,
  .page-about__support-promotions-section,
  .page-about__social-responsibility-section,
  .page-about__faq-section,
  .page-about__contact-section {
    padding: 50px 0;
  }

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

  /* Image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video responsiveness (if any, though not in this specific content) */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-about__faq-answer {
    padding: 10px 20px 20px;
  }
}