/* style/faq.css */

/* Biến CSS */
:root {
    --page-faq-primary-color: #1A1A2E;
    --page-faq-accent-color: #E94560;
    --page-faq-text-color-dark: #333333;
    --page-faq-text-color-light: #FFFFFF;
    --page-faq-bg-light: #F8F8F8;
    --page-faq-bg-dark: #1A1A2E;
    --page-faq-border-color: #e0e0e0;
}

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

.page-faq-hero {
    background: linear-gradient(135deg, var(--page-faq-bg-dark), #3A3A5E);
    color: var(--page-faq-text-color-light);
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-faq-hero-content {
    max-width: 800px;
}

.page-faq-title {
    font-size: 3.2em;
    margin-bottom: 15px;
    color: var(--page-faq-text-color-light);
    font-weight: bold;
    line-height: 1.2;
}

.page-faq-subtitle {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

.page-faq-btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.page-faq-btn-primary {
    background-color: var(--page-faq-accent-color);
    color: var(--page-faq-text-color-light);
}

.page-faq-btn-primary:hover {
    background-color: #c7374d;
    transform: translateY(-2px);
}

.page-faq-btn-secondary {
    background-color: transparent;
    color: var(--page-faq-text-color-light);
    border: 2px solid var(--page-faq-text-color-light);
}

.page-faq-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.page-faq-btn-small {
    padding: 10px 20px;
    font-size: 0.95em;
    border-radius: 6px;
    margin-top: 15px;
}

.page-faq-hero-image-wrapper {
    width: 100%;
    max-width: 600px;
    margin-top: 30px;
}

.page-faq-hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-faq-section {
    max-width: 960px;
    margin: 60px auto;
    padding: 0 20px;
    background-color: var(--page-faq-text-color-light);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-faq-section-title {
    font-size: 2.2em;
    color: var(--page-faq-primary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    font-weight: 700;
}

.page-faq-accordion {
    margin-bottom: 40px;
}

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

.page-faq-item[open] {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-faq-question {
    display: block;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--page-faq-primary-color);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    user-select: none;
}

.page-faq-question:hover {
    color: var(--page-faq-accent-color);
}

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

.page-faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-faq-item[open] .page-faq-question::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.page-faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--page-faq-text-color-dark);
}

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

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

.page-faq-link-inline {
    color: var(--page-faq-accent-color);
    text-decoration: none;
    font-weight: 600;
}

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

.page-faq-image-inline {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq-contact-cta {
    background: linear-gradient(135deg, var(--page-faq-accent-color), #f76b81);
    color: var(--page-faq-text-color-light);
    padding: 60px 20px;
    text-align: center;
    margin: 60px auto;
    border-radius: 12px;
    max-width: 960px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-faq-contact-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: var(--page-faq-text-color-light);
    font-weight: bold;
}

.page-faq-contact-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    opacity: 0.9;
}

.page-faq-contact-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .page-faq-hero {
        flex-direction: row;
        text-align: left;
        padding: 100px 40px;
        justify-content: space-between;
    }

    .page-faq-hero-content {
        flex: 1;
        margin-right: 40px;
    }

    .page-faq-hero-image-wrapper {
        flex: 1;
        margin-top: 0;
    }

    .page-faq-hero-buttons {
        justify-content: flex-start;
    }

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

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

    .page-faq-section {
        padding: 20px 40px;
    }

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

    .page-faq-contact-cta {
        flex-direction: row;
        text-align: left;
        padding: 80px 40px;
        justify-content: space-between;
    }

    .page-faq-contact-content {
        flex: 1;
        margin-right: 40px;
    }

    .page-faq-contact-image {
        flex: 1;
        max-width: 300px;
    }
}

@media (max-width: 767px) {
    .page-faq-title {
        font-size: 2.5em;
    }

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

    .page-faq-btn {
        padding: 12px 25px;
        font-size: 1em;
    }

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

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

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

    .page-faq-question::after {
        right: 20px;
    }

    .page-faq-answer {
        padding: 0 20px 18px 20px;
    }

    .page-faq-contact-title {
        font-size: 2em;
    }

    .page-faq-contact-text {
        font-size: 1em;
    }
}