/* style/faq.css */

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

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

/* Background color utility classes */
.page-faq__background-color-bg {
    background-color: var(--page-faq-background-color);
}

.page-faq__card-bg {
    background-color: var(--page-faq-card-bg);
}

.page-faq__deep-green-bg {
    background-color: var(--page-faq-deep-green);
}

/* Text color utility classes */
.page-faq__text-main {
    color: var(--page-faq-text-main);
}

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

.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;
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

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

.page-faq__hero-content {
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding: 40px 20px;
    border-radius: 8px;
    margin-top: -80px; /* Overlap slightly for visual effect, but not text on image */
    z-index: 1;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Intro Section */
.page-faq__intro-section {
    padding: 60px 0;
    text-align: center;
}

.page-faq__intro-section .page-faq__section-title {
    margin-bottom: 20px;
}

.page-faq__text-block {
    margin-bottom: 20px;
    font-size: 1.05em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ List Section */
.page-faq__faq-list-section {
    padding: 60px 0;
}

.page-faq__faq-list-section .page-faq__section-title {
    text-align: center;
    margin-bottom: 40px;
}

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

.page-faq__faq-item {
    background-color: var(--page-faq-card-bg);
    border: 1px solid var(--page-faq-border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
    box-shadow: 0 0 15px var(--page-faq-glow-color);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.page-faq__faq-question::-webkit-details-marker {
    display: none;
}

.page-faq__faq-qtext {
    font-size: 1.15em;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg);
}

.page-faq__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
}

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

.page-faq__faq-answer a {
    display: inline-block;
    margin-top: 10px;
}

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

.page-faq__cta-section .page-faq__section-title {
    margin-bottom: 20px;
}

.page-faq__cta-section .page-faq__text-block {
    margin-bottom: 40px;
}

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

/* Buttons */
.page-faq__cta-button,
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

.page-faq__btn-primary {
    background: var(--page-faq-button-gradient);
    color: var(--page-faq-text-main);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-faq__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
}

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

.page-faq__btn-secondary:hover {
    background-color: var(--page-faq-main-color);
    color: var(--page-faq-text-main);
    transform: translateY(-2px);
}

.page-faq__small-btn {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* Section Titles */
.page-faq__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__hero-content {
        margin-top: -60px;
        padding: 30px 20px;
    }
    .page-faq__main-title {
        font-size: clamp(1.8em, 4.5vw, 3em);
    }
    .page-faq__description {
        font-size: 1em;
    }
    .page-faq__section-title {
        font-size: clamp(1.6em, 3.5vw, 2.2em);
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-bottom: 40px;
    }
    .page-faq__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
    }
    .page-faq__main-title {
        font-size: clamp(1.6em, 6vw, 2.5em);
    }
    .page-faq__description {
        font-size: 0.95em;
    }
    .page-faq__intro-section, .page-faq__faq-list-section, .page-faq__cta-section {
        padding: 40px 0;
    }
    .page-faq__faq-question {
        padding: 15px;
    }
    .page-faq__faq-qtext {
        font-size: 1em;
    }
    .page-faq__faq-answer {
        padding: 0 15px 15px;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__cta-button, .page-faq__btn-primary, .page-faq__btn-secondary, .page-faq__small-btn {
        padding: 10px 20px;
        font-size: 0.9em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-faq__container {
        padding-left: 15px;
        padding-right: 15px;
        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__hero-image-wrapper, .page-faq__video-container, .page-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-faq__hero-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: clamp(1.4em, 8vw, 2em);
    }
    .page-faq__section-title {
        font-size: clamp(1.4em, 6vw, 1.8em);
    }
    .page-faq__cta-button {
        padding: 10px 15px;
    }
}