/* style/faq.css */

/* --- General Styles for .page-faq --- */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is dark #1a1a2e, so text is light */
    background-color: transparent; /* Main content background is handled by body or sections */
}

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

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

.page-faq__section-description,
.page-faq__cta-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0; /* Slightly off-white for readability on dark */
}

/* --- Hero Section --- */
.page-faq__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Clear fixed header */
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 500px;
    text-align: center;
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4); /* Darken image for text readability, not changing color */
}

.page-faq__hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-faq__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #FFFFFF;
}

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

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

.page-faq__cta-group--inline {
    margin-top: 20px;
}

.page-faq__cta-group--center {
    margin-top: 40px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

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

.page-faq__btn-primary:hover {
    background-color: #1e87b7; /* Darker shade for hover */
    border-color: #1e87b7;
}

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

.page-faq__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* --- Content Area --- */
.page-faq__content-area {
    padding: 60px 0;
}

.page-faq__dark-section {
    background-color: #1a1a2e; /* Matches body background for consistency */
    color: #ffffff;
}

.page-faq__light-bg {
    background-color: #f8f9fa; /* Light background for CTA section */
    color: #333333;
}

.page-faq__light-bg .page-faq__cta-title,
.page-faq__light-bg .page-faq__cta-description {
    color: #333333;
}

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

/* --- FAQ List --- */
.page-faq__faq-list {
    margin-top: 40px;
}

.page-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly darker for question header */
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

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

.page-faq__faq-question h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1em; /* Keep h3 size consistent within question div */
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #26A9E0; /* Brand color for toggle icon */
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    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 reveal content */
    padding: 20px;
}

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

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

.page-faq__faq-answer a {
    color: #26A9E0; /* Brand color for links */
    text-decoration: underline;
}

.page-faq__faq-answer a:hover {
    color: #1e87b7; /* Darker shade for hover */
}

/* --- Responsive Design --- */
/* Mobile */
@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-faq__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
        min-height: 400px;
        padding-bottom: 40px;
    }

    .page-faq__main-title {
        font-size: 2.2em;
    }

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

    .page-faq__cta-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent overflow */
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: 1.8em;
        padding: 0 15px;
    }

    .page-faq__section-description,
    .page-faq__cta-description {
        font-size: 0.9em;
        padding: 0 15px;
    }

    .page-faq__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__content-area,
    .page-faq__cta-section {
        padding: 40px 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Images responsive */
    .page-faq img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-faq__image-full-width {
        margin: 20px auto;
    }

    /* FAQ items responsive */
    .page-faq__faq-question {
        font-size: 1em;
        padding: 15px;
    }

    .page-faq__faq-answer {
        padding: 0 15px;
    }

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

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 3em;
    }

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

    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: 2.2em;
    }
}