/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #FFFFFF; /* Default body background */
}

.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: 2.5em;
    color: #017439;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-about__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0; /* Light background for hero section */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    max-height: 675px; /* Max height for hero image */
    object-fit: cover;
    display: block;
}

.page-about__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    text-align: center;
    background-color: #ffffff; /* White background for content block */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: -80px; /* Overlap slightly with image for visual effect */
    position: relative;
    z-index: 1;
}

.page-about__main-title {
    font-size: clamp(2em, 3.5vw, 3em); /* Responsive H1 size */
    color: #017439;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__intro-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-about__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
}

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

.page-about__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
}

/* Content blocks with image and text */
.page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

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

.page-about__text-block {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
}

.page-about__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0; /* Allow flex item to shrink */
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure no extra space below image */
}

.page-about__text-block p {
    margin-bottom: 15px;
    color: #333333;
}

.page-about__dark-section {
    background-color: #017439; /* Primary brand color as background */
    color: #ffffff; /* White text for dark background */
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__text-block p,
.page-about__dark-section .page-about__value-heading,
.page-about__dark-section .page-about__value-item a {
    color: #ffffff;
}

.page-about__dark-section .page-about__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
    border-color: #C30808;
}
.page-about__dark-section .page-about__btn-primary:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
}

.page-about__dark-section .page-about__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border-color: #FFFFFF;
}
.page-about__dark-section .page-about__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #017439;
}


.page-about__light-bg {
    background-color: #f8f8f8; /* Light background for contrast */
    color: #333333;
}

.page-about__value-list {
    list-style: none;
    padding: 0;
}

.page-about__value-item {
    margin-bottom: 20px;
}

.page-about__value-heading {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff; /* White text for dark section headings */
}

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

.page-about__feature-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: #333333;
}

.page-about__feature-card .page-about__feature-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 15px;
}

.page-about__feature-card p {
    color: #555555;
}

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

.page-about__faq-item {
    background-color: #ffffff; /* White background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #333333; /* Dark text for FAQ questions/answers */
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    color: #017439; /* Primary color for questions */
    list-style: none; /* Hide default marker for details/summary */
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    color: #017439;
}

.page-about__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
}

.page-about__faq-answer p {
    margin-bottom: 0;
}

.page-about__cta-bottom {
    background-color: #f0f0f0; /* Light background for CTA bottom */
    padding: 80px 0;
}

.page-about__cta-bottom .page-about__section-title {
    color: #017439;
}

.page-about__cta-text {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Links within text */
.page-about a {
    color: #017439;
    text-decoration: underline;
}

.page-about a:hover {
    color: #005f2c;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-about__section {
        padding: 50px 0;
    }

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

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

    .page-about__content-wrapper {
        flex-direction: column;
    }
    .page-about__content-wrapper--reverse {
        flex-direction: column; /* Keep consistent on smaller screens */
    }

    .page-about__text-block,
    .page-about__image-block {
        flex: none; /* Disable flex shrinking/growing */
        width: 100%;
    }
    .page-about__image-block {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
    }
    .page-about__hero-content {
        margin-top: -40px !important; /* Smaller overlap */
        padding: 20px !important;
        width: calc(100% - 30px) !important; /* Adjust width with padding */
        box-sizing: border-box !important;
    }
    .page-about__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Adjust H1 for mobile */
    }
    .page-about__intro-description {
        font-size: 1em !important;
    }
    .page-about__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to button 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-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;
    }

    /* 深色导语区 (using general section padding) */
    .page-about__section {
        padding: 30px 0 !important;
    }
    .page-about__container {
        padding: 0 15px !important; /* Smaller horizontal padding */
    }
    .page-about__section-title {
        font-size: 1.8em !important;
        margin-bottom: 20px !important;
    }

    /* 通用图片与容器 */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__content-wrapper,
    .page-about__text-block,
    .page-about__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__image-block {
        padding-left: 0;
        padding-right: 0;
    }

    /* FAQ */
    .page-about__faq-question {
        font-size: 1em !important;
        padding: 15px !important;
    }
    .page-about__faq-answer {
        padding: 0 15px 15px !important;
    }
    .page-about__faq-item {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Feature grid */
    .page-about__features-grid {
        grid-template-columns: 1fr !important; /* Single column for features */
        gap: 20px !important;
    }

    .page-about__cta-bottom {
        padding: 40px 0 !important;
    }
    .page-about__cta-text {
        font-size: 1em !important;
    }
}