/* style/faq.css */

/* --- Base Styles --- */
.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is #121212 (dark), so use light text */
    background-color: #121212; /* Ensure consistency with shared body background */
}

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

.page-faq__section {
    padding: 60px 0;
}

.page-faq__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

/* --- Hero Section --- */
.page-faq__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: #FFFFFF;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-color: #1a1a1a; /* Slightly lighter dark background for hero */
}

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

.page-faq__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-faq__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand primary color */
    font-weight: bold;
}

.page-faq__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-faq__hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* --- Buttons --- */
.page-faq__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-faq__btn-primary:hover {
    background-color: #1e87b7;
    transform: translateY(-2px);
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-faq__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* CTA Buttons */
.page-faq__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 10px;
}

/* --- FAQ List --- */
.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for cards */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.page-faq__faq-heading {
    margin: 0;
    font-size: 1.3em;
    color: #26A9E0; /* Brand primary color for questions */
    font-weight: 600;
}

.page-faq__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFFFF;
    transition: transform 0.3s ease;
    line-height: 1;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 15px 25px 25px;
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-faq__faq-answer a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-faq__faq-answer a:hover {
    text-decoration: underline;
}

.page-faq__answer-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* --- CTA Section --- */
.page-faq__cta-section {
    background-color: #26A9E0; /* Brand primary color background */
    color: #FFFFFF;
    text-align: center;
    padding: 80px 0;
}

.page-faq__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-faq__cta-button.page-faq__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #FFFFFF;
}

.page-faq__cta-button.page-faq__btn-secondary:hover {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-faq__hero-title {
        font-size: 3em;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-faq__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
    }
    .page-faq__hero-title {
        font-size: 2.2em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__hero-content {
        padding: 15px;
    }
    .page-faq__hero-button,
    .page-faq__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__section {
        padding: 40px 0;
    }
    .page-faq__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-faq__faq-question {
        padding: 15px 20px;
    }
    .page-faq__faq-heading {
        font-size: 1.1em;
    }
    .page-faq__faq-answer {
        padding: 0 20px;
    }
    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px 20px 20px;
    }

    .page-faq__cta-section {
        padding: 60px 0;
    }
    .page-faq__cta-title {
        font-size: 1.8em;
    }
    .page-faq__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to button container on mobile */
    }

    /* Mobile image responsive adaptation */
    .page-faq img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* Ensure no filter on images */
    }
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-faq__container for main sections */
    }
}

@media (max-width: 480px) {
    .page-faq__hero-title {
        font-size: 1.8em;
    }
    .page-faq__hero-button {
        font-size: 0.9em;
        padding: 10px 20px;
    }
    .page-faq__section-title {
        font-size: 1.5em;
    }
    .page-faq__faq-heading {
        font-size: 1em;
    }
    .page-faq__cta-title {
        font-size: 1.5em;
    }
}