/* style/faq.css */

/* Variables for colors */
:root {
    --page-faq-primary-color: #0A2C4A; /* Deep Blue */
    --page-faq-secondary-color: #FFD700; /* Gold */
    --page-faq-text-light: #ffffff;
    --page-faq-text-dark: #333333; /* Dark for light backgrounds */
    --page-faq-text-muted: #cccccc;
    --page-faq-background-light: #f5f5f5;
    --page-faq-background-dark: #1a3a5a; /* Slightly lighter than primary for contrast */
}

.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 {
    background: linear-gradient(135deg, var(--page-faq-primary-color), var(--page-faq-background-dark));
    color: var(--page-faq-text-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

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

.page-faq__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--page-faq-secondary-color);
    position: relative;
    z-index: 1;
}

.page-faq__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* General Buttons */
.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;
    cursor: pointer;
    border: none;
    font-size: 1em;
    position: relative;
    z-index: 1;
}

.page-faq__btn--primary {
    background-color: var(--page-faq-secondary-color);
    color: var(--page-faq-primary-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-faq__btn--primary:hover {
    background-color: #e6c200; /* Slightly darker gold */
    color: var(--page-faq-primary-color);
}

.page-faq__btn--secondary {
    background-color: var(--page-faq-primary-color);
    color: var(--page-faq-secondary-color);
    border: 2px solid var(--page-faq-secondary-color);
    margin-left: 15px;
}

.page-faq__btn--secondary:hover {
    background-color: var(--page-faq-background-dark);
    color: var(--page-faq-secondary-color);
}

/* Section Titles */
.page-faq__section-title {
    font-size: 2.5em;
    color: var(--page-faq-primary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

/* Accordion Section */
.page-faq__questions-section {
    padding: 40px 0;
    background-color: var(--page-faq-background-light);
}

.page-faq__accordion {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-faq__accordion-item {
    border-bottom: 1px solid #e0e0e0;
    background-color: #ffffff;
}

.page-faq__accordion-item:last-child {
    border-bottom: none;
}

.page-faq__accordion-header {
    width: 100%;
    padding: 20px 25px;
    background-color: #ffffff;
    border: none;
    text-align: left;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--page-faq-primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

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

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

.page-faq__accordion-header.active::after {
    content: '-';
    transform: rotate(0deg); /* No rotation needed for '-' */
}

.page-faq__accordion-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #fcfcfc;
    color: var(--page-faq-text-dark);
}

.page-faq__accordion-content p {
    padding-bottom: 20px;
    margin: 0;
}

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

/* Links within content */
.page-faq__link-text {
    color: var(--page-faq-primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-faq__link-text:hover {
    color: var(--page-faq-secondary-color);
}


/* Call to Action Section */
.page-faq__cta-section {
    background: var(--page-faq-primary-color);
    color: var(--page-faq-text-light);
    padding: 60px 0;
    text-align: center;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

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

.page-faq__cta-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

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

.page-faq__cta-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.page-faq__cta-buttons .page-faq__btn {
    margin: 0 10px;
}

/* Responsive Design */
@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 {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

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

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

    .page-faq__cta-buttons {
        flex-direction: column;
        display: flex;
        gap: 15px;
    }
    .page-faq__cta-buttons .page-faq__btn {
        margin: 0;
    }
    .page-faq__btn--secondary {
        margin-left: 0;
    }
}

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

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

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

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