/* style/about.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-about {
  color: #FFF3E6; /* Text Main */
  background-color: var(--background-color, #0D0E12); /* Fallback for body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Container for general content, centered and with max-width */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Flex container for content columns */
.page-about__container--flex {
  display: flex;
  gap: 40px;
  align-items: center;
}

/* Reverse order for content columns (image on right, text on left) */
.page-about__container--reverse {
  flex-direction: row-reverse;
}

/* Content column for text */
.page-about__content-column {
  flex: 1;
}

/* Image column */
.page-about__image-column {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Section styling */
.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: #FFF3E6; /* Text Main */
}

/* Dark background sections */
.page-about__dark-section {
  background-color: #17191F; /* Card B G */
  padding: 60px 0;
  color: #FFF3E6; /* Text Main */
}

/* Text blocks */
.page-about__text-block {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #FFF3E6; /* Text Main */
}

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0D0E12; /* Background */
  overflow: hidden; /* Ensure no overflow */
}

.page-about__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px; /* Space between image and content */
  box-shadow: 0 0 20px rgba(255, 140, 26, 0.4); /* Glow */
}

.page-about__hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 1;
  color: #FFF3E6; /* Text Main */
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFA53A; /* Auxiliary color for emphasis */
  text-shadow: 0 0 10px rgba(255, 165, 58, 0.6); /* Soft glow */
}

.page-about__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFF3E6; /* Text Main */
}

/* --- CTA Buttons (General) --- */
.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button itself respects max-width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button */
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4); /* Glow */
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #FFA53A; /* Auxiliary color */
}

.page-about__btn-secondary:hover {
  background-color: #FFA53A;
  color: #17191F; /* Card B G */
  border-color: #FFA53A;
  transform: translateY(-2px);
}

/* --- History Section --- */
.page-about__history-section {
  padding: 60px 0;
  background-color: #0D0E12; /* Background */
}

/* --- Values Section --- */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__value-card.page-about__card {
  background-color: #17191F; /* Card B G */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF3E6; /* Text Main */
}

.page-about__value-card.page-about__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(255, 140, 26, 0.3); /* Glow */
}

.page-about__card-icon {
  width: 100px; /* Ensure minimum size */
  height: 100px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFA53A; /* Auxiliary color */
}

.page-about__card-text {
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
}

/* --- Games and Rewards Section --- */
.page-about__games-rewards-section {
  padding: 60px 0;
  background-color: #0D0E12; /* Background */
}

/* --- Technology Section --- */
.page-about__technology-section {
  padding: 60px 0;
  background-color: #17191F; /* Card B G */
  color: #FFF3E6; /* Text Main */
}

.page-about__image--full-width {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 140, 26, 0.4); /* Glow */
}

/* --- Final CTA Section --- */
.page-about__cta-section {
  padding: 60px 0;
  background-color: #0D0E12; /* Background */
  text-align: center;
}

.page-about__cta-container {
  max-width: 800px;
}

/* --- FAQ Section --- */
.page-about__faq-section {
  padding: 60px 0;
  background-color: #17191F; /* Card B G */
  color: #FFF3E6; /* Text Main */
}

.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: #0D0E12; /* Background */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #FFF3E6; /* Text Main */
}

.page-about__faq-item[open] {
  box-shadow: 0 0 15px rgba(255, 140, 26, 0.3); /* Glow */
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: #FFA53A; /* Auxiliary color */
  position: relative;
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or '-' */
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
}

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

/* General image styling */
.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-about__container--flex {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__container--reverse {
    flex-direction: column; /* Revert to column for smaller screens */
  }

  .page-about__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-about__main-title {
    font-size: 2.2em;
  }

  .page-about__description {
    font-size: 1.1em;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding for mobile buttons container */
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__history-section,
  .page-about__values-section,
  .page-about__games-rewards-section,
  .page-about__technology-section,
  .page-about__cta-section,
  .page-about__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

  .page-about__section-title {
    font-size: 1.8em;
  }

  .page-about__text-block {
    font-size: 1em;
  }

  .page-about__value-card.page-about__card {
    padding: 25px;
  }

  .page-about__card-title {
    font-size: 1.3em;
  }

  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }

  .page-about__section-title {
    font-size: 1.6em;
  }

  .page-about__description {
    font-size: 0.95em;
  }
}