/* style/faq.css */

/* Base styles for the FAQ page, ensuring light text on dark body background */
.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 */
}

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

.page-faq__container--center {
    text-align: center;
}

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

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

.page-faq__intro-text {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* 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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.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: #a00606;
    border-color: #a00606;
}

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

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

.page-faq__btn--small {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* Content Area */
.page-faq__content-area {
    padding: 60px 0;
    background-color: #0a0a0a; /* Dark background matching body from shared.css */
    color: #ffffff; /* Light text on dark background */
}

.page-faq__section-title {
    font-size: 2em;
    color: #017439; /* Brand color for titles */
    margin-top: 40px;
    margin-bottom: 30px;
    text-align: center;
}

/* FAQ List */
.page-faq__faq-list {
    margin-top: 30px;
}

.page-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for 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: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.page-faq__faq-question-title {
    margin: 0;
    color: #ffffff; /* Ensure title is white */
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
    color: #017439; /* Brand color for toggle icon */
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg);
    /* content: "−"; Set in JS */
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0; /* Slightly off-white for body text */
}

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

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

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

/* Images */
.page-faq__image {
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    /* No filter allowed */
}

.page-faq__image--full-width {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.page-faq__image--center {
    margin-left: auto;
    margin-right: auto;
}

/* Contact CTA Section */
.page-faq__contact-cta {
    background-color: #0a0a0a; /* Dark background */
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__contact-title {
    font-size: 2.2em;
    color: #017439; /* Brand color */
    margin-bottom: 20px;
}

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


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

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

    .page-faq__intro-text {
        font-size: 1em;
    }

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding for buttons */
    }
}