/* style/about.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --dark-background: #0a0a0a;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --button-register-color: #C30808;
  --button-login-color: #C30808;
  --button-text-color: #FFFF00;
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--light-text-color); /* Body background is dark, so use light text */
  background-color: var(--dark-background);
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: var(--primary-color);
  color: var(--light-text-color);
  overflow: hidden;
  min-height: 600px;
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  opacity: 0.9;
}

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

.page-about__btn-primary {
  background-color: var(--button-register-color);
  color: var(--button-text-color);
  border: 2px solid var(--button-register-color);
}

.page-about__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
  color: var(--secondary-color);
}

.page-about__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
}

.page-about__intro-section,
.page-about__games-section,
.page-about__safety-section,
.page-about__cta-section {
  padding: 80px 0;
  background-color: var(--dark-background);
  color: var(--light-text-color);
}

.page-about__vision-mission-section,
.page-about__advantages-section,
.page-about__faq-section {
  padding: 80px 0;
  background-color: rgba(1, 116, 57, 0.1); /* Slightly lighter green for contrast */
  color: var(--light-text-color);
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--light-text-color);
}

.page-about__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

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

.page-about__grid-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  text-align: center;
}

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

.page-about__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--light-text-color);
}

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

.page-about__game-title a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-about__game-title a:hover {
  text-decoration: underline;
}

.page-about__game-description {
  font-size: 1em;
  opacity: 0.8;
}

.page-about__advantage-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-about__list-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1.1em;
  color: var(--light-text-color);
  display: flex;
  align-items: flex-start;
}

.page-about__list-item::before {
  content: '✓';
  color: var(--button-text-color);
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--light-text-color);
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

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

.page-about__faq-answer a {
  color: var(--button-text-color);
  text-decoration: none;
}

.page-about__faq-answer a:hover {
  text-decoration: underline;
}

.page-about__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--primary-color);
  color: var(--light-text-color);
  position: relative;
  overflow: hidden;
}

.page-about__cta-section .page-about__paragraph {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-about__cta-section .page-about__image-content {
  position: absolute;
  bottom: -20px;
  right: -20px;
  opacity: 0.2;
  z-index: 0;
  max-width: 400px;
  height: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }

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

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

  .page-about__hero-section {
    padding: 60px 15px;
    min-height: 400px;
  }

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

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

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

  .page-about__paragraph {
    font-size: 1em;
  }

  .page-about__intro-section,
  .page-about__vision-mission-section,
  .page-about__games-section,
  .page-about__advantages-section,
  .page-about__safety-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 60px 0;
  }

  .page-about__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-about__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__game-card,
  .page-about__grid-item,
  .page-about__faq-item {
    padding: 20px;
  }

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

  .page-about__list-item {
    font-size: 1em;
    padding: 12px 15px;
  }

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

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    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__hero-button,
  .page-about__download-button,
  .page-about__final-cta-button {
    margin-top: 20px;
  }

  .page-about__cta-section .page-about__image-content {
    display: none; /* Hide decorative image on mobile */
  }

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

  /* All containers that hold images/videos must also be responsive */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__intro-section,
  .page-about__vision-mission-section,
  .page-about__games-section,
  .page-about__advantages-section,
  .page-about__safety-section,
  .page-about__faq-section,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}

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

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