/* style/faq.css */
/* Body padding-top is handled by shared.css: body { padding-top: var(--header-offset); } */
/* This page should NOT add padding-top: var(--header-offset) again to avoid double spacing. */

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

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

.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top spacing as per rule, body handles header offset */
    box-sizing: border-box;
    background-color: var(--deep-green-color); /* A darker shade for the hero background */
    overflow: hidden; /* Ensure no overflow */
}

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

.page-faq__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure text is above any potential background elements */
    color: var(--text-main-color); /* Light text */
}

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* H1 font size clamp */
    color: var(--gold-color); /* Using gold for main title for emphasis */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow color for text shadow */
}

.page-faq__description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--text-secondary-color); /* Secondary text color */
}

.page-faq__description .text-main {
    color: var(--text-main-color); /* Ensure keywords stand out with main text color */
    font-weight: 600;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 180px;
    max-width: 100%; /* Button responsive requirement */
    box-sizing: border-box; /* Button responsive requirement */
    white-space: normal; /* Button responsive requirement */
    word-wrap: break-word; /* Button responsive requirement */
}

.page-faq__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text for primary button */
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-faq__btn-secondary {
    background: var(--card-bg); /* Darker background for secondary button */
    color: var(--primary-color); /* Primary color text for secondary button */
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: var(--primary-color);
    color: #ffffff;
}

.page-faq__btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.page-faq__btn-small {
    padding: 12px 25px;
    font-size: 1rem;
    min-width: unset; /* Override min-width for smaller buttons in content */
}

.page-faq__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    width: 100%; /* Ensure container takes full width on smaller screens */
}

.page-faq__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.page-faq__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.page-faq__section-title--alt {
    color: var(--gold-color); /* Use gold for alternative section title */
}

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

.page-faq__faq-item {
    background-color: var(--card-bg); /* Card background color */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-main-color); /* Light text */
}

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

.page-faq__faq-item summary:hover {
    background-color: var(--deep-green-color); /* Slightly darker on hover */
}

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

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

.page-faq__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 15px;
    line-height: 1; /* Align + - vertically */
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-faq__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--text-secondary-color); /* Secondary text color */
}

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

.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-faq__faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-faq__faq-answer a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.page-faq__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body already handles header offset */
    }

    .page-faq__hero-content {
        padding: 0 15px;
    }

    .page-faq__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-faq__description {
        font-size: 1rem;
    }

    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .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: 20px;
        padding-right: 20px;
    }

    .page-faq__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 30px;
    }

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

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

    .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 {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}

/* Ensure images don't have filters applied */
.page-faq img {
    filter: none !important;
}

/* Ensure text contrast for main content */
.page-faq p, .page-faq li, .page-faq h1, .page-faq h2, .page-faq h3, .page-faq h4, .page-faq h5, .page-faq h6, .page-faq a {
    color: var(--text-main-color); /* Default light text for dark background */
}

.page-faq__description {
    color: var(--text-secondary-color);
}

.page-faq__btn-secondary {
    color: var(--primary-color); /* Specific text color for secondary button */
}

.page-faq__faq-item summary {
    color: var(--text-main-color);
}

.page-faq__faq-toggle {
    color: var(--primary-color);
}

.page-faq__faq-answer {
    color: var(--text-secondary-color);
}

/* Specific text color for highlighted keywords */
.page-faq .text-main {
    color: var(--text-main-color); /* Main text color, which is light */
}