/* style/faq.css */

/* --- Custom CSS Variables (Color Palette) --- */
:root {
    --main-color: #11A84E;
    --accent-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg-color: #11271B;
    --background-color: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* --- General Page Styles --- */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* #F2FFF6 for dark background */
    background-color: var(--background-color); /* #08160F */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

.page-faq__section-title,
.page-faq__category-title {
    font-weight: bold;
    color: var(--gold-color); /* #F2C14E */
    margin-bottom: 30px;
    text-align: center;
    font-size: clamp(28px, 4vw, 42px); /* Responsive font size for titles */
    line-height: 1.2;
}

.page-faq__category-title {
    color: var(--text-main-color); /* #F2FFF6 */
    text-align: left;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: clamp(24px, 3.5vw, 36px);
}

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

.page-faq ul, .page-faq ol {
    margin-bottom: 15px;
    padding-left: 20px;
    color: var(--text-main-color); /* #F2FFF6 */
}

.page-faq li {
    margin-bottom: 8px;
    color: var(--text-main-color); /* #F2FFF6 */
}

/* --- Hero Section --- */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background: linear-gradient(180deg, var(--deep-green-color) 0%, var(--background-color) 100%); /* #0A4B2C to #08160F */
    min-height: 500px;
    box-sizing: border-box;
    overflow: hidden;
}

.page-faq__hero-content {
    max-width: 900px;
    z-index: 1;
    margin-bottom: 30px;
}

.page-faq__main-title {
    font-size: clamp(32px, 5vw, 56px); /* Responsive H1 font size */
    font-weight: bold;
    color: var(--gold-color); /* #F2C14E */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-faq__hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-main-color); /* #F2FFF6 */
    margin-bottom: 30px;
}

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

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    filter: none; /* Ensure no CSS filter is applied */
}

/* --- CTA Buttons --- */
.page-faq__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-tertiary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-faq__btn-primary {
    background: var(--button-gradient); /* linear-gradient(180deg, #2AD16F 0%, #13994A 100%) */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

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

.page-faq__btn-secondary:hover {
    background-color: var(--main-color); /* #11A84E */
    color: #ffffff;
    transform: translateY(-2px);
}

.page-faq__btn-tertiary {
    background-color: var(--card-bg-color); /* #11271B */
    color: var(--text-secondary-color); /* #A7D9B8 */
    border: 1px solid var(--divider-color); /* #1E3A2A */
}

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

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

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

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

.page-faq__faq-item {
    background-color: var(--card-bg-color); /* #11271B */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color); /* #2E7A4E */
}

.page-faq__faq-item summary {
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    color: var(--text-main-color); /* #F2FFF6 */
    background-color: var(--deep-green-color); /* #0A4B2C */
    border-bottom: 1px solid var(--divider-color); /* #1E3A2A */
    transition: background-color 0.3s ease;
}

.page-faq__faq-item summary:hover {
    background-color: var(--main-color); /* #11A84E */
}

/* Remove default marker for details */
.page-faq__faq-item summary::-webkit-details-marker,
.page-faq__faq-item summary::marker {
    display: none;
}

.page-faq__faq-qtext {
    flex-grow: 1;
    color: var(--text-main-color); /* #F2FFF6 */
}

.page-faq__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color); /* #F2C14E */
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    content: "−";
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 16px;
    color: var(--text-secondary-color); /* #A7D9B8 */
    background-color: var(--card-bg-color); /* #11271B */
}

.page-faq__faq-answer p,
.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
    color: var(--text-secondary-color); /* #A7D9B8 */
}

.page-faq__faq-answer a {
    color: var(--main-color); /* #11A84E */
    text-decoration: underline;
}

.page-faq__faq-answer a:hover {
    color: var(--gold-color); /* #F2C14E */
}


/* --- Call to Action Section --- */
.page-faq__cta-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(90deg, var(--main-color) 0%, var(--accent-color) 100%); /* #11A84E to #22C768 */
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.page-faq__cta-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: url("[GALLERY:cta_bg:1920x1080:good88 az,abstract pattern,green gold,subtle texture]") center center / cover no-repeat;
    opacity: 0.1;
    z-index: 0;
    filter: none; /* Ensure no CSS filter is applied */
}

.page-faq__cta-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__cta-title {
    font-size: clamp(30px, 4.5vw, 48px);
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-faq__cta-description {
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: 40px;
    color: #e0e0e0;
}

.page-faq__cta-image-wrapper {
    display: none; /* Hide image by default on CTA section, will adjust for larger screens */
}

/* --- Global Image/Video/Button Responsiveness (Critical) --- */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* Ensure no CSS filter is applied */
}

.page-faq video,
.page-faq__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.page-faq__video-section,
.page-faq__video-container,
.page-faq__video-wrapper,
.page-faq__hero-section,
.page-faq__faq-section,
.page-faq__cta-section,
.page-faq__cta-buttons,
.page-faq__button-group,
.page-faq__btn-container,
.page-faq__card,
.page-faq__section,
.page-faq__box {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent content overflow */
}

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

    .page-faq__container {
        padding-left: 15px;
        padding-right: 15px;
    }

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

    /* Videos */
    .page-faq video,
    .page-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-faq__video-section,
    .page-faq__video-container,
    .page-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-faq__video-section {
        padding-top: 10px !important; /* Small top padding for mobile */
    }

    /* Buttons */
    .page-faq__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq__btn-tertiary,
    .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__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-faq__main-title {
        font-size: clamp(28px, 8vw, 42px); /* Adjust H1 for smaller screens */
    }

    .page-faq__hero-description {
        font-size: 15px;
    }

    .page-faq__section-title,
    .page-faq__category-title {
        font-size: clamp(22px, 6vw, 36px);
    }

    .page-faq__faq-item summary {
        padding: 15px 20px;
        font-size: 16px;
    }

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

    .page-faq__cta-section {
        padding: 60px 15px;
    }

    .page-faq__cta-title {
        font-size: clamp(26px, 7vw, 40px);
    }

    .page-faq__cta-description {
        font-size: 15px;
    }
}

/* --- Desktop Specific Styles --- */
@media (min-width: 769px) {
    .page-faq__hero-section {
        flex-direction: row;
        text-align: left;
        padding: 100px 20px;
        justify-content: space-between;
    }

    .page-faq__hero-content {
        margin-bottom: 0;
        margin-right: 40px;
        flex: 1;
    }

    .page-faq__hero-image-wrapper {
        position: static;
        flex: 1;
        max-width: 50%;
        height: auto;
    }

    .page-faq__hero-image {
        opacity: 1;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .page-faq__cta-section {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: left;
        gap: 40px;
    }

    .page-faq__cta-content {
        flex: 1;
        max-width: 600px;
        margin: 0;
    }

    .page-faq__cta-image-wrapper {
        display: block; /* Show image on desktop */
        flex: 0 0 400px; /* Fixed width for CTA image */
        max-width: 400px;
        height: 225px; /* Maintain aspect ratio for 800x450 */
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .page-faq__cta-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .page-faq__cta-buttons {
        justify-content: flex-start;
    }
}