/* style/faq.css */

/* Variables for colors */
: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;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-dark-grey: #333333;
    --color-light-grey: #f0f0f0;
}

/* Base styles for page-faq */
.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background);
}

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

.page-faq__light-bg {
    background-color: var(--color-white);
    color: var(--color-dark-grey);
}

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

.page-faq__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    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 {
    position: relative;
    z-index: 10;
    padding: 20px;
    max-width: 900px;
    margin-top: 20px;
}

.page-faq__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-gold);
    margin-bottom: 20px;
    max-width: 100%;
}

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

.page-faq__cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-white);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__cta-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, var(--color-button-gradient-end) 0%, var(--color-button-gradient-start) 100%);
}

.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    border-bottom: 1px solid var(--color-divider);
}

.page-faq__section-title {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-secondary);
}

.page-faq__section-title--light {
    color: var(--color-gold);
    border-bottom-color: var(--color-glow);
}

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

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

.page-faq__faq-item[open] {
    background-color: var(--color-deep-green);
}

.page-faq__faq-item--dark-bg {
    background-color: var(--color-deep-green);
    border-color: var(--color-glow);
    color: var(--color-text-main);
}

.page-faq__faq-item--dark-bg[open] {
    background-color: var(--color-background);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    color: var(--color-text-main);
    transition: color 0.3s ease;
}

.page-faq__faq-question::-webkit-details-marker {
    display: none;
}

.page-faq__faq-question:hover {
    color: var(--color-gold);
}

.page-faq__faq-question--light {
    color: var(--color-text-main);
}

.page-faq__faq-question--light:hover {
    color: var(--color-glow);
}

.page-faq__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

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

.page-faq__faq-toggle--light {
    color: var(--color-glow);
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg);
}

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

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

.page-faq__faq-answer--light {
    color: var(--color-text-secondary);
}

.page-faq__answer-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-section {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--color-white);
    color: var(--color-dark-grey);
}

.page-faq__cta-section .page-faq__section-title {
    color: var(--color-dark-grey);
    border-bottom-color: var(--color-light-grey);
}

.page-faq__cta-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--color-dark-grey);
}

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

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

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

    .page-faq__main-title {
        font-size: 1.8em;
        margin-top: 15px;
    }

    .page-faq__intro-text {
        font-size: 1em;
    }

    .page-faq__cta-button {
        padding: 10px 20px;
        font-size: 1em;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__content-area {
        padding: 30px 15px;
    }

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

    .page-faq__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-faq__faq-answer {
        padding: 0 20px 15px 20px;
    }

    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-faq__faq-item,
    .page-faq__hero-section,
    .page-faq__content-area,
    .page-faq__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    .page-faq__hero-image-wrapper {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: 1.5em;
    }

    .page-faq__faq-question {
        font-size: 1em;
    }
}