/* Core styles for the page-hoi-dap content */
.page-hoi-dap {
    font-family: 'Arial', sans-serif;
    color: #1F2D3D; /* Text Main */
    background: #F4F7FB; /* Background */
    line-height: 1.6;
}

/* Container for consistent content width */
.page-hoi-dap__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
}

/* Hero Section */
.page-hoi-dap__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as per rules */
    overflow: hidden;
}

.page-hoi-dap__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit hero image height */
}

.page-hoi-dap__hero-content {
    padding: 40px 15px;
    text-align: center;
    background: #FFFFFF; /* Card BG */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: -80px; /* Overlap with image slightly for visual effect */
    position: relative;
    z-index: 1;
    border-radius: 10px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-hoi-dap__main-title {
    font-size: clamp(28px, 4vw, 42px); /* H1 font size with clamp */
    font-weight: 700;
    color: #000000; /* Custom Color_1776249996415 */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-hoi-dap__intro-description {
    font-size: 18px;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-hoi-dap__btn-primary,
.page-hoi-dap__btn-secondary,
.page-hoi-dap__btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-hoi-dap__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-hoi-dap__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-hoi-dap__btn-secondary {
    background: #ffffff;
    color: #2F6BFF; /* Main color */
    border: 2px solid #2F6BFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-hoi-dap__btn-secondary:hover {
    background: #e0eaff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-hoi-dap__btn-text {
    background: none;
    color: #2F6BFF; /* Main color */
    border: 1px solid #D6E2FF; /* Border color */
    padding: 10px 20px;
    font-size: 14px;
    margin-top: 15px;
    display: inline-block;
}

.page-hoi-dap__btn-text:hover {
    background: #e0eaff;
    border-color: #2F6BFF;
}

/* Section Titles */
.page-hoi-dap__section-title {
    font-size: clamp(24px, 3vw, 36px);
    color: #000000; /* Custom Color_1776249996415 */
    text-align: center;
    margin-top: 60px;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-hoi-dap__section-description {
    font-size: 18px;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Section Image */
.page-hoi-dap__section-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-hoi-dap__section-image--center {
    margin-top: 20px;
    margin-bottom: 40px;
}

/* FAQ Section */
.page-hoi-dap__faq-section {
    padding-bottom: 60px;
}

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

details.page-hoi-dap__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #D6E2FF; /* Border color */
    overflow: hidden;
    background: #FFFFFF; /* Card BG */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

details.page-hoi-dap__faq-item summary.page-hoi-dap__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: #1F2D3D; /* Text Main */
}

details.page-hoi-dap__faq-item summary.page-hoi-dap__faq-question::-webkit-details-marker {
    display: none;
}

details.page-hoi-dap__faq-item summary.page-hoi-dap__faq-question:hover {
    background: #F4F7FB; /* Background color for hover */
    color: #000000; /* Custom Color_1776249996415 */
}

.page-hoi-dap__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #1F2D3D; /* Text Main */
}

details.page-hoi-dap__faq-item[open] .page-hoi-dap__faq-qtext {
    color: #2F6BFF; /* Main color when open */
}

.page-hoi-dap__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: #2F6BFF; /* Main color */
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

details.page-hoi-dap__faq-item .page-hoi-dap__faq-answer {
    padding: 0 25px 25px;
    background: #F4F7FB; /* Background color */
    border-radius: 0 0 8px 8px;
    color: #1F2D3D; /* Text Main */
}

.page-hoi-dap__faq-answer p {
    margin-bottom: 15px;
    font-size: 16px;
}

/* Final CTA Section */
.page-hoi-dap__cta-section {
    background: linear-gradient(135deg, #2F6BFF 0%, #6FA3FF 100%); /* Using brand colors for gradient */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.page-hoi-dap__cta-title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-hoi-dap__cta-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #ffffff;
}

/* General image responsive styles */
.page-hoi-dap img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-hoi-dap__hero-content {
        margin-top: -60px;
        padding: 30px 15px;
    }
    .page-hoi-dap__main-title {
        font-size: clamp(26px, 3.5vw, 38px);
    }
    .page-hoi-dap__intro-description {
        font-size: 17px;
    }
    .page-hoi-dap__section-title {
        font-size: clamp(22px, 2.8vw, 32px);
    }
    .page-hoi-dap__section-description {
        font-size: 16px;
    }
    details.page-hoi-dap__faq-item summary.page-hoi-dap__faq-question {
        padding: 15px 20px;
    }
    .page-hoi-dap__faq-qtext {
        font-size: 17px;
    }
    .page-hoi-dap__faq-toggle {
        font-size: 26px;
    }
    details.page-hoi-dap__faq-item .page-hoi-dap__faq-answer {
        padding: 0 20px 20px;
    }
    .page-hoi-dap__cta-title {
        font-size: clamp(24px, 3.5vw, 36px);
    }
    .page-hoi-dap__cta-description {
        font-size: 17px;
    }
    .page-hoi-dap__section-image {
        margin: 30px auto;
    }
    .page-hoi-dap__section-image--center {
        margin-top: 15px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-hoi-dap__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
    }
    .page-hoi-dap__hero-image {
        object-fit: contain !important; /* Prevent cropping on mobile */
        aspect-ratio: unset !important; /* Remove fixed aspect ratio */
        max-height: 300px;
    }
    .page-hoi-dap__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
        border-radius: 5px;
    }
    .page-hoi-dap__main-title {
        font-size: clamp(24px, 7vw, 32px); /* Clamp for mobile H1 */
        margin-bottom: 15px;
    }
    .page-hoi-dap__intro-description {
        font-size: 15px;
        margin-bottom: 25px;
    }

    /* 通用图片与容器 */
    .page-hoi-dap img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-hoi-dap__container,
    .page-hoi-dap__hero-section,
    .page-hoi-dap__faq-section,
    .page-hoi-dap__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-hoi-dap__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container */
    }
    .page-hoi-dap__btn-primary,
    .page-hoi-dap__btn-secondary,
    .page-hoi-dap__btn-text {
        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: 15px;
    }
    .page-hoi-dap__btn-text {
        margin-top: 10px;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-hoi-dap__section-title {
        font-size: clamp(20px, 6vw, 28px);
        margin-top: 40px;
        margin-bottom: 15px;
        text-align: center;
    }
    .page-hoi-dap__section-description {
        font-size: 15px;
        margin-bottom: 30px;
        text-align: center;
    }

    /* Section Image Mobile */
    .page-hoi-dap__section-image {
        margin: 20px auto;
        border-radius: 5px;
    }
    .page-hoi-dap__section-image--center {
        margin-top: 15px;
        margin-bottom: 30px;
    }

    /* FAQ Specific Mobile Styles */
    details.page-hoi-dap__faq-item {
        margin-bottom: 10px;
        border-radius: 5px;
    }
    details.page-hoi-dap__faq-item summary.page-hoi-dap__faq-question {
        padding: 15px;
    }
    .page-hoi-dap__faq-qtext {
        font-size: 15px;
    }
    .page-hoi-dap__faq-toggle {
        font-size: 24px;
        width: 25px;
    }
    details.page-hoi-dap__faq-item .page-hoi-dap__faq-answer {
        padding: 0 15px 15px;
    }
    .page-hoi-dap__faq-answer p {
        font-size: 14px;
    }

    /* CTA Section Mobile */
    .page-hoi-dap__cta-section {
        padding: 50px 15px;
    }
    .page-hoi-dap__cta-title {
        font-size: clamp(22px, 6vw, 30px);
        margin-bottom: 15px;
    }
    .page-hoi-dap__cta-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
}