/* style/faq.css */

/* --- Variables for Color Scheme --- */
:root {
    --main-color: #11A84E;
    --accent-color: #22C768;
    --card-bg-color: #11271B;
    --bg-primary: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* --- General Styles for page-faq scope --- */
.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* #F2FFF6 */
    background-color: var(--bg-primary); /* #08160F */
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding to the bottom */
}

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

.page-faq h1, .page-faq h2, .page-faq h3 {
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-faq h1 {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    padding-top: 10px; /* Small top padding for the first section */
}

.page-faq h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.page-faq h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--main-color) 0%, var(--accent-color) 100%); /* #11A84E to #22C768 */
    margin: 10px auto 0;
}

.page-faq h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--gold-color); /* #F2C14E */
}

.page-faq p {
    margin-bottom: 15px;
    color: var(--text-secondary); /* #A7D9B8 */
}

.page-faq a {
    color: var(--glow-color); /* #57E38D - good contrast on dark bg */
    text-decoration: none;
}

.page-faq a:hover {
    text-decoration: underline;
    color: var(--gold-color); /* #F2C14E */
}

.page-faq__intro-section {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--card-bg-color); /* #11271B */
    border-radius: 10px;
    margin-top: 30px;
    margin-bottom: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__intro-section p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-secondary); /* #A7D9B8 */
}

/* --- Image Styles --- */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover; /* Ensure images fill their space nicely */
    filter: none !important; /* Enforce no CSS filter on images */
}

.page-faq__hero-image {
    width: 100%;
    height: 500px; /* Fixed height for hero on desktop */
    object-fit: cover;
    margin-bottom: 30px;
}

.page-faq__image-content {
    margin: 40px 0;
    text-align: center;
}

.page-faq__image-content img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border: 1px solid var(--border-color); /* #2E7A4E */
}

/* --- FAQ Accordion Styles --- */
.page-faq__faq-list {
    margin-top: 40px;
}

.page-faq__faq-item {
    background-color: var(--card-bg-color); /* #11271B */
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--divider-color); /* #1E3A2A */
    overflow: hidden; /* For smooth max-height transition */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--card-bg-color); /* #11271B */
    color: var(--text-main); /* #F2FFF6 */
    border-bottom: 1px solid var(--divider-color); /* #1E3A2A */
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: var(--deep-green-color); /* #0A4B2C */
}

/* For details tag, hide default marker */
.page-faq__faq-item details > summary {
    list-style: none;
}
.page-faq__faq-item details > summary::-webkit-details-marker {
    display: none;
}

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

.page-faq__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    font-weight: normal;
    color: var(--gold-color); /* #F2C14E */
}

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

.page-faq__faq-item.active .page-faq__faq-answer,
.page-faq__faq-item[open] .page-faq__faq-answer {
    max-height: 2000px; /* Large enough to accommodate content */
    padding-top: 15px;
    transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

/* --- CTA Section Styles --- */
.page-faq__cta-section {
    background-color: var(--deep-green-color); /* #0A4B2C */
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    margin-top: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-section h2 {
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 25px;
}

.page-faq__cta-section p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    color: var(--text-secondary); /* #A7D9B8 */
}

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

.page-faq__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none; /* Ensure no underline */
    border: none; /* Remove default button border */
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #ffffff; /* White text for contrast */
}

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

.page-faq__btn-secondary {
    background-color: transparent;
    color: var(--gold-color); /* #F2C14E */
    border: 2px solid var(--gold-color); /* #F2C14E */
}

.page-faq__btn-secondary:hover {
    background-color: var(--gold-color); /* #F2C14E */
    color: var(--bg-primary); /* #08160F */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .page-faq__hero-image {
        height: 400px;
    }
    .page-faq__faq-question {
        font-size: 1.1rem;
        padding: 18px 20px;
    }
    .page-faq__faq-answer {
        font-size: 1rem;
        padding: 0 20px 18px;
    }
}

@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-faq__container {
        padding: 0 15px;
    }
    .page-faq h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    .page-faq h2 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .page-faq h3 {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
    }
    .page-faq__hero-image {
        height: 300px;
        margin-bottom: 20px;
    }
    .page-faq__intro-section {
        padding: 30px 15px;
        margin-top: 20px;
        margin-bottom: 30px;
    }
    .page-faq__intro-section p {
        font-size: 1rem;
    }

    /* Image responsive */
    .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__intro-section,
    .page-faq__cta-section,
    .page-faq__image-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-faq__hero-section {
        padding-top: 10px !important; /* body already handles header offset */
    }

    /* Button responsive */
    .page-faq__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-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-faq__cta-section {
        padding: 40px 15px;
    }
}