/* style/faq.css */

/* Base styling for the FAQ page */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for default light body background */
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff; /* White text over dark/rich image */
    text-align: center;
    padding: 80px 20px; /* Adjust padding to fit content better */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px; /* Minimum height for hero section */
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Place image behind content */
}

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

.page-faq__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffc107; /* Auxiliary color for title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-faq__hero-button {
    display: inline-block;
    background-color: #007bff; /* Primary color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 1.1em;
}

.page-faq__hero-button:hover {
    background-color: #0056b3; /* Darker primary on hover */
}

/* Accordion Section */
.page-faq__accordion-section {
    padding: 60px 20px;
    background-color: #f9f9f9; /* Light background for content area */
}

.page-faq__container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-faq__section-title {
    font-size: 2.2em;
    color: #007bff; /* Primary color for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-faq__faq-category {
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-faq__category-title {
    font-size: 1.8em;
    color: #007bff; /* Primary color for category titles */
    background-color: #eaf4ff; /* Light blue background for category header */
    padding: 20px;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
}

.page-faq__faq-item {
    border-bottom: 1px solid #eee;
}

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

.page-faq__faq-question {
    width: 100%;
    background-color: #ffffff;
    color: #333333;
    border: none;
    padding: 20px 25px;
    text-align: left;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

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

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

.page-faq__faq-question:hover {
    background-color: #f0f0f0;
}

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

.page-faq__faq-answer.active {
    max-height: 500px; /* Adjust as needed for content length */
    padding: 20px 25px;
}

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

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

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

.page-faq__faq-image {
    width: 400px; /* Ensure images are not too small */
    height: auto;
    max-width: 100%; /* Responsive */
    border-radius: 8px;
    margin-top: 15px;
    display: block;
    object-fit: cover;
    /* No filter allowed */
}

/* Call to Action Section */
.page-faq__call-to-action {
    background-color: #007bff; /* Primary color background */
    color: #ffffff;
    padding: 50px 20px;
    text-align: center;
    border-radius: 10px;
    margin-top: 60px;
}

.page-faq__call-to-action-title {
    font-size: 2em;
    color: #ffc107; /* Auxiliary color for emphasis */
    margin-bottom: 20px;
}

.page-faq__call-to-action-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__call-to-action-button {
    display: inline-block;
    background-color: #ffc107; /* Auxiliary color for primary CTA */
    color: #333333;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 1.1em;
    margin: 10px;
}

.page-faq__call-to-action-button:hover {
    background-color: #e0a800; /* Darker auxiliary on hover */
}

.page-faq__call-to-action-button--secondary {
    background-color: #ffffff;
    color: #007bff;
    border: 2px solid #007bff;
}

.page-faq__call-to-action-button--secondary:hover {
    background-color: #eaf4ff;
    color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 60px 15px;
        min-height: 350px;
    }

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

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

    .page-faq__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }

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

    .page-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-faq__category-title {
        font-size: 1.5em;
        padding: 15px;
    }

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

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

    .page-faq__faq-image {
        max-width: 100%; /* Ensure images don't overflow */
        height: auto;
        min-width: 200px; /* Ensure images are not too small */
        min-height: 200px;
    }

    .page-faq__call-to-action {
        padding: 40px 15px;
    }

    .page-faq__call-to-action-title {
        font-size: 1.8em;
    }

    .page-faq__call-to-action-description {
        font-size: 1em;
    }

    .page-faq__call-to-action-button {
        padding: 12px 25px;
        font-size: 1em;
        margin: 8px;
    }
}

/* Ensure all images within .page-faq are at least 200px wide/high */
.page-faq img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%; /* Override any smaller sizes */
    height: auto;
}

/* Specific override for hero image if needed, but hero image is typically large */
.page-faq__hero-image {
    min-width: auto; /* Hero image can be smaller if aspect ratio makes it */
    min-height: auto;
}

/* Override for image elements inside faq answers to ensure min-size */
.page-faq__faq-answer img {
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    /* CRITICAL: Mobile content area images must be max-width: 100%; height: auto; */
    .page-faq img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Still apply min-width for mobile */
        min-height: 200px; /* Still apply min-height for mobile */
    }

    .page-faq__hero-image {
        min-width: auto;
        min-height: auto;
    }

    /* Ensure no horizontal scroll caused by .page-faq content */
    .page-faq {
        overflow-x: hidden;
    }
}