/* style/faq.css */

/* Custom Color Variables */
:root {
    --page-faq-bg: #08160F; /* Background */
    --page-faq-card-bg: #11271B; /* Card BG */
    --page-faq-text-main: #F2FFF6; /* Text Main */
    --page-faq-text-secondary: #A7D9B8; /* Text Secondary */
    --page-faq-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button Gradient */
    --page-faq-border: #2E7A4E; /* Border */
    --page-faq-glow: #57E38D; /* Glow */
    --page-faq-gold: #F2C14E; /* Gold */
    --page-faq-divider: #1E3A2A; /* Divider */
    --page-faq-deep-green: #0A4B2C; /* Deep Green */
}

.page-faq {
    background-color: var(--page-faq-bg);
    color: var(--page-faq-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-faq__section {
    padding: 60px 0;
    text-align: center;
}

.page-faq__section--intro {
    background-color: var(--page-faq-deep-green);
    padding: 40px 0;
}

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

.page-faq__section-text {
    font-size: 1.1em;
    color: var(--page-faq-text-secondary);
    max-width: 900px;
    margin: 0 auto;
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding as body handles --header-offset */
    overflow: hidden;
    min-height: 500px;
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image to help text stand out on top, but not change its color */
}

.page-faq__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

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

.page-faq__intro-description {
    font-size: 1.2em;
    color: var(--page-faq-text-secondary);
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.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.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure responsiveness */
}

.page-faq__btn-primary {
    background: var(--page-faq-btn-gradient);
    color: var(--page-faq-text-main);
    border: none;
}

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

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

.page-faq__btn-secondary:hover {
    background: var(--page-faq-gold);
    color: var(--page-faq-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ List */
.page-faq__faq-list {
    background-color: var(--page-faq-bg);
    padding-bottom: 80px;
}

.page-faq__faq-item {
    background-color: var(--page-faq-card-bg);
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--page-faq-border);
    overflow: hidden;
    text-align: left;
    color: var(--page-faq-text-main);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.25em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--page-faq-deep-green);
    color: var(--page-faq-text-main);
    border-bottom: 1px solid var(--page-faq-divider);
    list-style: none; /* For details/summary */
}

.page-faq__faq-question::-webkit-details-marker {
    display: none; /* For details/summary */
}

.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;
    color: var(--page-faq-gold);
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1.05em;
    color: var(--page-faq-text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
    max-height: 2000px; /* Arbitrarily large value for smooth expansion */
}

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
    margin: 15px 0 15px 25px;
    color: var(--page-faq-text-secondary);
}

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

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

.page-faq__faq-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 20px;
    filter: none; /* Ensure no CSS filter is applied to images */
}

/* CTA Section */
.page-faq__cta-section {
    background: var(--page-faq-card-bg);
    padding: 80px 0;
}

.page-faq__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-faq__cta-title {
    font-size: 2.2em;
    color: var(--page-faq-text-main);
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }
    .page-faq__cta-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-faq__section {
        padding: 40px 0;
    }
    .page-faq__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        min-height: 400px;
    }
    .page-faq__hero-content {
        padding: 0 15px;
    }
    .page-faq__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-faq__intro-description {
        font-size: 1em;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-faq__faq-answer {
        font-size: 0.95em;
        padding: 15px;
    }
    .page-faq__cta-title {
        font-size: 1.6em;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 300px !important; /* Limit max width for mobile buttons */
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images responsiveness */
    .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,
    .page-faq__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-faq__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-faq__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Video responsiveness (though no video on this page, include for robustness) */
    .page-faq video,
    .page-faq__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !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;
    }
    .page-faq__video-section {
      padding-top: 10px !important;
    }
    .page-faq__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-faq__section-title {
        font-size: 1.5em;
    }
    .page-faq__cta-title {
        font-size: 1.4em;
    }
}