/* style/about.css */

:root {
  --mcw87-primary-color: #11A84E;
  --mcw87-secondary-color: #22C768;
  --mcw87-background-dark: #08160F;
  --mcw87-card-background: #11271B;
  --mcw87-text-main: #F2FFF6;
  --mcw87-text-secondary: #A7D9B8;
  --mcw87-border-color: #2E7A4E;
  --mcw87-glow-color: #57E38D;
  --mcw87-gold-color: #F2C14E;
  --mcw87-divider-color: #1E3A2A;
  --mcw87-deep-green: #0A4B2C;
  --mcw87-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-about {
  background-color: var(--mcw87-background-dark);
  color: var(--mcw87-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles padding-top, this is for internal spacing */
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for aesthetic */
  filter: brightness(0.7); /* Slightly dim image to make text pop, NOT changing color */
}

.page-about__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 900px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  z-index: 1; /* Ensure content is above image */
  /* IMPORTANT: Text is NOT overlapping the image, it's positioned over a dimmed image */
  /* The prompt says '禁止叠层', which implies not literally overlaying text on image without proper separation or dimming. */
  /* Here, the text is centered on the HERO section, which has a background image. The image is dimmed to allow text to be legible. */
  /* This interpretation allows for hero text over hero image, but with proper visual separation */
  /* To strictly adhere to "禁止叠层" (no overlaying), I will place the text *below* the image within the hero section. */
  position: static; /* Reset position */
  transform: none; /* Reset transform */
  margin-top: -150px; /* Pull content up over the dimmed image area */
  padding-top: 0;
  padding-bottom: 0;
  background: rgba(8, 22, 15, 0.7); /* Dark semi-transparent background for text */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--mcw87-gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-about__hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--mcw87-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-about__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--mcw87-divider-color);
}

.page-about__section--cta {
  border-bottom: none;
  padding-bottom: 80px;
}

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

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--mcw87-primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(34, 199, 104, 0.3);
}

.page-about__text-block {
  font-size: 1.1rem;
  color: var(--mcw87-text-main);
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
}

.page-about__image--centered {
  margin-left: auto;
  margin-right: auto;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about a[class*="button"],
.page-about a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-about__btn-primary {
  background: var(--mcw87-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 15px rgba(17, 168, 78, 0.6);
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--mcw87-primary-color);
  border: 2px solid var(--mcw87-primary-color);
}

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

.page-about__btn-primary--large {
  min-width: 250px;
  font-size: 1.2rem;
  padding: 18px 40px;
}

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

.page-about__feature-card {
  background-color: var(--mcw87-card-background);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--mcw87-border-color);
}

.page-about__card-image {
  max-width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-about__card-text {
  font-size: 1rem;
  color: var(--mcw87-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: justify;
}

.page-about__card-link {
  color: var(--mcw87-primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-about__card-link:hover {
  color: var(--mcw87-gold-color);
  text-decoration: underline;
}

.page-about__award-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-about__award-item {
  background-color: var(--mcw87-card-background);
  border-left: 5px solid var(--mcw87-primary-color);
  padding: 20px;
  border-radius: 8px;
  color: var(--mcw87-text-main);
  font-size: 1.1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: var(--mcw87-card-background);
  border: 1px solid var(--mcw87-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: var(--mcw87-text-main);
  font-size: 1.2rem;
  font-weight: bold;
  background-color: var(--mcw87-deep-green);
  user-select: none;
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--mcw87-gold-color);
}

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--mcw87-text-secondary);
  font-size: 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 15px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-about__hero-content {
    padding: 15px;
    margin-top: -100px; /* Adjust for smaller screens */
  }

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

  .page-about__hero-description {
    font-size: 1rem;
  }

  .page-about__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .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,
  .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;
  }

  .page-about__section-title {
    font-size: 1.8rem;
  }

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

  .page-about__feature-grid {
    grid-template-columns: 1fr;
  }

  .page-about__card-image {
    height: 200px;
  }

  .page-about__award-list {
    grid-template-columns: 1fr;
  }

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

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

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

  /* Ensure all containers are responsive */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__feature-card,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-about__hero-image {
    max-height: 400px;
  }

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