/* Base styles for page-about */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

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

.page-about__section--dark {
  background-color: #0A4B2C; /* Deep Green for contrast sections */
}

.page-about__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Gold for titles */
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-about p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #F2FFF6;
}

.page-about strong {
  color: #F2C14E;
}

.page-about__value-list,
.page-about__game-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__value-list li,
.page-about__game-list li {
  background: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 16px;
  color: #F2FFF6;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-about__value-list li::before,
.page-about__game-list li::before {
  content: '✓';
  color: #57E38D; /* Glow */
  font-weight: bold;
  font-size: 1.2em;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: 675px;
  object-fit: cover;
  position: relative;
  z-index: 1;
  display: block;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  margin-top: -100px; /* Pull content up slightly over the image, but not overlapping text */
  padding: 0 15px;
  max-width: 900px;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem); /* Use clamp for H1 */
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px #57E38D;
}

.page-about__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Gold */
  border: 2px solid #F2C14E; /* Gold */
  margin-left: 20px;
}

.page-about__btn-secondary:hover {
  background: #F2C14E;
  color: #0A4B2C; /* Deep Green */
  box-shadow: 0 0 15px #F2C14E;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Grid Layouts */
.page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

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

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

.page-about__text-block--full {
  grid-column: 1 / -1;
}

/* Feature Cards */
.page-about__feature-card {
  background: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-about__feature-card .page-about__card-title {
  font-size: 22px;
  font-weight: 600;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-about__feature-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__feature-card .page-about__btn-secondary {
  margin-top: auto; /* Push button to bottom */
  margin-left: 0;
  align-self: flex-start;
}

/* CTA Section */
.page-about__cta-section {
  text-align: center;
  background-color: #0A4B2C; /* Deep Green */
}

.page-about__cta-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #A7D9B8; /* Text Secondary */
}

.page-about__cta-block {
  margin-top: 40px;
  text-align: center;
}

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

details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F2FFF6; /* Text Main */
  font-size: 18px;
  font-weight: 600;
}

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

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

.page-about__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6;
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #57E38D; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: #0A4B2C; /* Deep Green */
  border-radius: 0 0 8px 8px;
  color: #A7D9B8; /* Text Secondary */
}

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

/* --- Responsive Styles --- */

/* General Mobile Adaptations */
@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__container,
  .page-about__section,
  .page-about__hero-section,
  .page-about__hero-content,
  .page-about__grid-two-columns,
  .page-about__features-grid,
  .page-about__feature-card,
  .page-about__cta-buttons,
  .page-about__cta-section,
  .page-about__faq-section,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__section {
    padding: 40px 0;
  }

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

  .page-about__sub-title {
    font-size: 24px;
  }

  .page-about p {
    font-size: 16px;
  }

  .page-about__value-list li,
  .page-about__game-list li {
    font-size: 15px;
    padding: 12px 15px;
  }

  /* Hero Section */
  .page-about__hero-section {
    padding-top: 10px; /* Still small top padding */
    padding-bottom: 40px;
  }

  .page-about__hero-image {
    height: 300px;
    object-fit: cover !important; /* Ensure image fits */
  }

  .page-about__hero-content {
    margin-top: -60px;
    padding: 0 15px;
  }

  .page-about__main-title {
    font-size: 28px; /* Specific font size for mobile H1 */
  }

  .page-about__hero-description {
    font-size: 17px;
  }

  /* Buttons */
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 15px;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Grid Layouts */
  .page-about__grid-two-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* Feature Cards */
  .page-about__feature-card {
    padding: 25px;
  }

  .page-about__feature-card .page-about__card-title {
    font-size: 20px;
  }

  /* FAQ Section */
  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }

  .page-about__faq-qtext {
    font-size: 16px;
  }

  .page-about__faq-toggle {
    font-size: 24px;
    width: 24px;
  }

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

  /* Mandatory @media rules for specific homepage components, even if not directly on this page */
  /* Banner __hero-section (general image rules cover this, but explicit for 849px object-fit:contain) */
  .page-about__hero-image {
    object-fit: contain;
  }

  /* Three-link buttons __access-links (example placeholder) */
  .page-about__access-links {
    flex-direction: column;
    gap: 10px;
  }

  /* Five-entry __category-lobby (example placeholder) */
  .page-about__category-lobby__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-about__category-card-link img {
    aspect-ratio: 1/1;
    width: 100%;
    object-fit: contain;
    border: none;
    box-shadow: none;
  }
  .page-about__category-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
  }
  .page-about__category-card-link span {
    display: none; /* Hide text outside image for this specific rule */
  }

  /* Blog slider __blog-slider (example placeholder) */
  .page-about__blog-slider-track {
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    display: flex;
    gap: 16px;
    padding-bottom: 10px;
  }
  .page-about__post-item {
    flex: 0 0 calc(100% - 30px); /* Show one card with some padding */
    scroll-snap-align: start;
  }
  .page-about__blog-slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
  .page-about__blog-slider-prev, .page-about__blog-slider-next {
    background: #11A84E;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 5px;
  }
}

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

/* Mobile image force-adapt */
@media (max-width: 768px) {
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }
}

/* Mobile button force-adapt */
@media (max-width: 768px) {
  .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;
  }
  .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;
  }
  .page-about__cta-buttons {
    display: flex;
    flex-direction: column; 
  }
}