/* style/about.css */

:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f9f9f9;
    --bg-dark-card: rgba(255, 255, 255, 0.05);
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--dark-bg); /* Inherited from shared.css */
}

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

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

.page-about__section-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-about__section-description {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
    overflow: hidden;
    min-height: 600px;
}

.page-about__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: brightness(0.6);
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    margin-top: 50px; /* Adjust based on image overlay */
}

.page-about__main-title {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

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

.page-about__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--primary-color);
    color: #000000; /* Ensure high contrast */
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: none;
}

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

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

.page-about__cta-button--secondary:hover {
    background: #A52A2A;
}

/* About Us Intro Section */
.page-about__about-us-intro {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-about__content-wrapper .page-about__text-block {
    flex: 1;
    font-size: 1.1em;
    color: var(--text-light);
}

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

.page-about__image-block .page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.page-about__why-choose-us .page-about__section-title {
    color: var(--primary-color);
}

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

.page-about__feature-item {
    background: var(--bg-dark-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

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

.page-about__feature-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-about__feature-item a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-about__feature-item a:hover {
    color: #FFEB3B;
}

.page-about__image-block--center {
    margin-top: 60px;
}

/* Our Commitment Section */
.page-about__our-commitment {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.page-about__our-commitment .page-about__section-title {
    color: var(--primary-color);
}

.page-about__our-commitment .page-about__content-wrapper {
    flex-direction: row-reverse;
}

.page-about__our-commitment .page-about__text-block {
    font-size: 1.1em;
}

.page-about__our-commitment .page-about__text-block a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-about__our-commitment .page-about__text-block a:hover {
    color: #FFEB3B;
}

/* Team Section */
.page-about__team-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-about__team-section .page-about__section-title {
    color: var(--secondary-color);
}

.page-about__team-section .page-about__section-description {
    color: var(--text-dark);
}

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

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

.page-about__team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__team-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent look */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-about__member-name {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-about__member-role {
    color: var(--text-dark);
    font-size: 1em;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.page-about__faq-section .page-about__section-title {
    color: var(--primary-color);
}

.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* 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 20px;
    opacity: 0;
    color: var(--text-light);
    text-align: left;
}

/* 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.08); /* Slightly lighter background for open answer */
    border-radius: 0 0 8px 8px;
}

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

.page-about__faq-item.active .page-about__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-about__faq-item.active .page-about__faq-answer a:hover {
    color: #FFEB3B;
}

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

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

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

/* 问题标题样式 */
.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);
    text-align: left;
}

/* 切换图标 */
.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(--primary-color);
    transform: rotate(180deg);
}

/* Contact CTA Section */
.page-about__contact-cta {
    background-color: var(--secondary-color);
    padding: 80px 0;
}

.page-about__contact-cta .page-about__section-title {
    color: var(--primary-color);
}

.page-about__contact-cta .page-about__section-description {
    color: var(--text-light);
}

.page-about__text-center {
    text-align: center;
}

/* General Image Styles */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-about__main-title {
        font-size: 2.8em;
    }

    .page-about__intro-text {
        font-size: 1.2em;
    }

    .page-about__section-title {
        font-size: 2.5em;
    }

    .page-about__content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-about__content-wrapper .page-about__image-block {
        margin-top: 30px;
    }

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

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        min-height: 400px;
        padding: 40px 15px;
    }

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

    .page-about__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-about__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-about__cta-button {
        padding: 15px 30px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-about__container {
        padding: 0 15px;
    }

    .page-about__section-title {
        font-size: 2em;
    }

    .page-about__section-description {
        font-size: 1em;
    }

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

    .page-about__feature-item {
        padding: 20px;
    }

    .page-about__feature-title {
        font-size: 1.5em;
    }

    .page-about__team-image {
        height: 180px;
    }

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

    .page-about__faq-question h3 {
        font-size: 1.05em;
        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__content-wrapper,
    .page-about__features-grid,
    .page-about__team-grid,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !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__cta-buttons {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__intro-text {
        font-size: 0.95em;
    }
    .page-about__cta-button {
        font-size: 0.95em;
    }
    .page-about__feature-title {
        font-size: 1.3em;
    }
    .page-about__member-name {
        font-size: 1.3em;
    }
    .page-about__faq-question h3 {
        font-size: 1em;
    }
}