/* style/about.css */

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f9fa; /* Light background for the page */
}

.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: var(--header-offset, 120px); /* Ensure space for fixed header */
  color: #ffffff;
  background-color: #0A1931; /* Main brand color for hero */
  overflow: hidden;
}

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

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Accent color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-about__btn-primary {
  display: inline-block;
  background-color: #FFD700; /* Accent color for primary button */
  color: #0A1931;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-about__btn-primary:hover {
  background-color: #e0b800;
  color: #000000;
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-about__section {
  padding: 60px 20px;
}

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

.page-about__heading {
  font-size: 2.5em;
  color: #0A1931;
  text-align: center;
  margin-bottom: 40px;
}

.page-about__text {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

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

.page-about__dark-bg .page-about__heading {
  color: #FFD700;
}

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

.page-about__value-item,
.page-about__feature-item,
.page-about__game-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333333;
}

.page-about__dark-bg .page-about__value-item,
.page-about__dark-bg .page-about__feature-item,
.page-about__dark-bg .page-about__game-item {
  background-color: rgba(255, 255, 255, 0.08);
  color: #f0f0f0;
}

.page-about__value-title,
.page-about__feature-title,
.page-about__game-title {
  font-size: 1.5em;
  color: #0A1931;
  margin-bottom: 15px;
}

.page-about__dark-bg .page-about__value-title,
.page-about__dark-bg .page-about__feature-title,
.page-about__dark-bg .page-about__game-title {
  color: #FFD700;
}

.page-about__value-description,
.page-about__feature-description,
.page-about__game-description {
  font-size: 1em;
}

.page-about__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #FFD700;
  padding: 10px 20px;
  border: 2px solid #FFD700;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A1931;
}

.page-about__contact-methods {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 40px;
  margin-bottom: 40px;
  text-align: center;
  font-size: 1.1em;
}

.page-about__contact-item span {
  font-weight: bold;
  color: #FFD700;
}

.page-about__faq-section {
  padding: 60px 20px;
  background-color: #0A1931;
  color: #ffffff;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

.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;
}

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

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

.page-about__cta-bottom {
  text-align: center;
  background-color: #f0f0f0;
  padding: 60px 20px;
}

.page-about__cta-bottom .page-about__heading {
  color: #0A1931;
}

.page-about__cta-bottom .page-about__text {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-about__cta-button {
  margin-top: 30px;
}

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

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__heading {
    font-size: 1.8em;
  }
  .page-about__text {
    font-size: 1em;
  }
  .page-about__value-title,
  .page-about__feature-title,
  .page-about__game-title {
    font-size: 1.3em;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    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;
    margin-bottom: 10px; /* Add some space between stacked buttons */
  }
  .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;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !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__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__heading {
    font-size: 1.5em;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    font-size: 0.9em;
  }
}