/* style/about.css */

/* Body background color is #08160F (dark), so main text color should be light (#F2FFF6) */
.page-about {
  color: #F2FFF6; /* Text Main */
  font-family: Arial, sans-serif;
  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;
  text-align: center;
}

.page-about__section:nth-of-type(even) {
  background-color: #0A4B2C; /* Deep Green for alternating sections */
}

.page-about__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 30px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #A7D9B8; /* Text Secondary */
}

.page-about__highlight {
  color: #F2C14E; /* Gold */
  font-weight: bold;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  background-color: #08160F;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  text-align: center;
  background: rgba(17, 39, 27, 0.8); /* Card B G with opacity */
  border-radius: 10px;
  margin-top: -100px; /* Overlap slightly for visual effect, but not over image content */
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.page-about__main-title {
  font-size: 3em;
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 100%;
}

.page-about__hero-description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
  margin: 10px;
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-about__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Brighter green for secondary text */
  border: 2px solid #2AD16F;
  margin: 10px;
}

.page-about__btn-secondary:hover {
  background: #2AD16F;
  color: #F2FFF6; /* Text Main */
  transform: translateY(-3px);
}

/* Image Content */
.page-about__image-content {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 40px auto;
  display: block;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

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

.page-about__value-card {
  background-color: #11271B; /* Card B G */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-about__card-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-about__card-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-about__game-item {
  background-color: #11271B; /* Card B G */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-about__game-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-about__game-title a {
  color: #F2C14E; /* Gold for game titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__game-title a:hover {
  color: #57E38D; /* Glow */
}

.page-about__game-description {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* Commitment Section */
.page-about__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__commitment-item {
  background-color: #11271B; /* Card B G */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-about__item-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-about__item-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-about__faq-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B; /* Card B G */
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

.page-about__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green */
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #2AD16F; /* Brighter green */
  margin-left: 15px;
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

.page-about__faq-item[open] .page-about__faq-question {
  background-color: #0A4B2C; /* Deep Green */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: -50px;
  }
  .page-about__main-title {
    font-size: 2.5em;
  }
  .page-about__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    min-height: 450px;
  }
  .page-about__hero-content {
    padding: 30px 15px;
    margin-top: 0; /* No overlap on mobile */
  }
  .page-about__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-about__paragraph {
    font-size: 0.95em;
  }
  .page-about__values-grid,
  .page-about__game-categories,
  .page-about__commitment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .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;
    margin: 10px 0;
  }
  .page-about__image-content {
    margin: 30px auto;
  }

  /* Mobile specific image adaptation */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__value-card,
  .page-about__game-item,
  .page-about__commitment-item,
  .page-about__hero-image-wrapper,
  .page-about__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__faq-question,
  .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__faq-toggle {
    margin-left: 10px;
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}