/* style/faq.css */

/* Variables for colors and spacing */
:root {
    --page-faq-primary-color: #FFD700; /* Bright gold */
    --page-faq-secondary-color: #000080; /* Dark blue */
    --page-faq-text-dark: #333333; /* Dark text for light backgrounds */
    --page-faq-text-light: #FFFFFF; /* Light text for dark backgrounds */
    --page-faq-accent-color: #0028ff; /* Complementary to primary for emphasis */
    --page-faq-background-light: #f8f8f8;
    --page-faq-background-dark: #0a0a2a; /* Slightly darker than secondary for background */
}

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

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

/* Hero Section */
.page-faq__hero {
    position: relative;
    background: linear-gradient(135deg, var(--page-faq-primary-color) 0%, var(--page-faq-secondary-color) 100%);
    color: var(--page-faq-text-light);
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    z-index: 0;
}

.page-faq__hero .page-faq__container {
    position: relative;
    z-index: 1;
}

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

.page-faq__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-faq-text-light);
}

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

/* Buttons */
.page-faq__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
}

.page-faq__button--primary {
    background-color: var(--page-faq-primary-color);
    color: var(--page-faq-secondary-color); /* Dark blue text on gold button */
    border: 2px solid var(--page-faq-primary-color);
}

.page-faq__button--primary:hover {
    background-color: #e6c200; /* Slightly darker gold */
    transform: translateY(-2px);
}

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

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

.page-faq__button--link {
    background-color: var(--page-faq-secondary-color);
    color: var(--page-faq-text-light);
    border: 1px solid var(--page-faq-secondary-color);
    padding: 8px 15px;
    font-size: 0.9em;
    margin-top: 15px;
}

.page-faq__button--link:hover {
    background-color: #1a1a9a; /* Slightly lighter dark blue */
}


/* Content Section */
.page-faq__section {
    padding: 60px 0;
    background-color: var(--page-faq-background-light);
}

.page-faq__section--content {
    background-color: var(--page-faq-background-light);
}

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

/* Accordion (FAQ items) */
.page-faq__accordion {
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__accordion-item {
    background-color: var(--page-faq-text-light);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-faq__accordion-item[open] {
    border-color: var(--page-faq-primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    background-color: var(--page-faq-text-light);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.page-faq__accordion-header:hover {
    background-color: #f0f0f0;
}

.page-faq__accordion-title {
    font-size: 1.3em;
    color: var(--page-faq-secondary-color);
    margin: 0;
    font-weight: 600;
}

.page-faq__accordion-header::after {
    content: '+';
    font-size: 1.5em;
    color: var(--page-faq-primary-color);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.page-faq__accordion-item[open] .page-faq__accordion-header::after {
    content: '-';
    transform: rotate(180deg);
}

.page-faq__accordion-content {
    padding: 20px 25px 25px;
    border-top: 1px solid #eee;
    color: var(--page-faq-text-dark);
    font-size: 1.05em;
}

.page-faq__accordion-content p {
    margin-bottom: 15px;
}

.page-faq__accordion-content a {
    color: var(--page-faq-secondary-color);
    text-decoration: underline;
}

.page-faq__accordion-content a:hover {
    color: var(--page-faq-primary-color);
}

.page-faq__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* CTA Section at the bottom */
.page-faq__cta-section {
    background-color: var(--page-faq-secondary-color);
    color: var(--page-faq-text-light);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-faq__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1; /* Subtle background image */
    z-index: 0;
}

.page-faq__cta-content {
    position: relative;
    z-index: 1;
}

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

.page-faq__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-faq-text-light);
}

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

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

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

    .page-faq__accordion-header {
        padding: 15px 20px;
    }

    .page-faq__accordion-title {
        font-size: 1.1em;
    }

    .page-faq__accordion-content {
        padding: 15px 20px 20px;
    }

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

@media (max-width: 480px) {
    .page-faq__hero-title {
        font-size: 2em;
    }
    .page-faq__hero-cta {
        flex-direction: column;
    }
    .page-faq__button {
        width: 80%;
        margin: 0 auto;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__cta-title {
        font-size: 1.8em;
    }
}