/* style/faq.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần lặp lại */

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    box-sizing: border-box;
    overflow: hidden; /* Prevent content overflow */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    margin-bottom: 30px; /* Space between image and content */
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

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

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* Section titles */
.page-faq__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    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, #22C768); /* Primary to Accent */
    border-radius: 2px;
}

.page-faq__sub-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #22C768; /* Accent */
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Content Area */
.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-faq__text-block {
    font-size: 1rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
}

/* FAQ List */
.page-faq__section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

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

.page-faq__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.page-faq__faq-item[open] {
    box-shadow: 0 0 20px rgba(34, 199, 104, 0.4); /* Glow on open */
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    background-color: #0A4B2C; /* Deep Green */
    user-select: none;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-faq__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-faq__faq-question:hover {
    background-color: #13994A; /* Slightly darker green */
}

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

.page-faq__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2AD16F;
    color: #08160F; /* Dark text on bright green */
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(180deg);
    background-color: #F2C14E; /* Gold on open */
    color: #08160F;
}


.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.7;
    background-color: #11271B; /* Card BG */
}

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

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

/* Images within FAQ answers */
.page-faq__image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Call to Action Section */
.page-faq__cta-section {
    background-color: #0A4B2C; /* Deep Green */
    padding: 60px 20px;
    text-align: center;
    box-sizing: border-box;
}

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

.page-faq__cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-faq__cta-description {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 40px;
}

.page-faq__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
    overflow: hidden;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping for desktop */
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
    word-wrap: break-word; /* Allow text to wrap if needed */
    text-align: center;
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main */
    border: 2px solid #2AD16F;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-faq__btn-secondary {
    background-color: transparent;
    color: #2AD16F; /* Button green */
    border: 2px solid #2AD16F;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.2);
}

.page-faq__btn-secondary:hover {
    background-color: #2AD16F;
    color: #F2FFF6; /* Text Main */
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.4);
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-faq__section-title {
        font-size: 2rem;
    }

    .page-faq__cta-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset */
    }

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

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

    .page-faq__section,
    .page-faq__content-area,
    .page-faq__cta-section {
        padding: 30px 15px;
    }

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

    .page-faq__sub-title {
        font-size: 1.5rem;
    }

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

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

    .page-faq__cta-title {
        font-size: 1.8rem;
    }

    .page-faq__cta-description {
        font-size: 1rem;
    }

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    /* Images responsive */
    .page-faq img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-faq__hero-image-wrapper,
    .page-faq__faq-answer,
    .page-faq__cta-content,
    .page-faq__section,
    .page-faq__content-area {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure content doesn't overflow */
    }
}

@media (max-width: 480px) {
    .page-faq__hero-section {
        padding: 30px 10px;
        padding-top: 10px !important;
    }
    .page-faq__main-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-faq__description {
        font-size: 0.9rem;
    }
    .page-faq__section,
    .page-faq__content-area,
    .page-faq__cta-section {
        padding: 20px 10px;
    }
    .page-faq__section-title {
        font-size: 1.5rem;
    }
    .page-faq__sub-title {
        font-size: 1.3rem;
    }
    .page-faq__faq-question {
        font-size: 1rem;
        padding: 12px 15px;
    }
    .page-faq__faq-toggle {
        width: 25px;
        height: 25px;
        font-size: 1.5rem;
    }
    .page-faq__faq-answer {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    .page-faq__cta-title {
        font-size: 1.6rem;
    }
    .page-faq__cta-description {
        font-size: 0.95rem;
    }
}