/* style/faq.css */

:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

/* Base styles for the page, assuming a dark body background from shared.css */
.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Light text for dark background */
    background-color: var(--color-background); /* Ensure consistent background */
    line-height: 1.6;
}

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

.page-faq__dark-bg {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-faq__card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color: var(--color-text-main);
}

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

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

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay to ensure text readability */
}

.page-faq__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    color: var(--color-text-main);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-faq__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.page-faq__cta-button {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-faq__btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    margin-top: 15px;
    margin-right: 10px;
    cursor: pointer;
}

.page-faq__btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.page-faq__btn-outline {
    background: transparent;
    border: 2px solid var(--color-button-gradient-start);
    color: var(--color-button-gradient-start);
    box-shadow: none;
}

.page-faq__btn-outline:hover {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border-color: transparent;
}

/* FAQ Section */
.page-faq__faq-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

.page-faq__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 20px;
}

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

.page-faq__faq-list {
    display: grid;
    gap: 30px;
}

.page-faq__faq-category {
    margin-bottom: 40px;
}

.page-faq__category-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.page-faq__category-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 3px;
    background-color: var(--color-gold);
    border-radius: 2px;
}

.page-faq__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-divider);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
    background-color: var(--color-deep-green);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(var(--color-primary), 0.3);
}

.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(--color-text-main);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

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

.page-faq__faq-item[open] .page-faq__faq-question {
    color: var(--color-primary);
}

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

.page-faq__faq-toggle {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
    margin-left: 20px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(180deg);
    color: var(--color-gold);
}

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

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

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

.page-faq__faq-item details > summary {
    list-style: none;
}

.page-faq__faq-item details > summary::-webkit-details-marker {
    display: none;
}

.page-faq__image-inline {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 10px;
    object-fit: cover;
}

/* CTA Bottom Section */
.page-faq__cta-bottom {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-background);
}

.page-faq__cta-bottom .page-faq__card {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

.page-faq__cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 15px;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-faq__section-title {
        font-size: 2.2rem;
    }
    .page-faq__category-title {
        font-size: 1.8rem;
    }
    .page-faq__faq-question {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-faq__container,
    .page-faq__hero-section,
    .page-faq__faq-section,
    .page-faq__cta-bottom .page-faq__card {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset */
    }
    .page-faq__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .page-faq__hero-description,
    .page-faq__section-description,
    .page-faq__cta-description {
        font-size: 1rem;
    }
    .page-faq__section-title {
        font-size: 2rem;
    }
    .page-faq__category-title {
        font-size: 1.5rem;
    }
    .page-faq__faq-question {
        font-size: 1rem;
        padding: 18px 20px;
    }
    .page-faq__faq-answer {
        padding: 0 20px 18px 20px;
    }
    .page-faq__faq-toggle {
        font-size: 1.5rem;
    }

    /* Images responsive */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-faq__image-inline {
        margin-left: 0;
        margin-right: 0;
    }

    /* Buttons responsive */
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__cta-button,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-faq a[class*="btn"] {
        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__cta-bottom .page-faq__card {
        padding: 30px 15px;
    }
    .page-faq__cta-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-section {
        padding: 30px 10px;
        padding-top: 10px !important;
    }
    .page-faq__section-title {
        font-size: 1.8rem;
    }
    .page-faq__category-title {
        font-size: 1.3rem;
    }
    .page-faq__faq-question {
        padding: 15px;
    }
    .page-faq__faq-answer {
        padding: 0 15px 15px 15px;
    }
    .page-faq__cta-bottom .page-faq__card {
        padding: 25px 10px;
    }
    .page-faq__cta-title {
        font-size: 1.5rem;
    }
    .page-faq__cta-button, .page-faq__btn-secondary {
        font-size: 0.95rem;
        padding: 12px 20px;
    }
}