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

.page-faq {
    background-color: var(--page-faq-bg);
    color: var(--page-faq-text-main); /* Light text on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-faq__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-faq__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 20px;
    margin-top: -100px; /* Overlap slightly for visual effect, but not over the image itself */
    position: relative;
    z-index: 1; /* Ensure content is above any background elements, but not image */
    background: rgba(17, 39, 27, 0.8); /* Card BG with transparency for content box */
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--page-faq-border);
}

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    color: var(--page-faq-gold);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

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

.page-faq__section {
    padding: 60px 20px;
    border-bottom: 1px solid var(--page-faq-divider);
}

.page-faq__section:last-of-type {
    border-bottom: none;
}

.page-faq__dark-section {
    background-color: var(--page-faq-card-bg); /* Darker background for contrast */
}

.page-faq__container {
    width: 100%; /* Ensure container takes full width for flex items */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Ensure content padding */
    box-sizing: border-box;
}

.page-faq__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--page-faq-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-faq__sub-title {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    color: var(--page-faq-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-faq__text-block {
    font-size: 1rem;
    color: var(--page-faq-text-secondary);
    margin-bottom: 20px;
}

.page-faq__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-faq__list-item {
    background-color: rgba(17, 39, 27, 0.5); /* Semi-transparent card background */
    border-left: 4px solid var(--page-faq-gold);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: var(--page-faq-text-main);
    font-size: 1rem;
}

/* FAQ Accordion Styling */
.page-faq__faq-item-wrapper {
    margin-top: 30px;
}

.page-faq__faq-item {
    background-color: var(--page-faq-card-bg);
    border: 1px solid var(--page-faq-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--page-faq-text-main);
    background-color: var(--page-faq-deep-green); /* Slightly darker for question */
    border-bottom: 1px solid var(--page-faq-divider);
    list-style: none; /* Hide default marker for summary */
}

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

.page-faq__faq-qtext {
    flex-grow: 1;
    color: var(--page-faq-text-main);
}

.page-faq__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    width: 30px;
    text-align: center;
    color: var(--page-faq-gold);
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-faq__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1rem;
    color: var(--page-faq-text-secondary);
}

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

.page-faq__image-block {
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
}

.page-faq__illustration-image,
.page-faq__download-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center image */
}

/* CTA Buttons */
.page-faq__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 20px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 180px; /* Minimum width for buttons */
    text-align: center;
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-faq__btn-primary {
    background: var(--page-faq-btn-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: var(--page-faq-gold);
    border: 2px solid var(--page-faq-gold);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-faq__btn-secondary:hover {
    background-color: rgba(242, 193, 78, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

.page-faq__download-section {
    padding: 80px 20px;
    background-color: var(--page-faq-card-bg); /* Use card background as it's a distinct block */
    text-align: center;
    border-radius: 0; /* No specific border radius for section */
}

.page-faq__download-section .page-faq__section-title {
    color: var(--page-faq-gold);
}

.page-faq__download-section .page-faq__description {
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-faq__download-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__hero-content {
        margin-top: -80px;
    }
}

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

    .page-faq__hero-section {
        padding-bottom: 40px;
    }

    .page-faq__hero-content {
        margin-top: -60px;
        padding: 15px;
        border-radius: 10px;
    }

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

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

    .page-faq__section {
        padding: 40px 15px;
    }

    .page-faq__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-faq__sub-title {
        font-size: 1.3rem;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-faq__text-block {
        font-size: 0.95rem;
    }

    .page-faq__list-item {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

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

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

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

    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        margin-top: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        min-width: unset; /* Remove min-width for full flexibility */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__hero-section,
    .page-faq__download-section,
    .page-faq__faq-item-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-faq__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}