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

.page-faq {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--background-color-page); /* Page specific background */
    line-height: 1.6;
}

/* Fixed header padding is handled by body in shared.css, so page-faq's first section gets minimal top padding */
.page-faq__hero-section,
.page-faq__introduction-section,
.page-faq__faq-list-section,
.page-faq__cta-section {
    padding-top: 60px; /* Default for sections */
    padding-bottom: 60px;
    position: relative;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-faq__hero-section {
    padding-top: 10px; /* Specific top padding for the first section */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-faq__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 10px;
}

.page-faq__hero-content {
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size with clamp */
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

.page-faq__hero-cta-buttons,
.page-faq__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding/border included in width */
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

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

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

.page-faq__btn-secondary:hover {
    background: rgba(var(--secondary-color), 0.1);
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(var(--secondary-color), 0.2);
}

.page-faq__download-app-button {
    margin-top: 20px;
}

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

.page-faq__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

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

.page-faq__introduction-section .page-faq__text-block .highlight,
.page-faq__faq-answer .highlight,
.page-faq__cta-section .page-faq__text-block .highlight {
    color: var(--gold-color);
    font-weight: bold;
}

.page-faq__overview-image,
.page-faq__cta-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    object-fit: cover;
    max-width: 800px;
}

.page-faq__faq-list-section {
    background-color: var(--card-bg); /* Use card background for FAQ list section */
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-faq__category-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--gold-color);
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--divider-color);
}

.page-faq__faq-item {
    background-color: var(--deep-green); /* Slightly darker green for FAQ item background */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
}

.page-faq__faq-item[open] .page-faq__faq-question {
    background-color: var(--primary-color); /* Highlight when open */
    color: #ffffff;
    border-bottom: 1px solid var(--primary-color);
}

.page-faq__faq-question:hover {
    opacity: 0.9;
}

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

.page-faq__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gold-color);
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    color: #ffffff;
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

/* Hide default details marker */
.page-faq__faq-item > summary {
    list-style: none;
}
.page-faq__faq-item > summary::-webkit-details-marker {
    display: none;
}

.page-faq__faq-answer {
    padding: 20px 25px 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    background-color: rgba(var(--deep-green), 0.7);
    border-top: 1px solid var(--divider-color);
}

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


/* CTA Section */
.page-faq__cta-section {
    background-color: var(--background-color-page);
    text-align: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

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

/* --- Responsive Design --- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
    .page-faq__hero-section,
    .page-faq__introduction-section,
    .page-faq__faq-list-section,
    .page-faq__cta-section {
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    .page-faq__section-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }

    .page-faq__category-title {
        font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: 10px !important; /* body already handles header offset */
        padding-bottom: 40px;
    }

    .page-faq__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-faq__hero-cta-buttons,
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .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: 15px;
        padding-right: 15px;
    }

    .page-faq__introduction-section,
    .page-faq__faq-list-section,
    .page-faq__cta-section {
        padding-top: 40px;
        padding-bottom: 40px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-faq__overview-image,
    .page-faq__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto !important;
    }

    /* FAQ item mobile adjustments */
    .page-faq__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

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