/* style/faq.css */

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-faq {
    background-color: var(--background-color, #08160F); /* Fallback to custom background if --background-color is not set */
    color: var(--text-main, #F2FFF6); /* Main text color for dark background */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure image doesn't overflow */
    box-sizing: border-box;
}

.page-faq__hero-content-wrapper {
    width: 100%;
    max-width: 1400px; /* Wider content wrapper for hero image */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1; /* Ensure text is above image if any overlap */
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px; /* Space between image and text */
}

.page-faq__hero-text-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    color: var(--text-main, #F2FFF6);
}

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.page-faq__intro-description {
    font-size: 1.15rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for responsive button wrapping */
    max-width: 600px; /* Limit button group width */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

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

.page-faq__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6; /* Text Main */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: var(--gold, #F2C14E); /* Gold for secondary text */
    border: 2px solid var(--gold, #F2C14E);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__btn-secondary:hover {
    background-color: var(--gold, #F2C14E);
    color: #08160F; /* Dark background color for hover text */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* FAQ List Section */
.page-faq__faq-list-section {
    padding: 80px 0;
    background-color: var(--card-bg, #11271B); /* Card BG color */
    color: var(--text-main, #F2FFF6);
}

.page-faq__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--gold, #F2C14E);
    text-align: center;
    margin-bottom: 15px;
}

.page-faq__section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary, #A7D9B8);
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-faq__faq-item {
    background-color: var(--background-color, #08160F); /* Darker background for each item */
    border: 1px solid var(--border, #2E7A4E);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    cursor: pointer;
    outline: none;
    list-style: none; /* Hide default marker */
    transition: background-color 0.3s ease;
}

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

.page-faq__faq-item summary:hover {
    background-color: var(--deep-green, #0A4B2C); /* Deep Green hover */
}

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

.page-faq__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--glow, #57E38D); /* Glow color for toggle icon */
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-faq__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--text-secondary, #A7D9B8);
    border-top: 1px solid var(--divider, #1E3A2A);
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    color: var(--text-secondary, #A7D9B8);
}

.page-faq__faq-answer strong {
    color: var(--text-main, #F2FFF6);
}

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

.page-faq__faq-answer li {
    margin-bottom: 8px;
    color: var(--text-secondary, #A7D9B8);
}

.page-faq__faq-answer .page-faq__btn-primary {
    margin-top: 20px;
    display: inline-flex;
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* Bottom CTA Section */
.page-faq__cta-bottom-section {
    padding: 80px 0;
    background-color: var(--background-color, #08160F); /* Use main background color */
    text-align: center;
    color: var(--text-main, #F2FFF6);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__hero-text-content {
        padding: 0 30px;
    }
    .page-faq__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-faq__intro-description {
        font-size: 1.05rem;
    }
    .page-faq__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-bottom: 40px;
    }
    .page-faq__hero-image {
        margin-bottom: 30px;
    }
    .page-faq__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-faq__intro-description {
        font-size: 1rem;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px; /* Adjust for mobile single column */
        padding: 0 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    .page-faq__faq-list-section,
    .page-faq__cta-bottom-section {
        padding: 60px 0;
    }
    .page-faq__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    .page-faq__section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    .page-faq__faq-item summary {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    .page-faq__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }

    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* Ensure no filter */
    }
    .page-faq__hero-content-wrapper,
    .page-faq__container,
    .page-faq__faq-list-section,
    .page-faq__cta-bottom-section,
    .page-faq__hero-text-content,
    .page-faq__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-faq__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

/* General image responsive styles (no filter allowed) */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* Explicitly ensure no filter */
}

/* General video responsive styles (no filter allowed) - Placeholder, no actual video on this page */
.page-faq video,
.page-faq__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    filter: none; /* Explicitly ensure no filter */
}
.page-faq__video-section,
.page-faq__video-container,
.page-faq__video-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    filter: none; /* Explicitly ensure no filter */
}
@media (max-width: 768px) {
    .page-faq video,
    .page-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !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;
        filter: none !important;
    }
    .page-faq__video-section {
        padding-top: 10px !important; /* Small top padding for video section on mobile */
    }
}

/* Ensure content area images are not small */
.page-faq__faq-answer img {
    min-width: 200px;
    min-height: 200px;
    margin: 20px auto;
    border-radius: 8px;
}

/* Text contrast fixes if needed (though already chosen for dark background) */
.page-faq__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-faq__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}