/* style/faq.css */

/* Base styles for the page-faq */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF1E8; /* Custom Text Main color */
    background-color: #140C0C; /* Custom Background color */
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
    background-color: #140C0C; /* Ensure background matches */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-faq__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-faq__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: #F3C54D; /* Custom Gold color */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-faq__description {
    font-size: 1.1rem;
    color: #FFF1E8;
    margin-bottom: 30px;
}

/* Section Titles */
.page-faq__section-title {
    font-size: 2.2rem;
    color: #F3C54D; /* Custom Gold color */
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-faq__section-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 40px auto;
    border-radius: 8px;
}

/* FAQ Section */
.page-faq__faq-section {
    padding: 60px 0;
    background-color: #140C0C; /* Custom Background color */
}

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

.page-faq__faq-item {
    background-color: #2A1212; /* Custom Card BG color */
    border: 1px solid #6A1E1E; /* Custom Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF1E8; /* Custom Text Main color */
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    background-color: #2A1212; /* Custom Card BG color */
    color: #FFF1E8; /* Custom Text Main color */
    list-style: none; /* For details/summary */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.page-faq__faq-item[open] > .page-faq__faq-question {
    border-bottom: 1px solid #6A1E1E; /* Custom Border color */
}

.page-faq__faq-question::-webkit-details-marker,
.page-faq__faq-question::marker {
    display: none;
    content: "";
}

.page-faq__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #F3C54D; /* Custom Gold color */
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: #FFF1E8; /* Custom Text Main color */
}

.page-faq__faq-answer p {
    margin-bottom: 1em;
}

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
    margin-bottom: 1em;
    padding-left: 25px;
}

.page-faq__faq-answer li {
    margin-bottom: 0.5em;
}

/* Content Images within FAQ answers */
.page-faq__faq-answer .page-faq__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

/* CTA Section */
.page-faq__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #C61F1F; /* Main Brand Color */
    color: #ffffff;
}

.page-faq__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-faq__cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #F3C54D; /* Custom Gold color */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-faq__cta-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #ffffff;
}

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

/* Buttons */
.page-faq__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box; /* For responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Custom Button color */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-faq__btn-secondary {
    background: #2A1212; /* Custom Card BG color */
    color: #F3C54D; /* Custom Gold color */
    border: 2px solid #F3C54D; /* Custom Gold color */
}

.page-faq__btn-secondary:hover {
    background: #F3C54D; /* Custom Gold color */
    color: #2A1212; /* Custom Card BG color */
}

/* Links within text */
.page-faq a {
    color: #F3C54D; /* Custom Gold color for links */
    text-decoration: none;
}

.page-faq a:hover {
    text-decoration: underline;
}

/* General image styling for content areas */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__container {
        padding: 15px;
    }

    .page-faq__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-faq__section-title {
        font-size: 2rem;
        margin-top: 50px;
        margin-bottom: 30px;
    }

    .page-faq__faq-question {
        font-size: 1.1rem;
        padding: 18px 20px;
    }

    .page-faq__faq-answer {
        padding: 18px 20px;
    }

    .page-faq__cta-section {
        padding: 60px 15px;
    }

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

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-faq__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 30px;
    }
    .page-faq__hero-image-wrapper {
        max-height: 300px;
    }
    .page-faq__hero-content {
        padding: 0 15px;
    }
    .page-faq__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust for mobile */
        margin-bottom: 15px;
    }
    .page-faq__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* 通用图片与容器 */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-faq__container,
    .page-faq__section,
    .page-faq__card,
    .page-faq__faq-section,
    .page-faq__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__faq-list {
        padding: 0;
    }
    .page-faq__section-image {
        margin-bottom: 30px;
    }

    /* 按钮与按钮容器 */
    .page-faq__cta-button,
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-faq 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 !important;
        font-size: 1rem !important;
    }
    .page-faq__cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }

    /* 其他内容模块 */
    .page-faq__section-title {
        font-size: 1.8rem;
        margin-top: 40px;
        margin-bottom: 25px;
    }
    .page-faq__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-faq__faq-answer {
        font-size: 0.95rem;
        padding: 15px 20px;
    }
    .page-faq__cta-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        margin-bottom: 15px;
    }
    .page-faq__cta-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }
}