/* style/faq.css */

/* Base styles for the FAQ page content */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity, assuming shared.css doesn't set body background */
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 40px;
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-faq__hero-content {
    max-width: 900px;
    z-index: 1;
}

.page-faq__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFF00; /* Register/Login font color for prominence */
}

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

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

.page-faq__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* Subtly blend with background color */
}

/* Section Titles and Descriptions */
.page-faq__section-title {
    font-size: 2.2em;
    color: #017439; /* Brand primary color */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-faq__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Accordion Section (FAQ List) */
.page-faq__accordion-section {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light background for contrast */
}

.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__faq-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    color: #333333;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #017439; /* Brand primary color for questions */
    cursor: pointer;
    background-color: #e6f7ed; /* Lighter shade of brand color for summary background */
    border-bottom: 1px solid #d4eeda;
}

/* Styling for details/summary */
.page-faq__faq-item[open] .page-faq__faq-question {
    border-bottom: 1px solid #017439;
}

.page-faq__faq-item summary {
    list-style: none; /* Remove default marker */
}
.page-faq__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'X' or similar */
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
}

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

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

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

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

/* Call to Action Section */
.page-faq__cta-section {
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
}

.page-faq__cta-content {
    max-width: 800px;
}

.page-faq__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for prominence */
}

.page-faq__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
}

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

/* 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;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

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

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

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