/* style/faq.css */

/* Base styles for FAQ page content */
.page-faq {
    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 (#1a1a2e) */
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background-color: #017439; /* Brand color as background */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-faq__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-faq__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* General Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

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

.page-faq__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand color */
    border: 2px solid #017439;
}

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

/* Content Area */
.page-faq__content-area {
    padding: 60px 0;
    background-color: transparent; /* Inherit body background */
}

.page-faq__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

.page-faq__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-faq__image-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

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

/* FAQ Accordion */
.page-faq__accordion-group {
    margin-top: 40px;
}

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

.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); /* 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;
}

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

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '−' */
    color: #C30808; /* Red for active toggle */
}

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

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Sufficiently large for content */
    padding: 15px 25px 25px 25px;
}

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

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

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__hero-title {
        font-size: 2.5em;
    }
    .page-faq__hero-description {
        font-size: 1.1em;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__faq-question h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Fixed header offset for mobile */
    .page-faq__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__hero-title {
        font-size: 2em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__content-area {
        padding: 40px 0;
    }

    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__section-intro {
        font-size: 0.95em;
        padding: 0 15px;
    }

    /* Images responsiveness */
    .page-faq img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-faq__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 0 15px;
    }

    /* FAQ item padding for mobile */
    .page-faq__faq-item {
        margin: 0 15px 15px 15px;
    }
    .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: 10px 20px 20px 20px;
    }

    /* CTA buttons in FAQ answers */
    .page-faq__cta-buttons {
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        gap: 10px;
    }
}

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

/* Ensure no filter on images */
.page-faq img {
    filter: none;
}

/* Video styles (if any, not used in this FAQ but good to include for robustness) */
.page-faq video,
.page-faq__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.page-faq__video-section,
.page-faq__video-container,
.page-faq__video-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    .page-faq video,
    .page-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-faq__video-section,
    .page-faq__video-container,
    .page-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-faq__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}