/* style/faq.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */
.page-faq {
    background-color: var(--bg, #08160F); /* Fallback to custom color if --bg not set by shared */
    color: var(--text-main, #F2FFF6); /* Main text color */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden;
}

.page-faq__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-faq__hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
    min-width: 200px;
    min-height: 200px;
}

.page-faq__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    color: #F2FFF6; /* Ensure light text on dark background */
}

.page-faq__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive H1 font size */
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #F2FFF6;
}

.page-faq__hero-description {
    font-size: clamp(1em, 2vw, 1.2em);
    margin-bottom: 30px;
    color: #A7D9B8; /* Secondary text color */
}

.page-faq__section {
    padding: 60px 0;
    background-color: var(--bg, #08160F);
    color: var(--text-main, #F2FFF6);
}

.page-faq__dark-bg {
    background-color: var(--card-bg, #11271B); /* Use Card BG for darker sections */
    color: #F2FFF6;
}

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

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

.page-faq__sub-title {
    font-size: clamp(1.2em, 2.5vw, 1.8em);
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #F2FFF6;
}

.page-faq__text-block p,
.page-faq__text-list p,
.page-faq__faq-answer p {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 1em;
    color: #A7D9B8; /* Use secondary text color for body text */
}

.page-faq__text-block a,
.page-faq__faq-answer a,
.page-faq__learn-more-link {
    color: #57E38D; /* Glow color for links */
    text-decoration: underline;
}

.page-faq__text-block a:hover,
.page-faq__faq-answer a:hover,
.page-faq__learn-more-link:hover {
    color: #2AD16F;
}

.page-faq__highlight {
    color: #F2C14E; /* Gold color for highlights */
    font-weight: bold;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping by default */
    word-wrap: normal;
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff; /* White text on green gradient */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-secondary {
    background: transparent;
    color: #2AD16F; /* Green text */
    border: 2px solid #2AD16F;
}

.page-faq__btn-secondary:hover {
    background: #2AD16F;
    color: #ffffff;
}

.page-faq__cta-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Grid Layouts */
.page-faq__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-faq__grid-layout--reversed {
    grid-template-columns: 1fr 1fr; /* Default for desktop */
}

.page-faq__image-card {
    text-align: center;
}

.page-faq__image-card img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

/* FAQ Specific Styles */
.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__faq-list--two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.page-faq__faq-item {
    background-color: var(--card-bg, #11271B);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border, #2E7A4E);
}

.page-faq__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #F2FFF6;
    user-select: none;
    list-style: none; /* Remove default marker */
}

.page-faq__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-faq__faq-qtext {
    flex-grow: 1;
    color: #F2FFF6;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    content: "−"; /* Change to minus when open, handled by JS for div, native for details */
}

.page-faq__faq-answer {
    padding: 0 25px 18px 25px;
    font-size: 1em;
    color: #A7D9B8;
}

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

.page-faq__text-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-faq__grid-layout,
    .page-faq__grid-layout--reversed {
        grid-template-columns: 1fr;
    }

    .page-faq__grid-layout--reversed .page-faq__image-card--side {
        order: -1; /* Move image to top on mobile for reversed layout */
    }

    .page-faq__faq-list--two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 10px 15px 40px 15px;
    }

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

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

    .page-faq__hero-description {
        font-size: 0.95em;
    }

    .page-faq__section {
        padding: 40px 0;
    }

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

    .page-faq__sub-title {
        font-size: 1.3em;
    }

    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset !important; /* Override min-width for mobile */
        min-height: unset !important; /* Override min-height for mobile */
    }

    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__cta-container,
    .page-faq__grid-layout,
    .page-faq__faq-list,
    .page-faq__faq-list--two-columns,
    .page-faq__steps-list,
    .page-faq__benefits-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-faq__cta-button,
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-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;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-faq__cta-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-faq__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-faq__faq-answer {
        padding: 0 20px 15px 20px;
    }
}