/* style/about.css */

/* Base styles for the page content, ensuring light text on dark background */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Light text on dark body background */
  background-color: var(--background, #08160F); /* Defined in custom colors, dark */
}

/* Section styling */
.page-about__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-about__card-bg {
  background-color: var(--card-bg, #11271B); /* Darker green background for cards */
}

.page-about__dark-section {
  background-color: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
}

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

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  background-color: var(--background, #08160F);
}

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

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

.page-about__hero-content {
  max-width: 800px;
  text-align: center;
}

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

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

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

/* Call to Action Buttons */
.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width for mobile */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Important for mobile responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border, #2E7A4E);
}

.page-about__btn-secondary:hover {
  background-color: var(--border, #2E7A4E);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Values Section */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-about__value-item,
.page-about__feature-item,
.page-about__card {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: var(--text-main, #F2FFF6); /* Light text on card background */
}

.page-about__value-item:hover,
.page-about__feature-item:hover,
.page-about__card:hover {
  transform: translateY(-5px);
}

.page-about__value-title,
.page-about__feature-title,
.page-about__category-title {
  font-size: 1.5rem;
  color: var(--gold, #F2C14E); /* Gold for titles */
  margin-bottom: 15px;
}

.page-about__value-item p,
.page-about__feature-item p,
.page-about__category-card p {
  color: var(--text-secondary, #A7D9B8);
}

.page-about__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 50px;
  border-radius: 12px;
  object-fit: cover;
}

/* Offerings Section */
.page-about__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-about__category-card {
  text-align: center;
  padding: 0; /* Remove padding from card as image will fill */
  overflow: hidden; /* Hide overflow for image border-radius */
}

.page-about__category-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-bottom: 15px;
}

.page-about__category-card .page-about__category-title {
  padding: 0 20px;
}

.page-about__category-card .page-about__category-title a {
  color: var(--gold, #F2C14E);
  text-decoration: none;
}

.page-about__category-card .page-about__category-title a:hover {
  text-decoration: underline;
}

.page-about__category-card p {
  padding: 0 20px 20px;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 50px;
  text-align: left;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-main, #F2FFF6);
  background-color: var(--card-bg, #11271B);
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> tag */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for <summary> */
}

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

.page-about__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  /* For <details> tag, content is shown/hidden by browser natively */
}

.page-about__faq-answer p {
  margin: 0;
}

/* Links within content */
.page-about a {
  color: var(--glow, #57E38D); /* Green for internal links */
  text-decoration: none;
}

.page-about a:hover {
  text-decoration: underline;
}

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

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

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

  .page-about__description {
    font-size: 1rem;
  }

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

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

  .page-about__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
  }

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

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__values-grid,
  .page-about__game-categories {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
    margin-top: 30px;
  }

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

  .page-about__value-title,
  .page-about__feature-title,
  .page-about__category-title {
    font-size: 1.3rem;
  }
}