/* style/about.css */

/* --- Base Styles & Layout --- */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Default text color for dark body background */
    background-color: var(--primary-color); /* Inherit from shared.css */
}

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

.page-about__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 40px;
    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: #FFD700;
    border-radius: 2px;
}

.page-about__section-title--light {
    color: #ffffff;
}

.page-about__intro-text {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #f0f0f0;
}

.page-about__intro-text--light {
    color: #ffffff;
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 0; /* Assuming shared.css handles body padding-top */
    padding-bottom: 80px;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Minimum height for hero */
    background-color: #0A1931; /* Fallback */
}

.page-about__hero-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px; /* Adjust padding here, section already has top/bottom */
    width: 100%;
    box-sizing: border-box;
    gap: 40px;
}

.page-about__hero-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.page-about__main-heading {
    font-size: 52px;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__sub-heading {
    font-size: 20px;
    color: #f0f0f0;
    margin-bottom: 40px;
    line-height: 1.5;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button fits container */
    box-sizing: border-box;
}

.page-about__btn-primary {
    background-color: #FFD700;
    color: #0A1931;
    border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-about__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A1931;
    transform: translateY(-2px);
}

.page-about__hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.page-about__hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* --- Introduction Section --- */
.page-about__introduction-section {
    padding: 80px 0;
    background-color: #f0f0f0; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
}

.page-about__introduction-section .page-about__section-title {
    color: #0A1931;
}

.page-about__introduction-section .page-about__section-title::after {
    background-color: #0A1931;
}

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

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

.page-about__text-block p {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-about__read-more-link {
    display: inline-block;
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.page-about__read-more-link:hover {
    color: #e6c200;
    text-decoration: underline;
}

.page-about__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image-block img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- Values Section --- */
.page-about__values-section {
    padding: 80px 0;
    background-color: #0A1931; /* Dark background */
    color: #ffffff;
}

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

.page-about__value-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-about__value-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-about__value-card img {
    width: 100%;
    max-width: 250px; /* Image display size */
     /* Image display size */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-about__value-card-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-about__value-card p {
    font-size: 16px;
    color: #e0e0e0;
}

/* --- Team Section --- */
.page-about__team-section {
    padding: 80px 0;
    background-color: #f0f0f0; /* Light background */
    color: #333333; /* Dark text */
}

.page-about__team-section .page-about__section-title {
    color: #0A1931;
}

.page-about__team-section .page-about__section-title::after {
    background-color: #0A1931;
}

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

.page-about__team-member-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-about__team-member-card:hover {
    transform: translateY(-10px);
}

.page-about__team-member-card img {
    width: 100%;
    max-width: 200px; /* Image display size */
    height: 200px; /* Image display size */
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid #FFD700;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-about__member-name {
    font-size: 22px;
    font-weight: 700;
    color: #0A1931;
    margin-bottom: 5px;
}

.page-about__member-role {
    font-size: 16px;
    color: #555555;
    margin-bottom: 15px;
}

.page-about__member-description {
    font-size: 15px;
    color: #666666;
}

/* --- CTA Section --- */
.page-about__cta-section {
    padding: 80px 0;
    background-color: #0A1931;
    color: #ffffff;
    text-align: center;
}

.page-about__cta-container {
    max-width: 900px;
}

.page-about__cta-buttons--center {
    justify-content: center;
    margin-top: 40px;
}

/* --- FAQ Section --- */
.page-about__faq-section {
    padding: 80px 0;
    background-color: #f0f0f0; /* Light background */
    color: #333333; /* Dark text */
}

.page-about__faq-section .page-about__section-title {
    color: #0A1931;
}

.page-about__faq-section .page-about__section-title::after {
    background-color: #0A1931;
}

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

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

/* 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, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #555555;
}

/* FAQ展开状态 - ⚠️ 使用!important和足够大的max-height确保一定能展开 */
.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* ⚠️ 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-item.active .page-about__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #d0d0d0;
}


.page-about__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about__faq-question:active {
  background: #eeeeee;
}

/* 问题标题样式 */
.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #0A1931; /* Darker color for questions */
}

/* 切换图标 */
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  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;
  border-radius: 50%;
  background-color: rgba(255, 215, 0, 0.1); /* Light gold background */
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #0A1931; /* Darker color when active */
  transform: rotate(45deg); /* Rotate for minus sign effect */
  background-color: #FFD700;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__hero-container {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }

    .page-about__hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .page-about__main-heading {
        font-size: 44px;
    }

    .page-about__sub-heading {
        font-size: 18px;
    }

    .page-about__hero-image {
        justify-content: center;
    }

    .page-about__hero-image img {
        width: 100%; /* Adjust display size */
        height: auto; /* Adjust display size */
        max-width: 700px;
    }

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

    .page-about__image-block {
        order: -1; /* Image above text on mobile */
    }

    .page-about__value-card img,
    .page-about__team-member-card img {
         /* Adjust size for tablet */
        height: auto; /* Adjust size for tablet */
    }
}

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

    .page-about__container {
        padding: 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding-bottom: 10px;
    }

    .page-about__hero-section {
        min-height: 450px;
        padding-top: 0 !important; /* Fixed header spacing */
        padding-bottom: 60px;
    }

    .page-about__hero-container {
        padding: 0 15px; /* Adjust padding here, section already has top/bottom */
        gap: 30px;
    }

    .page-about__main-heading {
        font-size: 36px;
    }

    .page-about__sub-heading {
        font-size: 16px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0; /* Container padding handled by .page-about__container */
    }

    .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: 12px 20px;
        font-size: 16px;
    }

    .page-about__hero-image img,
    .page-about__image-block img,
    .page-about__value-card img,
    .page-about__team-member-card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Ensure images scale correctly */
        object-fit: contain; /* Use contain for smaller screens if needed, or cover */
    }

    .page-about__introduction-section,
    .page-about__values-section,
    .page-about__team-section,
    .page-about__cta-section,
    .page-about__faq-section {
        padding: 50px 0;
    }

    .page-about__content-grid,
    .page-about__values-grid,
    .page-about__team-grid {
        gap: 20px;
        margin-top: 30px;
    }

    .page-about__value-card,
    .page-about__team-member-card {
        padding: 20px;
    }

    .page-about__value-card-title {
        font-size: 20px;
    }

    .page-about__member-name {
        font-size: 20px;
    }

    /* FAQ Mobile */
    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-about__faq-question h3 {
        font-size: 16px;
        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;
    }
}