/* style/faq.css */
.page-faq {
    font-family: 'Arial', sans-serif;
    color: #E0E0E0; /* Màu chữ tổng thể sáng trên nền tối */
    background-color: #000000; /* Nền đen chủ đạo */
    line-height: 1.6;
}

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

.page-faq .btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
}

.page-faq .btn-primary {
    background-color: #FFD700; /* Vàng kim */
    color: #000000; /* Chữ đen */
    border: 2px solid #FFD700;
}

.page-faq .btn-primary:hover {
    background-color: #E0B500; /* Vàng đậm hơn */
    color: #000000;
}

.page-faq .btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Chữ vàng kim */
    border: 2px solid #FFD700;
}

.page-faq .btn-secondary:hover {
    background-color: #FFD700;
    color: #000000;
}

.page-faq .btn-link {
    color: #FFD700;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
}

.page-faq .btn-link:hover {
    color: #E0B500;
}

/* Hero Section */
.page-faq .hero-faq {
    background: linear-gradient(135deg, #000000, #333333);
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 450px;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid #FFD700;
}

.page-faq .hero-faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('[IMAGE:faq_banner]') no-repeat center center/cover;
    opacity: 0.15;
    z-index: 0;
}

.page-faq .hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 600px;
    padding-left: 20px;
}

.page-faq .hero-title {
    font-size: 3.5em;
    color: #FFD700; /* Vàng kim */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq .hero-subtitle {
    font-size: 1.2em;
    color: #E0E0E0;
    margin-bottom: 30px;
}

.page-faq .hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-right: 20px;
}

.page-faq .hero-banner-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none; /* Hidden by default, only for visual context in imageRequirements */
}

/* Section Titles & Descriptions */
.page-faq .section-title {
    font-size: 2.8em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-faq .section-description {
    font-size: 1.1em;
    color: #B0B0B0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* FAQ Section */
.page-faq .faq-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

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

.page-faq .faq-item {
    background-color: #000000;
    border: 1px solid #333333;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 25px;
    background-color: #000000;
    color: #FFD700; /* Vàng kim */
    font-size: 1.3em;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}

.page-faq .faq-question:hover, .page-faq .faq-question.active {
    background-color: #0a0a0a;
}

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

.page-faq .faq-question.active .toggle-icon {
    transform: rotate(45deg);
}

.page-faq .faq-answer {
    padding: 0 25px 20px 25px;
    background-color: #111111;
    color: #B0B0B0;
    font-size: 1.05em;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-faq .faq-answer.active {
    max-height: 500px; /* Adjust based on expected content length */
    padding-top: 15px;
    padding-bottom: 25px;
}

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

/* Related Resources Section */
.page-faq .related-resources {
    padding: 80px 0;
    background-color: #000000;
    text-align: center;
}

.page-faq .resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-faq .resource-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 250px;
}

.page-faq .resource-card:hover {
    transform: translateY(-10px);
    background-color: #0a0a0a;
}

.page-faq .resource-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: invert(1) sepia(1) saturate(10) hue-rotate(0deg) brightness(1.5); /* Makes icon gold-ish */
}

.page-faq .resource-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-faq .resource-text {
    color: #B0B0B0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-faq .hero-faq {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }

    .page-faq .hero-content {
        padding-left: 0;
        max-width: 100%;
    }

    .page-faq .hero-title {
        font-size: 2.8em;
    }

    .page-faq .hero-subtitle {
        font-size: 1.1em;
    }

    .page-faq .hero-image-container {
        padding-right: 0;
        margin-top: 30px;
    }
    
    .page-faq .hero-banner-image {
        display: block; /* Show on smaller screens if needed */
    }

    .page-faq .section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-faq .hero-title {
        font-size: 2.2em;
    }

    .page-faq .hero-subtitle {
        font-size: 1em;
    }

    .page-faq .faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }

    .page-faq .faq-answer {
        font-size: 0.95em;
        padding: 0 20px 15px 20px;
    }

    .page-faq .faq-answer.active {
        padding-top: 10px;
        padding-bottom: 20px;
    }

    .page-faq .resource-card {
        padding: 25px;
    }

    .page-faq .resource-title {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .page-faq .hero-faq {
        padding: 40px 15px;
    }

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

    .page-faq .hero-subtitle {
        font-size: 0.9em;
    }

    .page-faq .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

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

    .page-faq .section-description {
        font-size: 0.9em;
    }

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

    .page-faq .faq-answer {
        font-size: 0.9em;
        padding: 0 15px 10px 15px;
    }

    .page-faq .faq-answer.active {
        padding-top: 8px;
        padding-bottom: 15px;
    }

    .page-faq .resource-icon {
        width: 60px;
        height: 60px;
    }

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