/* style/about.css */

/* Base styles for the about page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Inherited from shared.css */
}

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

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

.page-about__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
  background: linear-gradient(135deg, #017439, #004d26);
}

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

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: grayscale(50%);
}

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-about__hero-title {
  font-size: 3.5em;
  color: #FFFF00; /* Custom color for register/login font */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-about__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-about__btn-primary {
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom color for register font */
  border: 2px solid #C30808;
}

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

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom color for login font */
  border: 2px solid #C30808; /* Custom color for login */
}

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

/* Mission Section */
.page-about__mission-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__mission-section .page-about__section-title {
  color: #ffffff;
  text-align: left;
  margin-bottom: 20px;
}

.page-about__text-content p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-about__text-content p strong {
  color: #FFFF00;
}

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

.page-about__image-content {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for this section */
  color: #333333; /* Dark text for light background */
}

.page-about__values-section .page-about__section-title,
.page-about__values-section .page-about__section-description {
  color: #333333;
}

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

.page-about__card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-about__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__card-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

.page-about__card p {
  font-size: 1em;
  color: #555555;
}

/* Games Section */
.page-about__games-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #f0f0f0;
}

.page-about__games-section .page-about__section-title,
.page-about__games-section .page-about__section-description {
  color: #ffffff;
}

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

.page-about__game-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-about__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-about__game-title {
  font-size: 1.5em;
  margin: 20px 15px 10px;
  color: #FFFF00; /* Highlight game titles */
}

.page-about__game-title a {
  color: #FFFF00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__game-title a:hover {
  color: #ffffff;
}

.page-about__game-card p {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-about__cta-bottom {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Customer Service Section */
.page-about__customer-service-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-about__customer-service-section .page-about__section-title,
.page-about__customer-service-section .page-about__section-description {
  color: #ffffff;
}

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

.page-about__service-cards .page-about__card {
  background-color: #017439;
  color: #ffffff;
}

.page-about__service-cards .page-about__card-title {
  color: #FFFF00;
}

.page-about__service-cards .page-about__card p {
  color: #f0f0f0;
}

.page-about__text-link {
  color: #FFFF00;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  display: inline-block;
  transition: color 0.3s ease;
}

.page-about__text-link:hover {
  color: #ffffff;
}

/* Future Section */
.page-about__future-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #f0f0f0;
}

.page-about__future-section .page-about__section-title,
.page-about__future-section .page-about__section-description {
  color: #ffffff;
}

.page-about__future-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-about__future-section .page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-about__future-section .page-about__image-wrapper {
  text-align: center;
}

/* Call to Action Section */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(90deg, #017439, #004d26);
  color: #ffffff;
}

.page-about__cta-title {
  font-size: 2.8em;
  color: #FFFF00;
  margin-bottom: 20px;
}

.page-about__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-about__faq-section .page-about__section-title {
  color: #ffffff;
}

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

.page-about__faq-item {
  background-color: #0d0d0d;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  color: #FFFF00;
  cursor: pointer;
  background-color: #017439;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #004d26;
}

.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: #cccccc;
  background-color: #0d0d0d;
}

.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-bottom: 15px;
  font-size: 1em;
}

.page-about__faq-answer p strong {
  color: #FFFF00;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-about__content-grid,
  .page-about__future-content {
    grid-template-columns: 1fr 1fr;
  }

  .page-about__mission-section .page-about__text-content,
  .page-about__future-section .page-about__image-wrapper {
    order: 0;
  }

  .page-about__mission-section .page-about__image-wrapper,
  .page-about__future-section .page-about__text-block {
    order: 1;
  }

  .page-about__mission-section .page-about__section-title {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

  .page-about__section-description {
    font-size: 0.95em;
  }

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

  .page-about__hero-buttons,
  .page-about__cta-bottom,
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__content-grid,
  .page-about__future-content {
    grid-template-columns: 1fr;
  }

  .page-about__mission-section .page-about__section-title {
    text-align: center;
  }

  .page-about__image-content {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-about__image-wrapper,
  .page-about__game-card,
  .page-about__card,
  .page-about__service-cards,
  .page-about__value-cards,
  .page-about__game-categories,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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

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

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

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

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