/* style/faq.css */

/* General styles for the FAQ page */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Body background color from shared.css */
}

.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: 80px 0;
    text-align: center;
    background: #017439; /* Brand primary color for hero background */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Use header offset directly */
}

.page-faq__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Register/Login font color for emphasis */
}

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

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

/* Section Titles and Descriptions */
.page-faq__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #017439; /* Brand primary color for section titles */
    font-weight: bold;
}

.page-faq__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #333333; /* Dark text for light background */
}

/* FAQ List Section */
.page-faq__faq-list-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background for FAQ list */
    color: #333333; /* Dark text for light background */
}

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

.page-faq__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #017439; /* Primary brand color for question header */
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: #005f2e; /* Slightly darker green on hover */
}

.page-faq__faq-title {
    margin: 0;
    color: #ffffff;
}

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

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to X, or change to minus */
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding: 0 top/bottom, 20px left/right */
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #333333;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to accommodate content */
    padding: 20px !important; /* Adjust all padding values when active */
}

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

.page-faq__faq-answer ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: #333333;
}

.page-faq__faq-answer li {
    margin-bottom: 5px;
    color: #333333;
}

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

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

.page-faq__btn-primary:hover {
    background-color: #a00606; /* Darker red on hover */
    border-color: #a00606;
    color: #ffffff; /* White text on hover */
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: #017439; /* Primary brand color for secondary text */
    border: 2px solid #017439;
}

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

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

.page-faq__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-faq__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}