/* style/resources-79king-faq.css */

/* Base Styles */
.page-resources-79king-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #1a1a1a; /* Inherited from body, but ensure consistency */
}

.page-resources-79king-faq__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-resources-79king-faq__section-title,
.page-resources-79king-faq__category-title,
.page-resources-79king-faq__cta-title {
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: bold;
}

.page-resources-79king-faq__category-title {
    text-align: left;
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #017439;
}

.page-resources-79king-faq__section-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* Color Contrast Classes */
.page-resources-79king-faq__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-resources-79king-faq__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Buttons */
.page-resources-79king-faq__btn-primary,
.page-resources-79king-faq__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-resources-79king-faq__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
    margin-right: 15px;
}

.page-resources-79king-faq__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-resources-79king-faq__btn-secondary {
    background-color: transparent;
    color: #FFFF00;
    border: 2px solid #FFFF00;
}

.page-resources-79king-faq__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

/* Hero Section */
.page-resources-79king-faq__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: 0; /* Assumes shared.css handles body padding-top */
    overflow: hidden;
    background-color: #017439;
}

.page-resources-79king-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Subtle background */
}

.page-resources-79king-faq__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 40px 20px;
}

.page-resources-79king-faq__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-resources-79king-faq__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
}

.page-resources-79king-faq__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Introduction Section */
.page-resources-79king-faq__introduction-section {
    padding: 80px 0;
    text-align: center;
    background-color: #ffffff;
    color: #333333;
}

.page-resources-79king-faq__introduction-section .page-resources-79king-faq__section-title {
    color: #017439;
}

.page-resources-79king-faq__introduction-section .page-resources-79king-faq__section-text {
    color: #333333;
}

/* FAQ Section */
.page-resources-79king-faq__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-resources-79king-faq__faq-section .page-resources-79king-faq__section-title {
    color: #ffffff;
}

.page-resources-79king-faq__faq-item {
    background-color: #2a2a2a;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #017439;
}

.page-resources-79king-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #017439;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-resources-79king-faq__faq-question:hover {
    background-color: #02944b;
}

.page-resources-79king-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-resources-79king-faq__faq-item.active .page-resources-79king-faq__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-79king-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
    background-color: #2a2a2a;
}

.page-resources-79king-faq__faq-item.active .page-resources-79king-faq__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 20px;
}

.page-resources-79king-faq__faq-answer p {
    margin-bottom: 10px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-resources-79king-faq__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

/* CTA Section */
.page-resources-79king-faq__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439;
    color: #ffffff;
}

.page-resources-79king-faq__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-resources-79king-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* General Image Responsiveness */
.page-resources-79king-faq img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources-79king-faq__hero-title {
        font-size: 3em;
    }
    .page-resources-79king-faq__hero-description {
        font-size: 1.1em;
    }
    .page-resources-79king-faq__section-title {
        font-size: 2em;
    }
    .page-resources-79king-faq__category-title {
        font-size: 1.6em;
    }
    .page-resources-79king-faq__faq-question {
        font-size: 1.1em;
    }
    .page-resources-79king-faq__cta-title {
        font-size: 2em;
    }
    .page-resources-79king-faq__btn-primary,
    .page-resources-79king-faq__btn-secondary {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-resources-79king-faq__hero-section {
        min-height: 400px;
        padding-top: 0; /* Inherit from body or ensure no double padding */
        padding-bottom: 40px;
    }
    .page-resources-79king-faq__hero-content {
        padding: 20px 15px;
    }
    .page-resources-79king-faq__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-resources-79king-faq__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-resources-79king-faq__hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 300px; /* Constrain buttons in mobile */
        margin: 0 auto;
    }

    /* 产品展示图区域 (No specific product grid on this page, but general image rules apply) */
    /* 通用图片与容器 */
    .page-resources-79king-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-resources-79king-faq__container,
    .page-resources-79king-faq__introduction-section,
    .page-resources-79king-faq__faq-section,
    .page-resources-79king-faq__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-resources-79king-faq__btn-primary,
    .page-resources-79king-faq__btn-secondary,
    .page-resources-79king-faq a[class*="button"],
    .page-resources-79king-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;
        margin-right: 0 !important; /* Reset margin for stacked buttons */
    }
    .page-resources-79king-faq__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        flex-wrap: wrap !important;
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

    /* 其他内容模块 */
    .page-resources-79king-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-resources-79king-faq__category-title {
        font-size: 1.4em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-resources-79king-faq__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-resources-79king-faq__faq-answer {
        padding: 0 15px;
    }
    .page-resources-79king-faq__faq-item.active .page-resources-79king-faq__faq-answer {
        padding: 15px;
    }
    .page-resources-79king-faq__introduction-section,
    .page-resources-79king-faq__faq-section,
    .page-resources-79king-faq__cta-section {
        padding: 40px 0;
    }
    .page-resources-79king-faq__cta-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .page-resources-79king-faq__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
}