/* style/faq.css */

/* --- General Page Styling --- */
.page-faq {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Apply once to main content area */
}

.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: #ffffff;
    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;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* --- Hero Section --- */
.page-faq__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px; /* Adjust height as needed */
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    padding: 60px 20px; /* Regular padding for internal spacing */
    box-sizing: border-box;
}

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

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

.page-faq__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF; /* Ensure high contrast */
}

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

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

/* --- Buttons --- */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-register {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Important for mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-faq__btn-primary {
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text for contrast */
    border: 2px solid #017439;
}

.page-faq__btn-primary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-faq__btn-secondary {
    background-color: #ffffff; /* Auxiliary color */
    color: #017439; /* Brand primary color for text */
    border: 2px solid #017439;
}

.page-faq__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

.page-faq__btn-register {
    background-color: #C30808; /* Custom register color */
    color: #FFFF00; /* Custom register font color */
    border: 2px solid #C30808;
}

.page-faq__btn-register:hover {
    background-color: #9a0606;
    border-color: #9a0606;
}

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

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

.page-faq__dark-section {
    background-color: #0a0a0a; /* Ensure background is dark for light text */
    color: #ffffff;
}

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

.page-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    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.1); /* Slightly darker for question header */
    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;
    font-size: 1.3em;
    color: #ffffff; /* Ensure high contrast */
}

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

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

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px; /* Initial padding for collapsed state */
    color: #f0f0f0; /* Light text for answer content */
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content, use !important */
    padding: 15px 25px; /* Padding when expanded */
}

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

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

/* --- Images in Content --- */
.page-faq__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* --- CTA Section --- */
.page-faq__cta-section {
    background-color: #017439; /* Brand primary color for CTA background */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.page-faq__cta-title {
    color: #ffffff;
    font-size: 2.2em;
    margin-bottom: 15px;
}

.page-faq__cta-description {
    color: #f0f0f0;
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

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

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

@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Reinforce for mobile */
    }

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

    .page-faq__hero-section {
        height: auto;
        padding: 40px 15px; /* Keep internal padding, header offset handled by .page-faq */
    }

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

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

    .page-faq__hero-buttons,
    .page-faq__cta-buttons,
    .page-faq__button-group {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq__btn-register,
    .page-faq a[class*="button"],
    .page-faq a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

    .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;
    }

    .page-faq__faq-question h3 {
        font-size: 1.1em;
    }

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

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

    /* Images responsive */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Ensure content containers also adapt */
    .page-faq__section,
    .page-faq__card,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-title {
        font-size: 1.8em;
    }
    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: 1.5em;
    }
    .page-faq__faq-question h3 {
        font-size: 1em;
    }
}