/* style/faq.css */

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

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text on smaller screens */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    overflow: hidden;
}

.page-faq__hero-content {
    z-index: 1; /* Ensure text is above image if any overlap happens */
    max-width: 800px;
    margin-bottom: 40px; /* Space between text and image */
}

.page-faq__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-faq__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;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.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: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-faq__btn-primary {
    background: var(--btn-gradient);
    color: var(--color-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-faq__btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.page-faq__btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-text-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-small {
    padding: 10px 20px;
    font-size: 1rem;
    margin-top: 20px;
}

.page-faq__hero-image {
    width: 100%;
    max-width: 1200px; /* Match content area width */
    height: auto;
    display: block;
    border-radius: 10px;
    margin-top: 40px; /* Space between image and content */
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* Content Area */
.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--color-background); /* Explicitly set background for content area */
    color: var(--color-text-main); /* Ensure text is readable on dark background */
}

.page-faq__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
}

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

.page-faq__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: hidden; /* For details tag */
}

.page-faq__faq-item[open] {
    background-color: var(--color-deep-green); /* Slightly darker when open */
    border-color: var(--color-primary);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    list-style: none; /* For details/summary */
    padding: 0; /* For details/summary */
}

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

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

.page-faq__faq-toggle {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--color-gold);
    line-height: 1;
    width: 30px;
    text-align: center;
}

.page-faq__faq-answer {
    font-size: 1rem;
    color: var(--color-text-secondary);
    padding-top: 20px;
    border-top: 1px dashed var(--color-divider);
    margin-top: 20px;
    text-align: left;
}

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

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
    margin-left: 25px;
    margin-bottom: 15px;
    list-style-type: disc;
}

.page-faq__faq-answer ol {
    list-style-type: decimal;
}

.page-faq__faq-answer li {
    margin-bottom: 8px;
}

.page-faq__sub-title {
    font-size: 1.15rem;
    color: var(--color-gold);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Call to Action Section */
.page-faq__cta-section {
    background-color: var(--color-deep-green);
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column; /* Image above text on smaller screens */
    align-items: center;
    justify-content: center;
    gap: 40px;
    border-top: 1px solid var(--color-border);
}

.page-faq__cta-content {
    max-width: 800px;
}

.page-faq__cta-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-faq__cta-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

.page-faq__cta-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* Image responsiveness and minimum size */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Media Queries for Responsiveness */
@media (min-width: 769px) {
    .page-faq__hero-section {
        flex-direction: row; /* Text and image side-by-side on desktop */
        text-align: left;
        padding-left: 40px;
        padding-right: 40px;
        justify-content: space-between;
    }

    .page-faq__hero-content {
        margin-right: 60px;
        margin-bottom: 0;
        flex-shrink: 0;
        max-width: 50%; /* Adjust width for side-by-side layout */
    }

    .page-faq__hero-image {
        margin-top: 0;
        max-width: 50%;
    }

    .page-faq__cta-section {
        flex-direction: row-reverse; /* Image on left, text on right on desktop */
        text-align: left;
        padding-left: 40px;
        padding-right: 40px;
        justify-content: space-between;
    }

    .page-faq__cta-content {
        margin-left: 60px;
        flex-shrink: 0;
        max-width: 50%;
    }

    .page-faq__cta-image {
        max-width: 50%;
    }
}


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

    .page-faq__hero-section,
    .page-faq__content-area,
    .page-faq__cta-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__main-title {
        font-size: 2.2rem;
    }

    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: 2rem;
    }

    .page-faq__description,
    .page-faq__cta-description,
    .page-faq__faq-answer p {
        font-size: 1rem;
    }

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Image responsive adapt (mandatory) */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size is still met */
        min-height: 200px !important; /* Ensure min size is still met */
    }

    .page-faq__hero-section,
    .page-faq__content-area,
    .page-faq__cta-section,
    .page-faq__faq-item,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video section top padding, if present */
    .page-faq__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* FAQ item adjustments */
    .page-faq__faq-question {
        font-size: 1.1rem;
    }
    .page-faq__faq-answer {
        font-size: 0.95rem;
    }
}