:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --bg-color: #0A0A0A;
  --card-bg-color: #111111;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Text color for dark body background */
  background-color: var(--bg-color);
  line-height: 1.6;
}

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

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

.page-about__section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: 24px;
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about p {
  margin-bottom: 15px;
}

.page-about ul {
  list-style: disc inside;
  margin-bottom: 15px;
  padding-left: 20px;
}

.page-about li {
  margin-bottom: 8px;
}

.page-about strong {
  color: var(--secondary-color);
}

.page-about a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about a:hover {
  color: var(--primary-color);
}

.page-about__card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color);
}

/* HERO Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--bg-color);
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-about__hero-content h1 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-about__hero-content p {
  font-size: 18px;
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: var(--text-main-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-about__cta-button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.page-about__cta-button--small {
  padding: 10px 25px;
  font-size: 16px;
  margin-top: 15px;
}

/* Content Rows with Image and Text */
.page-about__content-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 40px;
  gap: 30px;
}

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

.page-about__content-text,
.page-about__content-image {
  flex: 1;
  min-width: 300px;
}

.page-about__content-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__image-full-width img,
.page-about__image-center img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin: 40px auto;
}

.page-about__image-center {
  text-align: center;
}

/* History Section */
.page-about__history-section {
  background-color: var(--bg-color);
}

.page-about__timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 50px;
  padding-left: 20px;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: var(--border-color);
}

.page-about__timeline-item {
  margin-bottom: 40px;
  position: relative;
  padding-left: 30px;
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 5px;
  width: 18px;
  height: 18px;
  background-color: var(--primary-color);
  border-radius: 50%;
  border: 2px solid var(--border-color);
  z-index: 1;
}

.page-about__timeline-year {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

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

.page-about__feature-title {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-about__game-title {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__game-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color);
  font-weight: bold;
}

/* FAQ Section */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
}

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;
  color: var(--text-main-color);
}

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: rgba(var(--primary-color), 0.1);
}

.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--secondary-color);
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  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: rgba(var(--card-bg-color), 0.8);
  border-radius: 0 0 5px 5px;
  color: var(--text-main-color);
}

/* Conclusion Section */
.page-about__conclusion-section {
  text-align: center;
  background-color: var(--bg-color);
}

.page-about__text-center {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 30px;
  }
  .page-about__sub-title {
    font-size: 22px;
  }
  .page-about__hero-content h1 {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__container {
    padding: 0 15px;
  }

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

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

  .page-about__sub-title {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
  }

  .page-about__hero-content p {
    font-size: 16px;
    margin-bottom: 25px;
  }

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

  .page-about__cta-button--small {
    padding: 10px 20px;
    font-size: 14px;
  }

  .page-about__content-row {
    flex-direction: column;
    gap: 20px;
  }

  .page-about__content-text,
  .page-about__content-image {
    min-width: unset;
    width: 100%;
  }

  .page-about__content-image img {
    border-radius: 4px;
  }

  .page-about__image-full-width img,
  .page-about__image-center img {
    margin: 30px auto;
    border-radius: 4px;
  }

  .page-about__timeline {
    padding-left: 15px;
    margin-top: 30px;
  }

  .page-about__timeline-item {
    margin-bottom: 30px;
    padding-left: 25px;
  }

  .page-about__timeline-item::before {
    left: -7px;
    top: 3px;
    width: 16px;
    height: 16px;
  }

  .page-about__timeline-year {
    font-size: 18px;
  }

  .page-about__feature-grid,
  .page-about__game-grid,
  .page-about__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .page-about__feature-title,
  .page-about__game-title,
  .page-about__promo-title {
    font-size: 18px;
  }

  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-qtext {
    font-size: 15px;
  }
  .page-about__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
  }

  /* Ensure all images are responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .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;
  }
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-about__cta-buttons {
    display: flex;
    flex-direction: column; /* Or flex-wrap: wrap */
  }
}