/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color for dark background */
  background-color: #0A0A0A; /* Page background color */
}

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Brand primary color for titles */
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #FFD36B; /* Brand auxiliary color for sub-titles */
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #FFF6D6;
}

.page-about__text-link {
  color: #FFD36B; /* Link color */
  text-decoration: underline;
}

.page-about__text-link:hover {
  color: #F2C14E; /* Link hover color */
}

/* Primary Button Styling */
.page-about__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff; /* White text on gold button */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #FFE699 0%, #F2C14E 100%);
  transform: translateY(-2px);
}

/* Secondary Button Styling */
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  background: transparent;
  color: #F2C14E; /* Brand primary color for text */
  border: 2px solid #F2C14E; /* Brand primary color for border */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

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

/* Link Button Styling (for internal navigation within sections) */
.page-about__btn-link {
  display: inline-block;
  margin-top: 15px;
  color: #FFD36B;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-about__btn-link:hover {
  color: #F2C14E;
}


/* HERO Section */
.page-about__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background-color: #0A0A0A; /* Dark background */
  display: flex; /* For image-above-text layout */
  flex-direction: column; /* For image-above-text layout */
  align-items: center;
  justify-content: center;
}

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

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

.page-about__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  z-index: 1;
  position: relative; /* Ensure it's not absolutely positioned over image */
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  color: #F2C14E;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-about__hero-description {
  font-size: 1.2em;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Introduction Section */
.page-about__introduction-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-about__image-and-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-about__content-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.page-about__text-content {
  flex: 2;
  min-width: 300px;
}

.page-about__list {
  list-style: disc;
  padding-left: 20px;
  color: #FFF6D6;
  margin-top: 15px;
}

.page-about__list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-about__list strong {
  color: #FFD36B;
}

/* Commitment Section (Dark Background) */
.page-about__commitment-section {
  padding: 60px 0;
  background-color: #111111; /* Card BG color for this section */
  color: #FFF6D6;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter card background for contrast */
  border-radius: 10px;
  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;
  color: #FFF6D6;
  border: 1px solid #3A2A12; /* Border color */
}

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

.page-about__feature-icon {
  width: 100%; /* Max width for image within card */
  max-width: 300px; /* Recommended max width */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2C14E;
}

.page-about__cta-block {
  text-align: center;
  margin-top: 50px;
}

.page-about__cta-block .page-about__btn-primary {
  margin-top: 20px;
}

/* Experience Section */
.page-about__experience-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-about__experience-item {
  background-color: #111111; /* Card BG color */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6;
  border: 1px solid #3A2A12; /* Border color */
}

.page-about__experience-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__experience-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Community Section (Dark Background) */
.page-about__community-section {
  padding: 60px 0;
  background-color: #111111; /* Card BG color for this section */
  color: #FFF6D6;
}

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

.page-about__community-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter card background for contrast */
  border-radius: 10px;
  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;
  color: #FFF6D6;
  border: 1px solid #3A2A12; /* Border color */
}

.page-about__community-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Join Us Section */
.page-about__join-us-section {
  padding: 60px 0;
  background-color: #0A0A0A;
  text-align: center;
}

.page-about__join-us-section .page-about__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
  background-color: #111111; /* Card BG color */
  color: #FFF6D6;
}

.page-about__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Lighter background for FAQ item */
  border: 1px solid #3A2A12;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-about__faq-title {
  font-size: 1.2em;
  color: #FFF6D6;
  margin: 0;
  font-weight: normal;
}

.page-about__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #F2C14E;
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Plus to X (or minus) */
  content: '−'; /* Change to minus sign */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__hero-content {
    padding: 30px 20px;
  }
  .page-about__image-and-text-block {
    flex-direction: column;
    text-align: center;
  }
  .page-about__content-image {
    max-width: 100%;
  }
}

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

  /* HERO section padding for mobile */
  .page-about__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Adjust for mobile header offset */
  }

  .page-about__hero-content {
    padding: 20px 15px;
  }

  .page-about__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-about__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 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__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container,
  .page-about__join-us-section .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-about__container {
    padding: 15px;
  }

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

  .page-about__sub-title {
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-about__text-block {
    font-size: 1em;
  }

  .page-about__content-image {
    min-width: unset;
  }

  .page-about__features-grid,
  .page-about__experience-grid,
  .page-about__community-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__feature-card,
  .page-about__experience-item,
  .page-about__community-item {
    padding: 25px;
  }

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

  .page-about__faq-title {
    font-size: 1.1em;
  }

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px 20px;
  }

  /* Mobile image specific rules */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper { /* Add image wrapper to ensure it's contained */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden; /* Prevent horizontal scroll */
  }

  /* Ensure content area images are not smaller than 200px (except specific exceptions) */
  .page-about__content-area img:not(.page-about__game-icon):not(.page-about__partner-logo) {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

/* Color Contrast Fixes (as per strict rules) */
/* All text is already light on dark backgrounds based on custom colors, so contrast should be good. */
/* If a section had a light background, its text would need to be dark. */
.page-about__dark-section {
  background: #111111; /* Card BG */
  color: #FFF6D6; /* Text Main */
}

/* Button text is white on gold gradient, which should pass. */
.page-about__btn-primary {
  color: #ffffff;
}
.page-about__btn-secondary {
  color: #F2C14E;
  border-color: #F2C14E;
}
.page-about__btn-secondary:hover {
  color: #ffffff;
}