/* style/faq.css */

/* Biến màu sắc */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-dark: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Tổng quan */
.page-faq {
    background-color: var(--background-dark);
    color: var(--text-main);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: 60px 0;
    padding-top: 10px; /* Nhỏ hơn để body xử lý khoảng cách trên */
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Làm mờ ảnh nền để văn bản dễ đọc */
}

.page-faq__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Nền tối để tăng độ tương phản với chữ sáng */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__main-title {
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-faq__hero-description {
    color: var(--text-main);
    font-size: 1.1em;
    margin-bottom: 30px;
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--button-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-button--small {
    font-size: 0.9em;
    padding: 10px 20px;
}

.page-faq__cta-button--large {
    font-size: 1.2em;
    padding: 18px 35px;
}

/* Sections */
.page-faq__section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

.page-faq__section-title {
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    font-size: 2.2em;
    letter-spacing: 0.03em;
}

/* FAQ List */
.page-faq__faq-list {
    background-color: var(--card-bg);
}

.page-faq__faq-item {
    background-color: var(--deep-green);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    color: var(--text-main);
    font-weight: bold;
    font-size: 1.1em;
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    list-style: none;
}

.page-faq__faq-question::-webkit-details-marker {
    display: none;
}

.page-faq__faq-question:hover {
    background-color: var(--secondary-color);
}

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg);
}

.page-faq__faq-answer {
    padding: 20px 25px;
    background-color: var(--card-bg);
    color: var(--text-secondary);
    font-size: 0.95em;
    border-top: 1px solid var(--divider-color);
}

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
    margin-left: 20px;
    margin-bottom: 10px;
}

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

.page-faq__faq-answer strong {
    color: var(--text-main);
}

.page-faq__conclusion-section {
    text-align: center;
    background-color: var(--background-dark);
}

.page-faq__conclusion-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    display: block;
}

/* Global image settings for content area */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Đảm bảo kích thước tối thiểu cho ảnh trong nội dung */
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 40px 0;
        padding-top: 10px;
    }

    .page-faq__hero-content {
        padding: 15px;
        margin: 0 10px; /* Thêm margin để không chạm cạnh màn hình */
    }

    .page-faq__main-title {
        font-size: 1.8em;
    }

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

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

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

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

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

    .page-faq__cta-button {
        padding: 12px 25px;
        font-size: 0.95em;
    }

    .page-faq__cta-button--large {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset;
        min-height: unset;
    }
    
    .page-faq__container,
    .page-faq__hero-section,
    .page-faq__section,
    .page-faq__faq-list,
    .page-faq__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden;
    }

    /* Buttons in mobile */
    .page-faq__cta-button,
    .page-faq__cta-button--small,
    .page-faq__cta-button--large {
        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;
    }
}

/* Ensure content area images are not too small */
.page-faq p img,
.page-faq div img {
    min-width: 200px; 
    min-height: 200px;
}

/* Contrast fixes if needed */
.page-faq__contrast-fix {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

.page-faq__text-contrast-fix {
    color: #333333 !important;
    text-shadow: none !important;
}