/* style/faq.css */

/* Variables for consistent styling */
:root {
    --page-faq-primary-color: #1A1A2E;
    --page-faq-secondary-color: #E94560;
    --page-faq-text-light: #F5F5F5; /* For dark backgrounds */
    --page-faq-text-dark: #333333; /* For light backgrounds */
    --page-faq-accent-color: #16ba9f; /* Complementary to secondary */
    --page-faq-border-color: #3A3A4A;
    --page-faq-hover-light: #5f5f6d;
    --page-faq-hover-dark: #a33043;
}

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

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

.page-faq__hero-section {
    background: linear-gradient(135deg, var(--page-faq-primary-color) 0%, #3a1a4e 50%, var(--page-faq-secondary-color) 100%);
    padding: 100px 0;
    text-align: center;
    color: var(--page-faq-text-light);
    position: relative;
    overflow: hidden;
}

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

.page-faq__hero-subtitle {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.page-faq__hero-button {
    display: inline-block;
    background-color: var(--page-faq-secondary-color);
    color: var(--page-faq-text-light);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--page-faq-secondary-color);
}

.page-faq__hero-button:hover {
    background-color: var(--page-faq-hover-dark);
    transform: translateY(-3px);
    border-color: var(--page-faq-hover-dark);
}

.page-faq__content-section {
    padding: 60px 0;
    background-color: #282844; /* Slightly lighter than primary for contrast */
    color: var(--page-faq-text-light);
}

.page-faq__section-title {
    font-size: 2.5em;
    color: var(--page-faq-secondary-color);
    text-align: center;
    margin-bottom: 50px;
    font-weight: bold;
}

.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-faq__faq-item {
    background-color: var(--page-faq-primary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-faq-border-color);
}

.page-faq__faq-question {
    font-size: 1.4em;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--page-faq-primary-color);
    color: var(--page-faq-text-light);
    border-bottom: 1px solid var(--page-faq-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.page-faq__faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

.page-faq__faq-question:hover {
    background-color: #2A2A48;
}

.page-faq__faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    background-color: #2A2A48;
    color: #CCCCCC;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 500px; /* Adjust as needed for content length */
    padding: 20px 25px;
}

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

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

.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__link {
    color: var(--page-faq-secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-faq__button {
    display: inline-block;
    background-color: var(--page-faq-secondary-color);
    color: var(--page-faq-text-light);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 15px;
    border: none;
}

.page-faq__button:hover {
    background-color: var(--page-faq-hover-dark);
    transform: translateY(-2px);
}

.page-faq__button--secondary {
    background-color: var(--page-faq-accent-color);
    border: 2px solid var(--page-faq-accent-color);
}

.page-faq__button--secondary:hover {
    background-color: #129b83;
    border-color: #129b83;
}

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

.page-faq__button--outline:hover {
    background-color: var(--page-faq-secondary-color);
    color: var(--page-faq-text-light);
}

.page-faq__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-section {
    background-color: var(--page-faq-secondary-color);
    padding: 80px 0;
    text-align: center;
    color: var(--page-faq-text-light);
}

.page-faq__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--page-faq-text-light);
}

.page-faq__cta-description {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

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

.page-faq__button--primary {
    background-color: var(--page-faq-primary-color);
    border: 2px solid var(--page-faq-primary-color);
    color: var(--page-faq-text-light);
}

.page-faq__button--primary:hover {
    background-color: #3A3A5E;
    border-color: #3A3A5E;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-faq__hero-title {
        font-size: 2.5em;
    }

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

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

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

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

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

    .page-faq__cta-description {
        font-size: 1em;
    }

    .page-faq__cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-faq__hero-button,
    .page-faq__button {
        width: 80%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-title {
        font-size: 2em;
    }

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

    .page-faq__faq-question {
        font-size: 1em;
    }

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