/* style/faq.css */

/* Custom colors from requirements */
: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-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-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
}

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

/* Fixed header and body padding is handled by shared.css on the body tag. */
/* No additional padding-top for --header-offset needed here. */

.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 20px;
    padding-top: 10px; /* Small top padding as per requirement */
    box-sizing: border-box;
    text-align: center;
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for the image */
    margin-bottom: 30px; /* Spacing between image and content */
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    max-height: 675px; /* Ensure it doesn't get too tall */
}

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

.page-faq__main-title {
    color: var(--page-faq-text-main);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    /* Using clamp for H1 font size as per rule, avoiding fixed large values */
    font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem); 
}

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

.page-faq__description a {
    color: var(--page-faq-gold); /* Links in description */
    text-decoration: underline;
}

.page-faq__section {
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
}

.page-faq__section-title {
    color: var(--page-faq-gold);
    font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.3); /* Subtle glow for gold text */
}

.page-faq__faq-item {
    background-color: var(--page-faq-card-bg);
    border: 1px solid var(--page-faq-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-faq-text-main); /* Ensure light text on dark card background */
}

.page-faq__faq-item[open] .page-faq__faq-question {
    background-color: var(--page-faq-deep-green); /* Darker green when open */
    border-bottom: 1px solid var(--page-faq-border);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    color: var(--page-faq-text-main);
}

/* 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-question:hover {
    background-color: var(--page-faq-deep-green);
}

.page-faq__faq-qtext {
    flex-grow: 1;
}

.page-faq__faq-toggle {
    font-size: 1.8rem;
    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); /* Rotate plus to x */
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--page-faq-text-secondary);
    line-height: 1.7;
    border-top: 1px solid transparent; /* To prevent border issues when closed */
}

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

.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__cta-section {
    background-color: var(--page-faq-deep-green); /* Darker green for CTA */
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    box-sizing: border-box;
}

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

.page-faq__cta-title {
    color: var(--page-faq-text-main);
    font-size: clamp(2rem, 4vw + 1rem, 3.2rem);
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

.page-faq__cta-image-wrapper {
    width: 100%;
    max-width: 1000px; /* Max width for CTA image */
}

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


/* General button styles */
.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 600px; /* Limit button group width */
    margin: 0 auto;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-faq__btn-primary {
    background: var(--page-faq-btn-gradient);
    color: var(--page-faq-text-main); /* Light text on dark green gradient */
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

.page-faq__btn-secondary {
    background: transparent;
    color: var(--page-faq-gold);
    border: 2px solid var(--page-faq-gold);
    box-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-faq__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

/* Image specific styles */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Consistent border-radius for all images */
}

.page-faq__image-inline {
    margin: 20px auto; /* Center align images within content */
    max-width: 800px; /* Example max-width for content images */
    display: block; /* Ensure block display for centering */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: clamp(2rem, 4.5vw + 1rem, 3rem);
    }
    .page-faq__section-title {
        font-size: clamp(1.6rem, 3.5vw + 1rem, 2.5rem);
    }
    .page-faq__cta-title {
        font-size: clamp(1.8rem, 4.5vw + 1rem, 2.8rem);
    }
}

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

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

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

    .page-faq__main-title {
        font-size: clamp(1.8rem, 6vw + 1rem, 2.5rem);
    }

    .page-faq__description {
        font-size: 1rem;
    }

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

    .page-faq__section-title {
        font-size: clamp(1.5rem, 5vw + 1rem, 2.2rem);
        margin-bottom: 30px;
    }

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

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

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

    .page-faq__cta-title {
        font-size: clamp(1.6rem, 6vw + 1rem, 2.5rem);
    }

    .page-faq__cta-description {
        font-size: 1rem;
    }

    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important; /* Ensure full width on mobile */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile image 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-section,
    .page-faq__cta-section,
    .page-faq__cta-buttons,
    .page-faq__hero-image-wrapper,
    .page-faq__cta-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-faq__content-area {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}