/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#0a0a0a), so text should be light */
  background-color: #0a0a0a;
}

.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: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__block-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__text-light {
  color: #ffffff;
}

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

.page-about__mt-40 {
  margin-top: 40px;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background-color: #017439;
  color: #ffffff;
  padding-top: var(--header-offset, 120px);
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

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

/* Mission Vision Section */
.page-about__mission-vision-section,
.page-about__why-choose-us-section,
.page-about__tech-gaming-section,
.page-about__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-about__grid-layout--reversed {
  grid-template-columns: 1fr 1fr;
}

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

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

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__card-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Team History Section */
.page-about__team-history-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

/* Future Outlook Section */
.page-about__future-outlook-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439;
  color: #ffffff;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 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: #ffffff;
  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;
  color: #017439;
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__block-title {
    font-size: 1.6em;
  }
  .page-about__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-about__grid-layout--reversed {
    grid-template-columns: 1fr;
  }
  .page-about__image-wrapper {
    order: -1; /* Image first on mobile for reversed layout */
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 80px 0;
    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__block-title {
    font-size: 1.4em;
  }
  .page-about__mission-vision-section,
  .page-about__why-choose-us-section,
  .page-about__tech-gaming-section,
  .page-about__faq-section,
  .page-about__values-section,
  .page-about__team-history-section,
  .page-about__future-outlook-section {
    padding: 50px 0;
  }
  .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Mobile responsive images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__image-wrapper,
  .page-about__content-block,
  .page-about__values-grid,
  .page-about__value-card,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  /* Mobile responsive buttons */
  .page-about__btn-primary {
    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;
  }
}