/* Tổng thể trang và màu sắc chính */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF1E8; /* Màu chữ chính cho nền tối */
    background-color: #140C0C; /* Màu nền chính của body */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding-top: 10px; /* Nhỏ hơn so với header offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Đảm bảo không tràn ra ngoài */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Giới hạn chiều cao của ảnh hero */
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Làm tối ảnh một chút để chữ dễ đọc hơn */
}

.page-faq__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-top: -150px; /* Kéo nội dung lên trên ảnh hero một chút */
    padding: 0 20px;
    color: #FFF1E8; /* Đảm bảo màu chữ sáng trên nền tối */
}

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Sử dụng clamp cho kích thước chữ H1 */
    color: #F3C54D; /* Màu vàng Gold cho tiêu đề chính */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

.page-faq__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Cho phép các nút xuống dòng trên di động */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal; /* Cho phép chữ xuống dòng */
    word-wrap: break-word; /* Cho phép ngắt từ */
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    color: #140C0C; /* Màu chữ tối trên nền nút sáng */
    border: none;
}

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

.page-faq__btn-secondary {
    background: #2A1212; /* Màu nền Card B G */
    color: #FFF1E8; /* Màu chữ Text Main */
    border: 2px solid #6A1E1E; /* Màu viền */
}

.page-faq__btn-secondary:hover {
    background: #6A1E1E; /* Màu viền khi hover */
    color: #F3C54D; /* Màu Gold khi hover */
    transform: translateY(-2px);
}

/* Intro Section */
.page-faq__intro-section {
    padding: 60px 0;
    text-align: center;
    background-color: #140C0C;
}

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

.page-faq__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: #F3C54D;
    margin-bottom: 40px;
    font-weight: bold;
    text-align: center;
}

.page-faq__text-content {
    font-size: 1rem;
    color: #FFF1E8;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ List Section */
.page-faq__faq-list-section {
    padding: 80px 0;
    background-color: #140C0C; /* Nền tối cho phần FAQ */
}

.page-faq__section-title--light {
    color: #F3C54D; /* Tiêu đề sáng màu trên nền tối */
}

.page-faq__faq-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.page-faq__faq-item {
    background-color: #2A1212; /* Màu nền Card B G */
    border: 1px solid #6A1E1E; /* Màu viền */
    border-radius: 10px;
    overflow: hidden;
    color: #FFF1E8; /* Màu chữ Text Main */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: #F3C54D; /* Màu vàng Gold cho câu hỏi */
    list-style: none; /* Ẩn marker mặc định */
    position: relative;
    user-select: none;
}

.page-faq__faq-item summary::-webkit-details-marker {
    display: none; /* Ẩn marker mặc định trên WebKit */
}

.page-faq__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Xoay dấu + thành X khi mở */
}

.page-faq__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #FFF1E8; /* Màu chữ Text Main */
}

.page-faq__faq-answer p {
    margin-bottom: 10px;
}

.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-faq__inline-link {
    color: #E53030; /* Màu đỏ phụ trợ cho link nội dung */
    text-decoration: underline;
}

.page-faq__inline-link:hover {
    color: #FFB04A; /* Màu vàng cam khi hover */
    text-decoration: none;
}

/* CTA Bottom Section */
.page-faq__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
    background-color: #140C0C;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__hero-content {
        margin-top: -100px;
    }

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

    .page-faq__description {
        font-size: 1rem;
    }

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

    .page-faq__faq-item summary {
        font-size: 1rem;
        padding: 18px 20px;
    }

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

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: 10px !important; /* Fixed top padding for mobile */
        padding-bottom: 40px;
    }

    .page-faq__hero-content {
        margin-top: -80px;
        padding: 0 15px;
    }

    .page-faq__main-title {
        font-size: 2rem !important; /* Smaller H1 for mobile */
    }

    .page-faq__description {
        font-size: 0.95rem;
    }

    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        width: 100% !important; /* Ensure container takes full width */
        max-width: 100% !important; /* Ensure container takes full width */
        padding: 0 15px;
        box-sizing: border-box !important;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important; /* Full width for buttons */
        padding: 12px 20px !important;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-faq__intro-section,
    .page-faq__faq-list-section,
    .page-faq__cta-bottom-section {
        padding: 40px 0;
    }

    .page-faq__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__section-title {
        font-size: 1.5rem !important;
        margin-bottom: 30px;
    }

    .page-faq__text-content {
        font-size: 0.9rem;
    }

    .page-faq__faq-item summary {
        font-size: 0.95rem;
        padding: 15px 20px;
    }

    .page-faq__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.9rem;
    }

    /* General images responsive rules */
    .page-faq img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
}

/* Ensure all content sections are responsive and don't cause overflow */
.page-faq__hero-section,
.page-faq__intro-section,
.page-faq__faq-list-section,
.page-faq__cta-bottom-section {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}