/* style/about.css */

/* Base styles for page-about, ensuring text color contrasts with dark body background */
.page-about {
  color: var(--text-main, #F2FFF6); /* Main text color for dark backgrounds */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color, #08160F); /* Matches body background from shared.css */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--bg-color, #08160F);
  overflow: hidden;
}

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

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

.page-about__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

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

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

/* General Section Styling */
.page-about__section {
  padding: 80px 0;
  background-color: var(--bg-color, #08160F);
}

.page-about__section--dark {
  background-color: var(--card-bg, #11271B); /* Darker background for contrast */
  color: var(--text-main, #F2FFF6);
}

.page-about__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--glow-color, #57E38D); /* Using glow color for emphasis */
  text-align: center;
  margin-bottom: 60px;
}

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

.page-about__sub-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--gold-color, #F2C14E); /* Using gold for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-about__image-block {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  min-height: 200px; /* Ensure minimum size */
}

/* Intro Mission Section */
.page-about__intro-mission-section .page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* Why Choose Us Section */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__card {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main, #F2FFF6);
}

.page-about__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-about__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 15px;
}

.page-about__card p {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

/* Commitment Section */
.page-about__commitment-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

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

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

/* Support Section */
.page-about__support-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #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 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-color, #F2C14E);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker, /* Hide default marker for WebKit */
.page-about__faq-question::marker { /* Hide default marker for other browsers */
  display: none;
}

.page-about__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Lighter hover for dark background */
}

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

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

/* CTA Section */
.page-about__cta-section {
  text-align: center;
  padding: 80px 0;
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('[GALLERY:bg:1920x1080:cta background,abstract,789be link vao]'); /* Using a background image with overlay */
  background-size: cover;
  background-position: center;
  color: var(--text-main, #F2FFF6);
}

.page-about__cta-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--glow-color, #57E38D);
  margin-bottom: 20px;
}

.page-about__cta-description {
  font-size: 1.1rem;
  color: var(--text-secondary, #A7D9B8);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

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

.page-about__btn-secondary:hover {
  background: var(--glow-color, #57E38D);
  color: var(--card-bg, #11271B); /* Dark text on hover */
  transform: translateY(-3px);
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-about__intro-mission-section .page-about__content-grid,
  .page-about__commitment-section .page-about__commitment-content,
  .page-about__support-section .page-about__support-content {
    grid-template-columns: 1fr 1fr; /* Two columns for larger screens */
    align-items: center;
    text-align: left;
  }
  .page-about__intro-mission-section .page-about__image-block,
  .page-about__support-section .page-about__image-block {
    order: 2; /* Image on right */
  }
  .page-about__commitment-section .page-about__image-block {
    order: 1; /* Image on left */
  }
  .page-about__commitment-section .page-about__text-block {
    order: 2;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

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

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

  .page-about__intro-text {
    font-size: 1rem;
  }

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

  .page-about__section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .page-about__section-description {
    margin: -30px auto 40px auto;
  }

  .page-about__sub-title {
    font-size: 1.3rem;
  }

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

  /* Responsive images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-content,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__video-section { /* If video were present */
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Responsive buttons */
  .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: 12px 20px;
  }
  
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

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

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

@media (max-width: 480px) {
  .page-about__hero-image-wrapper {
    max-height: 250px;
  }
  .page-about__main-title {
    font-size: 1.8rem;
  }
  .page-about__section-title {
    font-size: 1.6rem;
  }
  .page-about__card-title {
    font-size: 1.2rem;
  }
  .page-about__faq-question {
    font-size: 0.95rem;
  }
}