/* style/faq.css */
/* body đã padding-top: var(--header-offset) bởi shared.css; trang này không được thêm padding-top tương tự */

.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* 图在上，文案在下 */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px; /* 小顶距 */
    box-sizing: border-box;
    overflow: hidden; /* Đảm bảo nội dung không bị tràn */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px; /* Khoảng cách giữa hình ảnh và nội dung */
}

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

.page-faq__hero-content {
    max-width: 900px;
    z-index: 1;
    position: relative;
    padding: 0 15px; /* Đảm bảo nội dung không bị dính vào cạnh */
}

.page-faq__main-title {
    font-size: clamp(2em, 5vw, 3em); /* Sử dụng clamp cho responsive font-size */
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-faq__description {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Đảm bảo padding không làm tràn */
    text-align: center;
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main */
    border: none;
}

.page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-faq__btn-secondary {
    background: transparent;
    color: #2AD16F; /* Sử dụng màu xanh lá cây tươi sáng */
    border: 2px solid #2AD16F; /* Border màu xanh lá cây tươi sáng */
}

.page-faq__btn-secondary:hover {
    background: #2AD16F;
    color: #F2FFF6;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-faq__section-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-faq__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #11A84E 0%, #22C768 100%);
    border-radius: 2px;
}

.page-faq__text-block {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    text-align: justify;
}

.page-faq__intro-section {
    padding: 60px 0;
    background-color: #0A4B2C; /* Deep Green */
    border-bottom: 1px solid #1E3A2A; /* Divider */
}

/* FAQ Accordion Section */
.page-faq__accordion-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__faq-item {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    color: #F2FFF6; /* Text Main */
    border: 1px solid #2E7A4E; /* Border */
}

.page-faq__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    outline: none;
    user-select: none;
    list-style: none; /* Ẩn mũi tên mặc định của details */
}

.page-faq__faq-item summary::-webkit-details-marker {
    display: none; /* Ẩn mũi tên mặc định của details trên Webkit */
}

.page-faq__faq-qtext {
    flex-grow: 1;
    color: #F2FFF6; /* Text Main */
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #2AD16F; /* Sử dụng màu xanh lá cây tươi sáng */
    transition: transform 0.3s ease;
}

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

.page-faq__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95em;
    color: #A7D9B8; /* Text Secondary */
    border-top: 1px solid #1E3A2A; /* Divider */
    margin-top: -1px; /* Để đường kẻ khớp */
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    text-align: justify;
}

.page-faq__faq-answer ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.page-faq__faq-answer li {
    margin-bottom: 5px;
}

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

.page-faq__faq-answer .page-faq__btn-primary,
.page-faq__faq-answer .page-faq__btn-secondary {
    margin-top: 15px;
    max-width: 300px; /* Giới hạn chiều rộng nút trong câu trả lời */
    width: 100%;
}

.page-faq__cta-buttons--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start; /* Canh trái cho các nút inline */
    margin-top: 20px;
}

/* CTA Section */
.page-faq__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #11271B; /* Card BG, đảm bảo đủ tương phản */
    border-top: 1px solid #1E3A2A; /* Divider */
}

.page-faq__cta-section.page-faq__dark-section {
    background-color: #0A4B2C; /* Deep Green */
    color: #F2FFF6;
}

.page-faq__container--flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-faq__cta-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
    color: #F2FFF6;
    margin-bottom: 20px;
}

.page-faq__cta-text {
    font-size: 1.1em;
    color: #A7D9B8;
    margin-bottom: 30px;
    max-width: 800px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-faq__hero-section {
        padding-top: 10px !important; /* body đã có padding-top */
        padding-bottom: 40px;
    }

    .page-faq__hero-content {
        padding: 0 10px;
    }

    .page-faq__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

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

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px;
        font-size: 0.95em;
    }

    .page-faq__container,
    .page-faq__intro-section .page-faq__container,
    .page-faq__accordion-section .page-faq__container,
    .page-faq__cta-section .page-faq__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__section-title {
        font-size: clamp(1.5em, 7vw, 2em);
        margin-bottom: 30px;
    }

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

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

    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-faq__hero-image-wrapper,
    .page-faq__faq-image,
    .page-faq__cta-section,
    .page-faq__container,
    .page-faq__cta-buttons,
    .page-faq__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    .page-faq__cta-buttons--inline {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-faq__cta-buttons--inline .page-faq__btn-secondary {
        max-width: 100%;
        width: 100%;
    }

    .page-faq__cta-title {
        font-size: clamp(1.5em, 7vw, 2.2em);
    }
}

/* Ensure video elements also follow responsive rules if any were added */
.page-faq video,
.page-faq__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.page-faq__video-section,
.page-faq__video-container,
.page-faq__video-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    .page-faq video,
    .page-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-faq__video-section,
    .page-faq__video-container,
    .page-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-faq__video-section {
        padding-top: 10px !important;
    }
    
    .page-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}