/* style/about.css */
.page-about {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Add padding to avoid content touching footer */
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
}

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

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

.page-about__hero-content {
  max-width: 1200px;
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: bold;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

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

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

.page-about__btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.page-about__btn-secondary {
  background: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Custom Text Main */
  border: 2px solid #2E7A4E; /* Custom Border */
}

.page-about__btn-secondary:hover {
  transform: translateY(-2px);
  background: #11271B; /* Card BG */
}

.page-about__btn-link {
  background: none;
  color: #57E38D; /* Custom Glow */
  border: 1px solid #57E38D;
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-about__btn-link:hover {
  background: #57E38D;
  color: #08160F; /* Custom Background */
}

.page-about__section {
  padding: 60px 20px;
  text-align: center;
}

.page-about__section--mission {
  background-color: #0A4B2C; /* Deep Green */
}

.page-about__section--values {
  background-color: #08160F;
}

.page-about__section--games {
  background-color: #11271B; /* Card BG */
}

.page-about__section--security {
  background-color: #0A4B2C;
}

.page-about__section--cta {
  padding: 80px 20px;
}

.page-about__section--faq {
  background-color: #08160F;
}

.page-about__section--contact {
  padding: 80px 20px;
}

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

.page-about__dark-bg {
  background-color: #11271B; /* Custom Card BG */
  color: #F2FFF6; /* Custom Text Main */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: #F2C14E; /* Custom Gold */
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__sub-title {
  font-size: 1.6em;
  color: #57E38D; /* Custom Glow */
  margin-bottom: 15px;
}

.page-about__text-block {
  font-size: 1.1em;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  text-align: left;
}

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

.page-about__value-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
}

.page-about__value-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Ensure minimum image size */
  min-height: 200px; /* Ensure minimum image size */
}

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

.page-about__value-card p {
  font-size: 1em;
  color: #A7D9B8; /* Custom Text Secondary */
}

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

.page-about__game-card {
  background-color: #11271B; /* Custom Card BG */
  color: #F2FFF6; /* Custom Text Main */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Ensure minimum image size */
  min-height: 200px; /* Ensure minimum image size */
}

.page-about__game-card .page-about__card-title {
  font-size: 1.3em;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-about__game-card p {
  font-size: 0.95em;
  color: #A7D9B8;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-about__feature-item {
  background-color: #11271B; /* Custom Card BG */
  color: #F2FFF6; /* Custom Text Main */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-about__feature-title {
  font-size: 1.4em;
  color: #57E38D; /* Custom Glow */
  margin-bottom: 15px;
}

.page-about__feature-item p {
  font-size: 1em;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 15px;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  cursor: pointer;
  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: #57E38D; /* Custom Glow */
  margin-left: 15px;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
}

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

.page-about__faq-answer p {
  margin-bottom: 10px;
}

.page-about__faq-answer .page-about__btn-link {
  margin-top: 10px;
  display: inline-block;
}

.page-about__section--contact .page-about__container {
  background-color: #0A4B2C; /* Deep Green */
  padding: 50px;
  border-radius: 10px;
}

.page-about__section--contact .page-about__section-title {
  color: #F2FFF6;
}

/* All images basic responsive styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-about__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-about__hero-content,
  .page-about__container,
  .page-about__section--contact .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .page-about__main-title {
    font-size: 2em;
  }

  .page-about__section-title {
    font-size: 1.8em;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link,
  .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__game-image,
  .page-about__value-icon,
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Enforce minimum size on mobile too */
    min-height: 200px !important;
  }

  .page-about__content-grid,
  .page-about__values-grid,
  .page-about__game-grid,
  .page-about__security-features {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-about__value-card,
  .page-about__game-card,
  .page-about__feature-item {
    padding: 20px;
  }

  .page-about__hero-image-wrapper {
    max-height: 400px; /* Adjust hero image height for mobile */
  }

  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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