/* style/faq.css */

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background from shared.css */
    padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
}

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

.page-faq__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-faq__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 40px;
    border-radius: 10px;
    background: rgba(1, 116, 57, 0.8); /* Semi-transparent brand color background */
}

.page-faq__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

/* Section Titles and Descriptions */
.page-faq__section-title {
    font-size: 2.2em;
    color: #ffffff; /* Default for dark sections */
    text-align: center;
    margin-bottom: 20px;
}

.page-faq__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Default for dark sections */
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Intro Section */
.page-faq__intro-section {
    padding: 60px 0;
    background-color: #f5f5f5; /* Light background for intro */
    color: #333333; /* Dark text for light background */
}

.page-faq__intro-section .page-faq__section-title {
    color: #017439; /* Brand color for title on light background */
}

.page-faq__intro-section .page-faq__section-description {
    color: #333333;
}

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

/* Accordion Section (FAQ List) */
.page-faq__accordion-section {
    padding: 60px 0;
    background-color: #017439; /* Brand primary color background */
}

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

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

.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.05);
    transition: background-color 0.3s ease;
}

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

.page-faq__faq-heading {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
}

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

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or 'minus' effect */
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding 0 */
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    color: #f0f0f0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content, !important for override */
    padding: 20px 25px; /* Expanded padding */
}

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

.page-faq__faq-answer .page-faq__faq-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-link {
    display: inline-block;
    color: #ffcc00; /* Highlight link color */
    text-decoration: underline;
    margin-top: 10px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-faq__faq-link:hover {
    color: #fff;
}

/* Call to Action Section */
.page-faq__cta-section {
    padding: 60px 0;
    background-color: #f5f5f5; /* Light background */
    color: #333333; /* Dark text */
}

.page-faq__cta-section .page-faq__section-title {
    color: #017439; /* Brand color for title on light background */
}

.page-faq__cta-section .page-faq__section-description {
    color: #333333;
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    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;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

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

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

/* Image specific styles */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-faq__hero-section {
        height: 500px;
    }
    .page-faq__main-title {
        font-size: 2.2em;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__hero-content {
        padding: 30px;
    }
}

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

    .page-faq__container {
        padding: 0 15px;
    }

    .page-faq__hero-section {
        height: 400px;
    }
    .page-faq__main-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-faq__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-faq__hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__section-title {
        font-size: 1.6em;
    }
    .page-faq__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-faq__faq-question {
        padding: 15px 20px;
    }
    .page-faq__faq-heading {
        font-size: 1.1em;
    }
    .page-faq__faq-answer {
        padding: 0 20px;
    }
    .page-faq__faq-item.active .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;
    }
    
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__hero-section,
    .page-faq__intro-section,
    .page-faq__accordion-section,
    .page-faq__cta-section {
        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-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure button containers handle wrap */
    .page-faq__hero-buttons,
    .page-faq__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0; /* Remove extra padding if any */
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: 1.5em;
    }
    .page-faq__hero-content {
        padding: 20px;
    }
    .page-faq__section-title {
        font-size: 1.4em;
    }
    .page-faq__faq-heading {
        font-size: 1em;
    }
}