/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #f4f7f6; /* Matching body background */
}

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

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Main text color for dark background */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

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

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

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

.page-about__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Secondary text color */
}

.page-about__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #11A84E; /* Primary brand color for titles */
}

.page-about__intro-section {
  padding: 60px 0;
  background-color: #f4f7f6; /* Light background */
  color: #333333; /* Dark text for contrast */
}

.page-about__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
  color: #333333; /* Dark text for contrast */
}

.page-about__values-section {
  padding: 60px 0;
  background-color: #11271B; /* Card background color */
  color: #F2FFF6; /* Main text color for dark background */
}

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

.page-about__value-card {
  background-color: #08160F; /* Deeper background for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #F2FFF6; /* Main text color */
  border: 1px solid #2E7A4E; /* Border color */
}

.page-about__value-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #57E38D; /* Glow color for emphasis */
}

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

.page-about__games-section {
  padding: 60px 0;
  background-color: #f4f7f6; /* Light background */
  color: #333333; /* Dark text for contrast */
}

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

.page-about__game-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-about__game-image {
  width: 100%;
  height: auto;
  max-height: 225px; /* Example max height for game images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__cta-section {
  padding: 60px 0;
  background-color: #08160F; /* Deep green background */
  color: #F2FFF6; /* Light text for contrast */
  text-align: center;
}

.page-about__cta-section .page-about__section-title {
  color: #57E38D; /* Glow color for title on dark background */
}

.page-about__cta-section .page-about__text-block {
  color: #A7D9B8; /* Secondary text color */
}

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

/* Buttons */
.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;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for green button */
  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-color: transparent;
  color: #11A84E; /* Primary brand color for text */
  border: 2px solid #11A84E; /* Primary brand color for border */
}

.page-about__btn-secondary:hover {
  background-color: #11A84E;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(17, 168, 78, 0.5);
}

.page-about__btn-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
  max-width: 350px; /* Limit width for center button */
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-about__hero-content-wrapper {
    padding: 30px 15px;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

  .page-about__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }

  .page-about__value-grid, .page-about__game-grid {
    grid-template-columns: 1fr;
  }

  .page-about__value-card, .page-about__game-card {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px; /* Add padding for mobile content */
  }

  .page-about__hero-section,
  .page-about__intro-section,
  .page-about__values-section,
  .page-about__games-section,
  .page-about__cta-section {
    padding: 40px 0; /* Adjust vertical padding for mobile */
  }

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

  .page-about__hero-image-wrapper,
  .page-about__value-card,
  .page-about__game-card,
  .page-about__container,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .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 {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  .page-about__btn-center {
    max-width: 100%;
  }

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

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: clamp(1.6em, 6vw, 2.5em);
  }

  .page-about__section-title {
    font-size: clamp(1.4em, 5vw, 2em);
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}