/* style/faq.css */

/* Custom properties for colors */
:root {
    --page-faq-bg: #08160F;
    --page-faq-card-bg: #11271B;
    --page-faq-text-main: #F2FFF6;
    --page-faq-text-secondary: #A7D9B8;
    --page-faq-border: #2E7A4E;
    --page-faq-glow: #57E38D;
    --page-faq-gold: #F2C14E;
    --page-faq-divider: #1E3A2A;
    --page-faq-deep-green: #0A4B2C;
    --page-faq-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page-faq scope */
.page-faq {
    font-family: Arial, sans-serif;
    color: var(--page-faq-text-main); /* Light text for dark background */
    background-color: var(--page-faq-bg); /* Dark background */
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom for footer */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    overflow: hidden;
}

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

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

.page-faq__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative; /* Ensure content is above any background elements */
    z-index: 10;
}

.page-faq__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Use clamp for H1 */
    color: var(--page-faq-gold);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-faq__subtitle {
    font-size: 1.15em;
    color: var(--page-faq-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-faq__btn-primary {
    background: var(--page-faq-btn-gradient);
    color: #ffffff; /* White text for gradient button */
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-faq__btn-secondary:hover {
    background-color: rgba(242, 193, 78, 0.1);
    color: var(--page-faq-gold);
    border-color: var(--page-faq-gold);
}

/* FAQ Section */
.page-faq__faq-section {
    padding: 60px 20px;
    background-color: var(--page-faq-card-bg); /* Card background for this section */
    border-radius: 10px;
    margin: 0 auto 60px;
    max-width: 1200px;
    box-sizing: border-box;
}

.page-faq__container {
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__section-title {
    font-size: 2.5em;
    color: var(--page-faq-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-faq__section-description {
    font-size: 1.1em;
    color: var(--page-faq-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-faq__faq-item {
    background-color: var(--page-faq-deep-green); /* Deeper green for individual FAQ items */
    border: 1px solid var(--page-faq-border);
    border-radius: 8px;
    overflow: hidden;
    color: var(--page-faq-text-main);
}

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

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

.page-faq__faq-question {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

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

.page-faq__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--page-faq-text-secondary);
    max-height: 0; /* For JS fallback if not using <details> */
    overflow: hidden; /* For JS fallback */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
    max-height: 1000px; /* Arbitrary large value for smooth transition with <details> */
    padding-top: 10px;
}

.page-faq__faq-answer p {
    margin-bottom: 1em;
    color: var(--page-faq-text-secondary);
}

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

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

.page-faq__faq-answer a:hover {
    color: var(--page-faq-glow);
}

/* CTA Section */
.page-faq__cta-section {
    background-color: var(--page-faq-card-bg);
    padding: 60px 20px;
    border-radius: 10px;
    margin: 0 auto;
    max-width: 1200px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-faq__cta-content {
    max-width: 800px;
    margin-bottom: 40px;
}

.page-faq__cta-title {
    font-size: 2.2em;
    color: var(--page-faq-gold);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-faq__cta-description {
    font-size: 1.1em;
    color: var(--page-faq-text-secondary);
    margin-bottom: 30px;
}

.page-faq__cta-description a {
    color: var(--page-faq-gold);
    text-decoration: underline;
}

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 500px; /* Limit width for buttons group */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-faq__cta-image-wrapper {
    width: 100%;
    max-width: 600px;
    margin-top: 40px;
    overflow: hidden;
    box-sizing: border-box;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }

    .page-faq__section-title {
        font-size: 2em;
    }

    .page-faq__cta-title {
        font-size: 2em;
    }
}

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

    .page-faq__hero-section {
        padding: 10px 15px 40px;
    }

    .page-faq__hero-image {
        border-radius: 5px;
    }

    .page-faq__main-title {
        font-size: clamp(1.6em, 6vw, 2.5em);
    }

    .page-faq__subtitle {
        font-size: 1em;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        width: 100% !important; /* Force full width on mobile */
        margin-left: 0 !important; /* Reset margin for stacking */
    }

    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
    }

    .page-faq__faq-section {
        padding: 40px 15px;
        margin-bottom: 40px;
    }

    .page-faq__section-title {
        font-size: 1.8em;
    }

    .page-faq__section-description {
        font-size: 0.95em;
    }

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

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

    .page-faq__cta-section {
        padding: 40px 15px;
    }

    .page-faq__cta-title {
        font-size: 1.8em;
    }

    .page-faq__cta-description {
        font-size: 0.95em;
    }

    /* Mobile responsive images/videos/buttons - IMPORTANT */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__hero-image-wrapper,
    .page-faq__cta-image-wrapper,
    .page-faq__video-section,
    .page-faq__video-container,
    .page-faq__video-wrapper,
    .page-faq__cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container {
        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,
    .page-faq__faq-section,
    .page-faq__cta-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-faq__faq-item {
        margin-left: 15px;
        margin-right: 15px;
    }
}