/* style/faq.css */

:root {
    --primary-color: #C0392B; /* Đỏ đậm */
    --secondary-color: #F39C12; /* Cam/Vàng */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f4f7f6;
    --background-dark: #2c3e50; /* Xám đậm */
    --border-color: #e0e0e0;
}

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

.page-faq-title,
.page-faq-heading,
.page-faq-cta-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
}

.page-faq-title {
    font-size: 2.8em; /* Lớn hơn cho tiêu đề chính */
    margin-top: 20px;
}

.page-faq-heading {
    font-size: 2.2em;
    padding-top: 40px;
}

.page-faq-description,
.page-faq-cta-description {
    font-size: 1.1em;
    color: var(--text-color-dark);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-faq-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.page-faq-button:hover {
    background: #e67e22; /* Tối hơn một chút so với secondary-color */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-faq .text-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Hero Section */
.page-faq .hero-faq {
    background: linear-gradient(135deg, var(--primary-color) 0%, #D64A3B 100%); /* Gradient từ primary sang màu đỏ nhạt hơn */
    padding: 60px 20px;
    color: var(--text-color-light);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-faq .faq-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-faq .faq-hero-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    object-fit: cover;
}

.page-faq .faq-hero-content {
    position: relative;
    z-index: 2;
}

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

.page-faq .hero-faq .page-faq-description {
    color: #f0f0f0;
    font-size: 1.2em;
    line-height: 1.8;
}

.page-faq .hero-faq .text-link {
    color: var(--secondary-color);
}

.page-faq .hero-faq .text-link:hover {
    color: #ffcc00;
}

/* FAQ Section */
.page-faq .faq-section {
    padding: 60px 20px;
    background-color: var(--background-light);
}

.page-faq .faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-faq .faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--text-color-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-faq .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.page-faq .faq-question h3 {
    margin: 0;
    font-size: 1.25em;
    color: var(--primary-color);
    flex-grow: 1;
    text-align: left;
}

.page-faq .faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    line-height: 1;
    margin-left: 15px;
}

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

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

.page-faq .faq-item.active .faq-answer {
    max-height: 600px; /* Đủ cao để chứa nội dung */
    padding: 20px 25px;
    background: #f9f9f9;
}

.page-faq .faq-answer p {
    margin: 0 0 15px 0;
    color: var(--text-color-dark);
    font-size: 1.05em;
}

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

.page-faq .faq-answer .page-faq-button {
    margin-left: 0;
    margin-top: 10px;
}

/* CTA Section */
.page-faq .cta-section {
    background: linear-gradient(135deg, var(--background-dark) 0%, #34495e 100%); /* Gradient từ dark sang màu xám nhạt hơn */
    padding: 80px 20px;
    text-align: center;
    color: var(--text-color-light);
}

.page-faq .cta-container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-faq .page-faq-cta-title {
    color: var(--secondary-color);
    font-size: 2.5em;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-faq .page-faq-cta-description {
    color: #e0e0e0;
    font-size: 1.15em;
    margin-bottom: 40px;
}

.page-faq .cta-section .main-cta-button {
    padding: 15px 40px;
    font-size: 1.2em;
    background: var(--primary-color);
}

.page-faq .cta-section .main-cta-button:hover {
    background: #a93226; /* Tối hơn primary */
}

.page-faq .cta-section .text-link {
    color: var(--secondary-color);
}

.page-faq .cta-section .text-link:hover {
    color: #ffcc00;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-faq .page-faq-title {
        font-size: 2.5em;
    }
    .page-faq .page-faq-heading {
        font-size: 1.8em;
    }
    .page-faq .faq-hero-image {
        max-width: 700px;
    }
    .page-faq .page-faq-cta-title {
        font-size: 2em;
    }
    .page-faq .cta-section {
        padding: 60px 15px;
    }
}

@media (max-width: 768px) {
    .page-faq .hero-faq {
        padding: 40px 15px;
    }
    .page-faq .faq-hero-image {
        max-width: 100%;
        margin-bottom: 30px;
        border-radius: 8px;
    }
    .page-faq .hero-faq .page-faq-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-faq .hero-faq .page-faq-description {
        font-size: 1em;
    }
    .page-faq .faq-section {
        padding: 40px 15px;
    }
    .page-faq .faq-question {
        padding: 15px 20px;
    }
    .page-faq .faq-question h3 {
        font-size: 1.1em;
    }
    .page-faq .faq-toggle {
        font-size: 24px;
    }
    .page-faq .faq-answer {
        padding: 0 20px;
    }
    .page-faq .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    .page-faq .page-faq-button {
        padding: 10px 20px;
        font-size: 0.95em;
    }
    .page-faq .page-faq-cta-title {
        font-size: 1.6em;
    }
    .page-faq .page-faq-cta-description {
        font-size: 1em;
    }
    .page-faq .cta-section .main-cta-button {
        padding: 12px 30px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-faq .hero-faq .page-faq-title {
        font-size: 1.8em;
    }
    .page-faq .page-faq-heading {
        font-size: 1.5em;
    }
    .page-faq .faq-question h3 {
        font-size: 1em;
    }
    .page-faq .faq-toggle {
        font-size: 20px;
    }
    .page-faq .page-faq-cta-title {
        font-size: 1.4em;
    }
}