/* style/about.css */

/* Base styles for the about page, assuming a dark body background from shared.css (var(--bg) = #08160F) */
.page-about {
  color: var(--text-main, #F2FFF6); /* Main text color for dark background */
  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__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden;
  background-color: var(--bg, #08160F); /* Fallback to dark green */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Min image size */
}

.page-about__hero-content {
  position: relative; /* Ensure content is above image in stacking context if needed, but not overlaying */
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over the image, but not covering text */
  background-color: var(--card-bg, #11271B); /* Dark card background */
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-about__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--glow, #57E38D);
  border: 2px solid var(--glow, #57E38D);
}

.page-about__btn-secondary:hover {
  background-color: var(--glow, #57E38D);
  color: var(--card-bg, #11271B);
  transform: translateY(-2px);
}

.page-about__btn-link {
  background-color: transparent;
  color: var(--glow, #57E38D);
  border: 1px solid var(--glow, #57E38D);
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-about__btn-link:hover {
  background-color: var(--glow, #57E38D);
  color: var(--card-bg, #11271B);
}

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-about__section-description {
  font-size: 1.1rem;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__intro-section,
.page-about__promotions-section,
.page-about__community-section,
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--bg, #08160F);
}

.page-about__dark-section {
  background-color: var(--deep-green, #0A4B2C); /* Darker green background */
}

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

.page-about__content-grid.reverse-order {
  grid-template-areas: "image text"; /* Default for desktop */
}

.page-about__content-grid.reverse-order .page-about__image-block {
  grid-area: image;
}

.page-about__content-grid.reverse-order .page-about__text-block {
  grid-area: text;
}


.page-about__text-block p {
  margin-bottom: 15px;
  color: var(--text-secondary, #A7D9B8);
}

.page-about__subsection-title {
  font-size: 1.5rem;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-about__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Min image size */
}

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

.page-about__feature-card,
.page-about__commitment-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 450px; /* Ensure cards have similar height */
}

.page-about__card-image,
.page-about__icon-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency in cards */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px; /* Min image size */
}

.page-about__icon-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background-color: var(--deep-green, #0A4B2C);
  padding: 15px;
  border-radius: 50%;
}


.page-about__card-title,
.page-about__item-title {
  font-size: 1.4rem;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card-text,
.page-about__item-text {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__cta-section {
  padding: 80px 0;
  background-color: var(--deep-green, #0A4B2C);
}

.page-about__text-center {
  text-align: center;
}

.page-about__faq-list {
  margin-top: 50px;
}

.page-about__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--divider, #1E3A2A);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-secondary, #A7D9B8);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-main, #F2FFF6);
  background-color: var(--card-bg, #11271B);
  user-select: none;
  list-style: none;
}

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--glow, #57E38D);
  margin-left: 15px;
}

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }
}

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

  .page-about__container {
    padding: 0 15px; /* Add padding to container for mobile */
  }

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

  .page-about__hero-image-wrapper {
    max-height: 400px;
  }

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

  .page-about__hero-content {
    margin-top: -40px; /* Reduce overlap for smaller screens */
    padding: 20px 15px;
    max-width: 95%;
  }

  .page-about__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-about__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
  }

  .page-about__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 20px;
  }

  .page-about__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-about__intro-section,
.page-about__promotions-section,
.page-about__community-section,
.page-about__faq-section {
    padding: 50px 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .page-about__content-grid.reverse-order {
    grid-template-areas: "text" "image"; /* Reverse order for mobile */
  }

  .page-about__text-block {
    order: 2;
  }
  .page-about__image-block {
    order: 1;
  }

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

  .page-about__feature-card,
.page-about__commitment-item {
    padding: 25px;
    min-height: auto; /* Allow height to adjust */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__card-image,
.page-about__icon-image {
    height: 180px; /* Adjust height for mobile cards */
    min-height: 180px;
    margin-bottom: 15px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__icon-image {
    width: 100px;
    height: 100px;
  }

  .page-about__card-title,
.page-about__item-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .page-about__card-text,
.page-about__item-text {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

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

  .page-about__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
  }

  /* Mobile container responsiveness */
.page-about__section,
.page-about__card,
.page-about__container,
.page-about__hero-image-wrapper,
.page-about__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Remove padding for sections to avoid double padding if container has it */
.page-about__games-section,
.page-about__cta-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Ensure no filter on images */
.page-about img {
  filter: none !important;
}

/* Fallback/Contrast fixes */
.page-about__dark-bg {
  color: #ffffff; /* Deep Green background, white text */
}
.page-about__light-bg {
  color: #333333; /* White background, dark text */
}
.page-about__medium-bg {
  color: #000000; /* Medium green, black text */
}
.page-about__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}