/* style/faq.css */

/* Custom CSS Variables for Colors */
:root {
    --page-faq-bg: #08160F;
    --page-faq-card-bg: #11271B;
    --page-faq-text-main: #F2FFF6;
    --page-faq-text-secondary: #A7D9B8;
    --page-faq-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-faq-border: #2E7A4E;
    --page-faq-glow: #57E38D;
    --page-faq-gold: #F2C14E;
    --page-faq-divider: #1E3A2A;
    --page-faq-deep-green: #0A4B2C;
}

/* Base styles for the page, ensuring text contrast on dark body background */
.page-faq {
    background-color: var(--page-faq-bg); /* Dark background */
    color: var(--page-faq-text-main); /* Light text for contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Space above footer */
}

/* Ensure all links within page-faq have appropriate color and hover states */
.page-faq a {
    color: var(--page-faq-glow); /* Use a bright color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-faq a:hover {
    color: var(--page-faq-gold); /* Gold on hover for emphasis */
    text-decoration: underline;
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for image container */
    margin-bottom: 30px; /* Space between image and text */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

.page-faq__hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.page-faq__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: var(--page-faq-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-faq__description {
    font-size: 1.15rem;
    color: var(--page-faq-text-secondary);
    margin-bottom: 30px;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
}

.page-faq__btn-primary {
    background: var(--page-faq-btn-gradient);
    color: var(--page-faq-text-main);
    border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-faq__btn-secondary {
    background: transparent;
    color: var(--page-faq-glow);
    border: 2px solid var(--page-faq-glow);
}

.page-faq__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--page-faq-glow);
    color: var(--page-faq-bg); /* Darker text for contrast on bright glow */
}

/* FAQ List Section */
.page-faq__faq-list-section {
    padding: 60px 0;
}

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

.page-faq__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--page-faq-text-main);
    text-align: center;
    margin-bottom: 20px;
}

.page-faq__section-description {
    font-size: 1.1rem;
    color: var(--page-faq-text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.page-faq__faq-accordion {
    border: 1px solid var(--page-faq-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__faq-item {
    background-color: var(--page-faq-card-bg); /* Dark card background */
    border-bottom: 1px solid var(--page-faq-divider);
    margin-bottom: 0; /* Remove default margin */
}

.page-faq__faq-item:last-child {
    border-bottom: none;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--page-faq-text-main);
    cursor: pointer;
    background-color: var(--page-faq-card-bg);
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default details marker */
}

.page-faq__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-faq__faq-question:hover {
    background-color: var(--page-faq-deep-green); /* Slightly lighter dark green on hover */
}

.page-faq__faq-qtext {
    flex-grow: 1;
}

.page-faq__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-faq-glow);
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    content: "−"; /* Change content for opened state */
}

.page-faq__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--page-faq-text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
    max-height: 1000px; /* Sufficiently large height for content */
    padding-top: 10px;
    max-height: fit-content; /* Adjust to content height */
}

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

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

/* Call to Action Section */
.page-faq__cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-faq__cta-section .page-faq__container {
    background-color: var(--page-faq-deep-green); /* Use deep green for CTA background */
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-faq__cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--page-faq-text-main);
    margin-bottom: 15px;
}

.page-faq__cta-description {
    font-size: 1.1rem;
    color: var(--page-faq-text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top padding for mobile */
    }

    .page-faq__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-faq__main-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .page-faq__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .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__faq-list-section,
    .page-faq__cta-section {
        padding: 40px 0;
    }

    .page-faq__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__section-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .page-faq__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-faq__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-faq__faq-toggle {
        font-size: 1.5rem;
    }

    .page-faq__faq-answer {
        font-size: 0.9rem;
        padding: 0 20px 15px 20px;
    }

    .page-faq__cta-section .page-faq__container {
        padding: 30px;
    }

    .page-faq__cta-title {
        font-size: 2rem;
    }

    .page-faq__cta-description {
        font-size: 1rem;
    }

    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-faq__hero-image-wrapper,
    .page-faq__faq-accordion {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}