/* style/faq.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */

:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --bg-card: #17191F;
    --bg-body: #0D0E12;
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
}

.page-faq {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Mặc định chữ sáng trên nền tối */
    background-color: var(--bg-body);
    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;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Nhỏ gọn để không bị trùng với body padding */
    padding-bottom: 60px;
    background: var(--bg-body);
    overflow: hidden;
}

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

.page-faq__hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-faq__main-title {
    font-weight: bold;
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.page-faq__description {
    font-size: 1.1em;
    color: rgba(255, 243, 230, 0.8);
    margin-bottom: 30px;
}

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Đảm bảo responsive */
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
    color: var(--text-main);
    border: 2px solid var(--secondary-color);
}

.page-faq__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-faq__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-faq__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--bg-body);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.2);
}

/* FAQ List Section */
.page-faq__faq-list {
    padding: 60px 0;
    background-color: var(--bg-card);
    color: var(--text-main);
}

.page-faq__section-title {
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
}

.page-faq__section-intro {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: rgba(255, 243, 230, 0.8);
}

.page-faq__faq-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 800px;
    margin: 0 auto 40px auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-faq__faq-item {
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
    box-shadow: 0 0 20px rgba(255, 165, 58, 0.3);
    border-color: var(--secondary-color);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-weight: bold;
    font-size: 1.15em;
    cursor: pointer;
    color: var(--text-main);
    transition: color 0.3s ease;
    list-style: none; /* Hide default marker for details */
}

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

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

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

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

.page-faq__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: rgba(255, 243, 230, 0.7);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
    max-height: 2000px; /* Large enough to accommodate content */
    padding-top: 10px;
}

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

/* CTA Section */
.page-faq__cta-section {
    padding: 60px 0;
    background-color: var(--bg-body);
    text-align: center;
    color: var(--text-main);
}

.page-faq__cta-title {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.page-faq__cta-description {
    font-size: 1.1em;
    color: rgba(255, 243, 230, 0.8);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 300px;
}

.page-faq__btn-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-faq__container {
        padding: 0 15px;
    }

    .page-faq__hero-section,
    .page-faq__faq-list,
    .page-faq__cta-section {
        padding: 40px 0; /* Giảm padding trên mobile */
    }

    .page-faq__hero-section {
        padding-top: 10px !important; /* body đã padding-top, chỉ cần 10px */
    }

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

    .page-faq__description,
    .page-faq__section-intro,
    .page-faq__cta-description {
        font-size: 1em;
    }

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

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

    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: 1.5em;
    }

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

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

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

    /* Ensure containers with images/buttons/content are responsive */
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__hero-section,
    .page-faq__faq-list,
    .page-faq__cta-section,
    .page-faq__faq-items {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-faq__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-faq__btn-contact {
        max-width: 100% !important;
    }
}