/* style/faqs.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-faqs {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css or global, but content sections will define their own */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

/* Hero Section */
.page-faqs__hero-section {
    position: relative;
    padding: 80px 20px;
    background-color: #0A2463; /* Main brand color for hero background */
    color: #ffffff;
    text-align: center;
    overflow: hidden; /* For image positioning */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    box-sizing: border-box;
}

.page-faqs__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Send image to back */
}

.page-faqs__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Slightly dim the image to keep text readable */
    filter: brightness(0.6); /* Further dim to ensure contrast */
}

.page-faqs__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative; /* Bring content to front */
    z-index: 1;
}

.page-faqs__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Auxiliary brand color for title */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faqs__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* CTA Buttons */
.page-faqs__cta-button {
    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, transform 0.3s ease;
    cursor: pointer;
    margin: 10px;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-faqs__btn-primary {
    background-color: #FFD700; /* Auxiliary brand color */
    color: #0A2463; /* Main brand color for text */
    border: 2px solid #FFD700;
}

.page-faqs__btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-faqs__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Auxiliary brand color */
    border: 2px solid #FFD700;
}

.page-faqs__btn-secondary:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
}

/* FAQ Section */
.page-faqs__faq-section {
    padding: 60px 20px;
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast with body */
    color: #f0f0f0;
    box-sizing: border-box;
}

.page-faqs__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 50px;
    font-weight: bold;
}

.page-faqs__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-faqs__faq-category {
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3); /* Darker background for categories */
}

.page-faqs__category-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    text-align: center;
}

.page-faqs__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Very subtle light background for items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faqs__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    background-color: rgba(10, 36, 99, 0.8); /* Main brand color, slightly transparent */
    transition: background-color 0.3s ease;
}

.page-faqs__faq-question:hover {
    background-color: #0A2463;
}

.page-faqs__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFD700;
}

.page-faqs__faq-item.active .page-faqs__faq-toggle {
    transform: rotate(45deg);
}

.page-faqs__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding 0 */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.03); /* Lighter background for answer content */
}

.page-faqs__faq-item.active .page-faqs__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content, !important as per requirement */
    padding: 15px 25px 25px 25px; /* Padding when active */
}

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

.page-faqs__faq-answer ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-faqs__faq-answer strong {
    color: #FFD700;
}

/* Images within FAQ answers */
.page-faqs__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* CTA Banner Section */
.page-faqs__cta-banner {
    padding: 80px 20px;
    background-color: #0A2463; /* Main brand color */
    color: #ffffff;
    text-align: center;
    box-sizing: border-box;
}

.page-faqs__cta-title {
    font-size: 2.8em;
    color: #FFD700;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-faqs__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

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

    .page-faqs__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }

    .page-faqs__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-faqs__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-faqs__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        width: 100%; /* Full width buttons on mobile */
        margin: 10px 0;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faqs__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    .page-faqs__faq-section {
        padding: 40px 15px;
    }

    .page-faqs__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-faqs__category-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .page-faqs__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-faqs__faq-toggle {
        font-size: 1.2em;
    }

    .page-faqs__faq-answer {
        padding: 0 20px;
    }

    .page-faqs__faq-item.active .page-faqs__faq-answer {
        padding: 10px 20px 20px 20px;
    }

    .page-faqs__content-image {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Container for images to prevent overflow */
    .page-faqs__faq-answer,
    .page-faqs__hero-section,
    .page-faqs__faq-section,
    .page-faqs__cta-banner,
    .page-faqs__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-faqs__faq-category {
        padding: 15px;
    }

    .page-faqs__cta-banner {
        padding: 60px 15px;
    }

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

    .page-faqs__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
}