/* style/faq.css */

/* --- General Page Styles --- */
.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css #121212 */
}

.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: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-faq__section-description,
.page-faq__cta-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero Section --- */
.page-faq__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    background-color: #00008B; /* Auxiliary dark blue background */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-faq__dark-bg {
    background-color: #00008B; /* Auxiliary dark blue */
    color: #ffffff;
}

.page-faq__light-bg {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
    color: #f0f0f0;
}


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

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

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__btn-primary {
    background-color: #FFD700;
    color: #00008B;
    border: 2px solid #FFD700;
}

.page-faq__btn-primary:hover {
    background-color: #e6c200;
    color: #00008B;
    border-color: #e6c200;
    transform: translateY(-3px);
}

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

.page-faq__btn-secondary:hover {
    background-color: #FFD700;
    color: #00008B;
    border-color: #FFD700;
    transform: translateY(-3px);
}

.page-faq__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    display: block;
}

/* --- Accordion Section (FAQ) --- */
.page-faq__accordion-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Lighter dark background for contrast */
    color: #f0f0f0;
}

.page-faq__faq-list {
    margin-top: 40px;
}

.page-faq__faq-item {
    background-color: #2a2a2a; /* Darker card background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: #00008B; /* Auxiliary dark blue for question header */
    color: #FFD700;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-faq__faq-question h3 {
    margin: 0;
    font-size: 1.2em; /* Ensure h3 font size is consistent */
    color: inherit; /* Inherit color from parent (.page-faq__faq-question) */
}

.page-faq__faq-question:hover {
    background-color: #00006b;
    color: #ffd700;
}

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

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

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

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content, !important for JS toggle */
    padding: 20px 30px;
}

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

.page-faq__faq-answer strong {
    color: #FFD700; /* Highlight keywords */
}

.page-faq__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Ensure all images in content area are responsive and meet minimum size */
.page-faq__accordion-section img {
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}


/* --- Call to Action Section --- */
.page-faq__cta-section {
    padding: 80px 20px;
    background-color: #00008B; /* Auxiliary dark blue */
    text-align: center;
    color: #ffffff;
}

.page-faq__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 2.8em;
    }
    .page-faq__hero-description {
        font-size: 1.2em;
    }
    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        flex-direction: column;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-faq__hero-content {
        padding: 15px;
        margin-bottom: 20px;
    }

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

    .page-faq__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-faq__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

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

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

    .page-faq__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-faq__faq-question h3 {
        font-size: 1.1em;
    }

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

    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size even on mobile */
        min-height: 200px !important; /* Enforce min size even on mobile */
    }

    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__hero-section,
    .page-faq__accordion-section,
    .page-faq__cta-section,
    .page-faq__faq-item,
    .page-faq__hero-buttons,
    .page-faq__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-faq__hero-buttons,
    .page-faq__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}