/* style/faq.css */

/* Custom Colors */
:root {
    --background-color: #08160F;
    --card-bg-color: #11271B;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --btn-gradient-start: #2AD16F;
    --btn-gradient-end: #13994A;
    --deep-green-color: #0A4B2C;
}

.page-faq {
    background-color: var(--background-color);
    color: var(--text-main-color);
    font-family: 'Arial', sans-serif; /* Placeholder font, actual font usually from shared */
    line-height: 1.6;
    font-size: 16px;
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    box-sizing: border-box;
    background-color: var(--card-bg-color); /* Slightly different bg for hero */
    border-bottom: 1px solid var(--border-color);
}

.page-faq__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

.page-faq__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-faq__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive H1 size */
    color: var(--gold-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-faq__description {
    font-size: 18px;
    color: var(--text-secondary-color);
    margin-bottom: 30px;
}

/* General Section Styling */
.page-faq__section {
    padding: 60px 20px;
    border-bottom: 1px solid var(--divider-color);
    background-color: var(--background-color);
    box-sizing: border-box;
}

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

.page-faq__section-title {
    font-size: clamp(24px, 3vw, 38px);
    color: var(--text-main-color);
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.page-faq__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--glow-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.page-faq__section-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 30px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

.page-faq__section-intro {
    font-size: 17px;
    color: var(--text-secondary-color);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-faq__faq-item.active {
    box-shadow: 0 0 15px rgba(var(--glow-color), 0.3);
}

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

.page-faq__faq-question:hover {
    background-color: var(--border-color);
}

.page-faq__faq-item[open] > .page-faq__faq-question {
    background-color: var(--border-color);
    border-bottom: 1px solid var(--glow-color);
}

.page-faq__faq-toggle {
    font-size: 24px;
    line-height: 1;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    color: var(--glow-color);
}

/* For details tag, hide default marker */
.page-faq__faq-item summary {
    list-style: none;
}
.page-faq__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-faq__faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    color: var(--text-secondary-color);
    background-color: var(--card-bg-color);
}

.page-faq__faq-item.active .page-faq__faq-answer,
.page-faq__faq-item[open] .page-faq__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to cover content */
    padding: 20px 25px;
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-secondary-color);
}
.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

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

.page-faq__cta-section .page-faq__container.page-faq__dark-section {
    background-color: var(--deep-green-color);
    padding: 50px 30px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(var(--glow-color), 0.2);
    border: 1px solid var(--border-color);
}

.page-faq__cta-title {
    font-size: clamp(26px, 3.5vw, 42px);
    color: var(--gold-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.page-faq__cta-description {
    font-size: 18px;
    color: var(--text-secondary-color);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, var(--btn-gradient-start) 0%, var(--btn-gradient-end) 100%);
    color: var(--text-main-color); /* White text for primary button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4); /* Use a general shadow color */
}

.page-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.6); /* Use a general shadow color */
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: var(--glow-color); /* Glow color text for secondary */
    border: 2px solid var(--glow-color);
}

.page-faq__btn-secondary:hover {
    background-color: var(--glow-color);
    color: var(--background-color); /* Dark text on glow hover */
    transform: translateY(-3px);
}

.page-faq__btn-inline {
    margin-top: 20px;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 25px;
}


/* Responsive Styles */
@media (max-width: 768px) {
    .page-faq {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-faq__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-faq__description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-faq__section {
        padding: 40px 15px;
    }

    .page-faq__container {
        padding: 0 15px;
    }

    .page-faq__section-title {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .page-faq__section-intro {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-faq__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }

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

    .page-faq__faq-answer p {
        font-size: 14px;
    }

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

    .page-faq__cta-section .page-faq__container.page-faq__dark-section {
        padding: 40px 20px;
    }

    .page-faq__cta-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-faq__cta-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-faq__cta-buttons {
        flex-direction: column;
        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: 15px;
        padding-right: 15px;
    }

    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset !important; /* Remove min-width for mobile */
        min-height: unset !important; /* Remove min-height for mobile */
    }

    /* Ensure content containers have padding for mobile */
    .page-faq__section,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Video related styles (if any, although FAQ page doesn't explicitly have video) */
    .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;
    }
}