/* style/about.css */

/* Custom Colors */
:root {
  --color-primary: #11A84E; /* Main */
  --color-secondary: #22C768; /* Auxiliary */
  --color-button-gradient-start: #2AD16F;
  --color-button-gradient-end: #13994A;
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
}

/* Base styles for the page-about content */
.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--color-text-main); /* Default text color for dark background */
  background-color: var(--color-background); /* Body background is dark, so main content also dark */
  line-height: 1.6;
  padding-bottom: 60px; /* Ensure space above footer */
}

/* Global container for content sections */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section titles */
.page-about__section-title {
  font-size: 2.5em;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-about__subsection-title {
  font-size: 1.8em;
  color: var(--color-secondary);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
  border-left: 4px solid var(--color-gold);
  padding-left: 15px;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 1em;
  color: var(--color-text-secondary);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom */
  overflow: hidden;
  background-color: var(--color-deep-green); /* Fallback/background for hero */
}

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

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability, not changing color */
}

.page-about__hero-content {
  position: relative; /* Changed from absolute for "image above text" rule */
  text-align: center;
  max-width: 900px;
  margin-top: 40px; /* Space after image */
  padding: 0 20px;
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-about__tagline {
  font-size: 1.2em;
  color: var(--color-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__faq-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: #ffffff; /* White text on dark green/gold gradient */
  border: 2px solid var(--color-button-gradient-end);
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
  opacity: 0.9;
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--color-gold); /* Gold text */
  border: 2px solid var(--color-gold);
}

.page-about__btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-background); /* Dark background text on hover */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.3);
}

/* Introduction Section */
.page-about__introduction-section {
  padding: 80px 0;
  background-color: var(--color-deep-green); /* Using deep green for dark section */
}

.page-about__introduction-section .page-about__paragraph {
  color: var(--color-text-secondary);
}

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

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

.page-about__feature-card.page-about__card {
  background-color: var(--color-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-divider);
}

.page-about__feature-card.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__feature-icon {
  width: 100%; /* Occupy full width of card */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-about__card-title {
  font-size: 1.5em;
  color: var(--color-gold);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__card-description {
  font-size: 1em;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.page-about__game-list {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 15px;
  text-align: left;
  color: var(--color-text-secondary);
}

.page-about__game-list li {
  margin-bottom: 5px;
}

.page-about__game-list li strong {
  color: var(--color-text-main);
}

.page-about__cta-section {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: var(--color-deep-green);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-about__cta-text {
  font-size: 1.8em;
  color: var(--color-text-main);
  margin-bottom: 30px;
  font-weight: 500;
}

/* Commitment Section */
.page-about__commitment-section {
  padding: 80px 0;
  background-color: var(--color-deep-green);
}

.page-about__commitment-section .page-about__paragraph {
  color: var(--color-text-secondary);
}

/* Team Section */
.page-about__team-section {
  padding: 80px 0;
  background-color: var(--color-background);
}

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

.page-about__team-member.page-about__card {
  background-color: var(--color-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-divider);
}

.page-about__team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid var(--color-gold);
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.3);
}

.page-about__member-name {
  font-size: 1.6em;
  color: var(--color-gold);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-about__member-role {
  font-size: 1em;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Contact Section */
.page-about__contact-section {
  padding: 80px 0;
  background-color: var(--color-deep-green);
}

.page-about__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: center;
}

.page-about__contact-list li {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: var(--color-text-main);
}

.page-about__contact-list a {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-about__contact-list a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--color-background);
}

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

.page-about__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-divider);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--color-text-main);
  background-color: var(--color-card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-about__faq-question::marker {
  display: none; /* Hide default marker for Firefox */
}

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

.page-about__faq-qtext {
  flex-grow: 1;
  color: var(--color-gold);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--color-secondary);
  margin-left: 15px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.05em;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.page-about__faq-answer .page-about__paragraph {
  margin-bottom: 1em;
}

.page-about__faq-button {
  margin-top: 15px;
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.9em;
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-about__faq-button:hover {
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__subsection-title {
    font-size: 1.6em;
  }

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

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

  .page-about__cta-text {
    font-size: 1.5em;
  }
}

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

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-about__subsection-title {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-about__paragraph,
  .page-about__card-description,
  .page-about__member-role,
  .page-about__contact-list li {
    font-size: 1em;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for smaller screens */
  }

  .page-about__tagline {
    font-size: 1em;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__faq-button,
  .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;
    margin: 0 auto; /* Center buttons if in column */
  }

  .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: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    overflow: hidden !important;
  }

  .page-about__hero-section,
  .page-about__introduction-section,
  .page-about__why-choose-us-section,
  .page-about__commitment-section,
  .page-about__team-section,
  .page-about__contact-section,
  .page-about__faq-section {
    padding: 40px 0;
  }

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

  .page-about__features-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
  }

  .page-about__feature-card.page-about__card,
  .page-about__team-member.page-about__card {
    padding: 25px;
  }

  .page-about__feature-icon {
    height: 180px;
  }

  .page-about__cta-section {
    padding: 30px 20px;
  }

  .page-about__cta-text {
    font-size: 1.2em;
    margin-bottom: 20px;
  }

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

  .page-about__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }

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

  /* Mobile video responsiveness (if any) */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-about__video-section {
    padding-top: 10px !important;
  }
}

/* Ensure content area images are never too small */
.page-about__introduction-section img,
.page-about__why-choose-us-section img,
.page-about__commitment-section img,
.page-about__team-section img,
.page-about__contact-section img,
.page-about__faq-section img {
  min-width: 200px;
  min-height: 200px;
}
.page-about__team-avatar {
  min-width: 150px; /* Override min-width for avatar if needed, but still > 100px */
  min-height: 150px;
}