/* style/about.css */

:root {
  --primary-color: #FFD700;
  --secondary-color: #DC143C;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-dark: #222;
  --card-bg-light: #f9f9f9;
  --border-color: #e0e0e0;
}

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-light); /* Body background is dark, so text should be light */
  background-color: var(--background-dark);
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-about__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
  padding-bottom: 80px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.8), rgba(220, 20, 60, 0.8)), url('[GALLERY:about_hero:1600x900:viva_bong88,about_us,leadership,team_vision]');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-about__hero-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.3em;
  color: var(--text-color-light);
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-about__hero-image-wrapper {
  display: none; /* Hero image is part of background for this section */
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-about__cta-button--secondary {
  background: var(--secondary-color);
}

.page-about__cta-button--secondary:hover {
  background: var(--primary-color);
}

.page-about__mission-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

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

.page-about__mission-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__mission-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 25px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  padding: 10px;
}

.page-about__mission-heading {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-about__mission-item p {
  font-size: 1.1em;
  color: var(--text-color-light);
  opacity: 0.8;
}

.page-about__values-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-about__value-card {
  background: rgba(255, 215, 0, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-left: 5px solid var(--primary-color);
  transition: background-color 0.3s ease;
}

.page-about__value-card:hover {
  background-color: rgba(255, 215, 0, 0.2);
}

.page-about__value-heading {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-about__value-card p {
  font-size: 1.05em;
  color: var(--text-color-light);
  opacity: 0.85;
}

.page-about__cta-wrapper {
  text-align: center;
  margin-top: 60px;
}

.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

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

.page-about__why-item {
  background: rgba(220, 20, 60, 0.1);
  padding: 30px;
  border-radius: 10px;
  border-top: 5px solid var(--secondary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.page-about__why-item:hover {
  background-color: rgba(220, 20, 60, 0.2);
}

.page-about__why-heading {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-about__why-item p {
  font-size: 1.05em;
  color: var(--text-color-light);
  opacity: 0.85;
}

.page-about__image-feature {
  text-align: center;
  margin-top: 40px;
}

.page-about__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 3px solid var(--primary-color);
}

.page-about__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

/* FAQ容器样式 */
.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* FAQ默认状态 - 答案隐藏 */
.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color-light);
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--primary-color);
}

.page-about__faq-question:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: var(--secondary-color);
}

.page-about__faq-question:active {
  background: rgba(255, 215, 0, 0.3);
}

/* 问题标题样式 */
.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: var(--primary-color);
}

/* 切换图标 */
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg);
}

.page-about__contact-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--background-dark);
}

.page-about__contact-description {
  font-size: 1.3em;
  color: var(--text-color-light);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Image and button responsive styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-about__cta-button,
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about a[class*="button"],
.page-about a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-buttons,
.page-about__button-group,
.page-about__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__mission-icon {
    width: 120px;
    height: 120px;
  }
  .page-about__mission-heading,
  .page-about__value-heading,
  .page-about__why-heading {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 50px;
    min-height: 450px;
  }
  .page-about__hero-content {
    padding: 20px;
  }
  .page-about__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }
  .page-about__mission-section,
  .page-about__values-section,
  .page-about__why-choose-us-section,
  .page-about__faq-section,
  .page-about__contact-cta-section {
    padding: 50px 0;
  }
  .page-about__mission-grid,
  .page-about__values-grid,
  .page-about__why-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-about__mission-icon {
    width: 100px;
    height: 100px;
  }
  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-about__faq-question h3 {
    font-size: 1.1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-about__faq-answer {
    padding: 0 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
  
  /* Mobile image adaptation */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Mobile button adaptation */
  .page-about__cta-button,
  .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;
    display: flex;
    flex-direction: column; 
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__hero-description {
    font-size: 0.9em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__mission-heading,
  .page-about__value-heading,
  .page-about__why-heading {
    font-size: 1.2em;
  }
  .page-about__contact-description {
    font-size: 1em;
  }
  .page-about__mission-icon {
    width: 80px;
    height: 80px;
  }
}