/* style/about.css */
/* Base styles and container for the about page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color from palette */
  background-color: var(--background, #08160F); /* Default background from palette */
}

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-secondary, #A7D9B8);
  text-align: justify;
}

/* Hero Section */
.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, more bottom padding */
  background-color: var(--deep-green, #0A4B2C); /* Use a darker green for hero section background */
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and content */
}

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

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  z-index: 1; /* Ensure content is above any potential background effects */
}

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

.page-about__description {
  font-size: 1.2em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

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

.page-about__btn-secondary:hover {
  background: var(--glow, #57E38D);
  color: #08160F; /* Dark text on light hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Introduction Section */
.page-about__introduction-section {
  padding: 80px 0;
  background-color: var(--card-bg, #11271B); /* Darker background for contrast */
}

.page-about__introduction-section .page-about__section-title {
  color: var(--text-main, #F2FFF6);
}

.page-about__introduction-section .page-about__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
}

.page-about__two-column-layout {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__reverse-layout {
  flex-direction: row-reverse;
}

.page-about__content-block,
.page-about__image-block {
  flex: 1;
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.page-about__feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-about__feature-item {
  margin-bottom: 30px;
}

.page-about__feature-title {
  font-size: 1.5em;
  color: var(--glow, #57E38D);
  margin-bottom: 10px;
}

.page-about__feature-description {
  color: var(--text-secondary, #A7D9B8);
}

/* Our Games Section */
.page-about__our-games-section {
  padding: 80px 0;
  background-color: var(--card-bg, #11271B);
}

.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: var(--deep-green, #0A4B2C);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-about__game-title {
  font-size: 1.6em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-about__game-description {
  font-size: 0.95em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-about__game-card .page-about__btn-primary {
  margin-top: auto; /* Push button to bottom */
  width: calc(100% - 30px); /* Adjust width for padding */
  margin-left: 15px;
  margin-right: 15px;
}

/* Commitment Section */
.page-about__commitment-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
}

.page-about__commitment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-about__commitment-item {
  margin-bottom: 30px;
}

.page-about__commitment-title {
  font-size: 1.5em;
  color: var(--glow, #57E38D);
  margin-bottom: 10px;
}

.page-about__commitment-description {
  color: var(--text-secondary, #A7D9B8);
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--card-bg, #11271B);
}

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

.page-about__faq-item {
  background-color: var(--deep-green, #0A4B2C);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--divider, #1E3A2A);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  background-color: var(--deep-green, #0A4B2C);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: var(--deep-green, #0A4B2C); /* Slightly darker on hover */
}

/* Remove default details arrow */
.page-about__faq-item summary {
  list-style: none;
}
.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}

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

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

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
  text-align: center;
}

.page-about__cta-section .page-about__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }
  .page-about__two-column-layout {
    flex-direction: column;
  }
  .page-about__image-block {
    margin-bottom: 40px;
  }
  .page-about__reverse-layout {
    flex-direction: column; /* Revert to column for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-about__hero-image-wrapper {
    max-height: 400px;
    margin-bottom: 20px;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-about__description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* All images must be responsive */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content */
  .page-about__hero-section,
  .page-about__introduction-section,
  .page-about__why-choose-us-section,
  .page-about__our-games-section,
  .page-about__commitment-section,
  .page-about__faq-section,
  .page-about__cta-section,
  .page-about__container,
  .page-about__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* small top padding for hero */
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__text-block {
    font-size: 1em;
  }
  .page-about__feature-title,
  .page-about__game-title,
  .page-about__commitment-title {
    font-size: 1.3em;
  }
  .page-about__game-image {
    height: 180px;
  }
  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-about__faq-answer {
    font-size: 0.95em;
    padding: 0 15px 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-about__game-image {
    height: 150px;
  }
}

/* Ensure images do not use filters */
.page-about img {
  filter: none !important;
}

/* Contrast Fixes (if needed, but design should prevent this) */
.page-about__introduction-section,
.page-about__our-games-section,
.page-about__faq-section {
  background: var(--card-bg, #11271B); /* Dark background */
  color: var(--text-main, #F2FFF6); /* Light text */
}

.page-about__introduction-section .page-about__text-block,
.page-about__our-games-section .page-about__text-block,
.page-about__faq-section .page-about__text-block {
  color: var(--text-secondary, #A7D9B8);
}

.page-about__why-choose-us-section,
.page-about__commitment-section,
.page-about__cta-section {
  background: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-about__why-choose-us-section .page-about__text-block,
.page-about__why-choose-us-section .page-about__feature-description,
.page-about__commitment-section .page-about__text-block,
.page-about__commitment-section .page-about__commitment-description,
.page-about__cta-section .page-about__text-block {
  color: var(--text-secondary, #A7D9B8);
}

.page-about__section-title,
.page-about__game-title,
.page-about__feature-title,
.page-about__commitment-title,
.page-about__faq-question .page-about__faq-qtext {
  color: var(--text-main, #F2FFF6);
}

.page-about__faq-toggle {
  color: var(--glow, #57E38D);
}

/* Ensure hero content is on a dark background */
.page-about__hero-content {
  background-color: transparent; /* Text is on hero image or hero section background */
}