/* style/about.css */

/* BEM Naming for page-about */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #F2FFF6); /* Default text color from custom palette */
  background-color: var(--bg-main, #08160F); /* Default background color from custom palette */
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll for the whole page */
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: var(--bg-main, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-about__hero-image {
  width: 100%;
  max-width: 1920px;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
}

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  margin-top: -80px; /* Adjust to slightly overlap the image, but text is below */
  position: relative; /* Ensure text is in normal flow */
  z-index: 1; /* Ensure text is above any background elements if needed */
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold, #F2C14E);
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__section {
  padding: 80px 0;
  background-color: var(--bg-main, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-about__introduction-section,
.page-about__why-choose-us-section,
.page-about__products-services-section,
.page-about__commitment-section,
.page-about__team-section,
.page-about__faq-section,
.page-about__cta-section {
  padding: 80px 0;
  background-color: var(--bg-main, #08160F);
  color: var(--text-main, #F2FFF6);
}

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

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold, #F2C14E);
}

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

.page-about__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
}

.page-about__paragraph {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-secondary, #A7D9B8);
}

.page-about__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
}

.page-about__image {
  flex: 1;
  max-width: 50%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-about__feature-card,
.page-about__commitment-card {
  background: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-about__feature-icon,
.page-about__commitment-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 20px auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  width: 100%; /* Make sure it takes full width of card */
  height: auto;
}

.page-about__feature-title,
.page-about__card-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  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; /* White text for primary button */
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

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

.page-about__btn-secondary:hover {
  background: var(--glow, #57E38D);
  color: var(--bg-main, #08160F); /* Dark text on hover */
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

.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(--text-main, #F2FFF6);
  cursor: pointer;
  list-style: none;
  position: relative;
}

.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: 20px;
  color: var(--glow, #57E38D);
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
}

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

/* Floating Buttons */
.page-about__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-about__floating-btn {
  display: block;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-about__floating-btn--register {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
}

.page-about__floating-btn--register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(42, 209, 111, 0.5);
}

.page-about__floating-btn--login {
  background: var(--gold, #F2C14E);
  color: var(--bg-main, #08160F);
}

.page-about__floating-btn--login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(242, 193, 78, 0.5);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__hero-content {
    margin-top: -60px;
  }

  .page-about__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__content-grid--reverse {
    flex-direction: column;
  }

  .page-about__image {
    max-width: 80%;
    margin: 0 auto;
  }

  .page-about__section-title {
    margin-bottom: 30px;
  }

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

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

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

  .page-about__hero-content {
    margin-top: -40px;
    padding: 0 15px;
  }

  .page-about__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

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

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

  .page-about__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 25px;
  }

  .page-about__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  .page-about__paragraph,
  .page-about__feature-text,
  .page-about__card-text {
    font-size: 0.9rem;
  }

  .page-about__image,
  .page-about__feature-icon,
  .page-about__commitment-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min size */
    min-height: 200px !important; /* Ensure min size */
    object-fit: cover !important;
  }

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

  .page-about__feature-card,
  .page-about__commitment-card {
    padding: 20px;
  }

  .page-about__feature-title,
  .page-about__card-title {
    font-size: 1.2rem;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-about__floating-buttons {
    bottom: 15px;
    right: 15px;
    gap: 8px;
  }

  .page-about__floating-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
}