/* style/faq.css */

/* Biến CSS */
:root {
    --primary-color: #E53E3E; /* Đỏ mạnh */
    --secondary-color: #F6AD55; /* Vàng kim */
    --dark-bg-color: #1A202C; /* Nền tối */
    --light-text-color: #ffffff;
    --dark-text-color: #333333;
    --border-color: #e0e0e0;
    --light-grey-bg: #f9f9f9;
}

.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-text-color);
    background-color: var(--light-grey-bg);
}

/* Phần Hero */
.page-faq .hero-faq {
    background: linear-gradient(135deg, var(--dark-bg-color) 0%, #3a475a 100%);
    color: var(--light-text-color);
    padding: 80px 20px;
    text-align: center;
    border-bottom: 5px solid var(--primary-color);
}

.page-faq .hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-faq .hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

.page-faq .cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4);
}

.page-faq .cta-button:hover {
    background-color: #c53030;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.6);
}

/* Container chung */
.page-faq .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Phần FAQ */
.page-faq .faq-section {
    padding: 60px 0;
    background-color: var(--light-grey-bg);
}

.page-faq .section-title {
    font-size: 2.5em;
    color: var(--dark-bg-color);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.page-faq .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.page-faq .section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #555;
}

.page-faq .faq-list {
    margin-top: 30px;
}

.page-faq .faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-faq .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-faq .faq-item.active .faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-color: var(--primary-color);
}

.page-faq .faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--dark-text-color);
    transition: color 0.3s ease;
}

.page-faq .faq-item.active .faq-question h3 {
    color: var(--light-text-color);
}

.page-faq .faq-question:hover {
    background-color: #f0f0f0;
}

.page-faq .faq-item.active .faq-question:hover {
    background-color: #c53030;
}

.page-faq .faq-toggle {
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
    color: var(--primary-color);
}

.page-faq .faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--light-text-color);
}

.page-faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 0 25px;
    color: #555;
}

.page-faq .faq-item.active .faq-answer {
    max-height: 1000px; /* Đủ lớn để chứa nội dung */
    padding: 25px;
    border-color: var(--primary-color);
}

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

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

.page-faq .faq-answer li {
    margin-bottom: 8px;
}

.page-faq .faq-answer .answer-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 15px auto 25px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq .link-inline {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-faq .link-inline:hover {
    color: #c53030;
    text-decoration: underline;
}

/* Call to Action dưới cùng */
.page-faq .call-to-action-bottom {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
    border-radius: 10px;
    margin-top: 60px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-faq .cta-title {
    font-size: 2.2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.page-faq .cta-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
    .page-faq .hero-title {
        font-size: 3em;
    }
    .page-faq .section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-faq .hero-faq {
        padding: 60px 15px;
    }
    .page-faq .hero-title {
        font-size: 2.5em;
    }
    .page-faq .hero-description {
        font-size: 1em;
    }
    .page-faq .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-faq .section-title {
        font-size: 2em;
    }
    .page-faq .section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-faq .faq-question {
        padding: 15px 20px;
    }
    .page-faq .faq-question h3 {
        font-size: 1.1em;
    }
    .page-faq .faq-toggle {
        font-size: 1.8em;
    }
    .page-faq .faq-answer {
        padding: 20px;
    }
    .page-faq .call-to-action-bottom {
        padding: 40px 15px;
    }
    .page-faq .cta-title {
        font-size: 1.8em;
    }
    .page-faq .cta-description {
        font-size: 1em;
    }
    .page-faq .answer-image {
        margin: 10px auto 20px auto;
    }
}

@media (max-width: 480px) {
    .page-faq .hero-title {
        font-size: 2em;
    }
    .page-faq .hero-description {
        font-size: 0.9em;
    }
    .page-faq .section-title {
        font-size: 1.8em;
    }
    .page-faq .faq-question h3 {
        font-size: 1em;
    }
    .page-faq .faq-toggle {
        font-size: 1.5em;
    }
    .page-faq .faq-answer {
        font-size: 0.9em;
    }
    .page-faq .cta-title {
        font-size: 1.6em;
    }
    .page-faq .cta-description {
        font-size: 0.9em;
    }
}