/* style/faq.css */

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

/* Base styles for the page, adapting to the dark body background */
.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Main text color, light on dark background */
    background-color: var(--background); /* Main background color, dark green */
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for the first section, body handles header offset */
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Default: stack vertically */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    gap: 40px;
}

.page-faq__hero-content {
    max-width: 800px;
    z-index: 1;
}

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

.page-faq__hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-faq__btn-secondary:hover {
    background: var(--deep-green);
    color: var(--text-main);
    border-color: var(--glow);
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Limit image width */
    margin-top: 40px; /* Space below hero content */
    overflow: hidden;
    box-sizing: border-box;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

/* General Section Styling */
.page-faq__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Responsive font size */
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-faq__introduction-section,
.page-faq__questions-section,
.page-faq__cta-section {
    padding: 80px 0;
}

.page-faq__text-block {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-faq__text-block a {
    color: var(--glow);
    text-decoration: none;
}

.page-faq__text-block a:hover {
    text-decoration: underline;
}

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

.page-faq__faq-item {
    background-color: var(--card-bg); /* Dark background for FAQ items */
    border-radius: 10px;
    overflow: hidden;
    color: var(--text-main); /* Light text on dark background */
    border: 1px solid var(--border);
}

.page-faq__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    list-style: none; /* Remove default marker */
}

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

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

.page-faq__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 15px;
    color: var(--glow);
}

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

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

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
    margin-left: 20px;
    margin-bottom: 15px;
    list-style-position: inside;
}

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

.page-faq__faq-answer img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
    border-radius: 8px;
    object-fit: cover;
}

/* CTA Section */
.page-faq__cta-section {
    text-align: center;
}

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

/* Responsive Styles */
@media (min-width: 769px) {
    .page-faq__hero-section {
        flex-direction: row; /* Image and content side-by-side on desktop */
        text-align: left;
        padding-left: 0;
        padding-right: 0;
    }

    .page-faq__hero-content {
        flex: 1;
        padding-right: 40px;
    }
    
    .page-faq__hero-image-wrapper {
        flex: 1;
        margin-top: 0;
    }

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

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

    .page-faq__hero-section {
        padding: 40px 15px;
        flex-direction: column;
        gap: 20px;
    }

    .page-faq__hero-content {
        padding-right: 0;
    }

    .page-faq__main-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .page-faq__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-faq__hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        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-image-wrapper {
        margin-top: 20px;
        padding: 0 15px;
    }

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

    .page-faq__introduction-section,
    .page-faq__questions-section,
    .page-faq__cta-section {
        padding: 40px 0;
    }

    .page-faq__container {
        padding: 0 15px;
    }

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

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

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

    /* Ensure containers for images and content also adapt */
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Specific padding for video section, if present, should be small */
    .page-faq__video-section {
        padding-top: 10px !important;
    }

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