/* style/faq.css */

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

/* General styles for the page-faq scope */
.page-faq {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Using custom color for main text */
    background-color: var(--background); /* Using custom color for body background */
    padding-top: 0; /* Handled by shared.css body padding-top */
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    padding-top: 10px; /* Small decorative top padding */
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

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

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

.page-faq__hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 1; /* Ensure text is above any background effects */
}

.page-faq__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: var(--text-main); /* Using custom color */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-faq__hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary); /* Using custom color */
    margin-bottom: 30px;
}

/* Section Title */
.page-faq__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-main); /* Using custom color */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

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

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

.page-faq__faq-item {
    background-color: var(--card-bg); /* Using custom color */
    border: 1px solid var(--border); /* Using custom color */
    border-radius: 8px;
    overflow: hidden;
    color: var(--text-main); /* Using custom color */
}

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

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

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

.page-faq__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow); /* Using custom color */
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    content: "−";
}

.page-faq__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--text-secondary); /* Using custom color */
}

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

/* CTA Section */
.page-faq__cta-section {
    background-color: var(--deep-green); /* Using custom color for dark section */
    padding: 80px 0;
    text-align: center;
    color: var(--text-main); /* Using custom color */
}

.page-faq__cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main); /* Using custom color */
}

.page-faq__cta-description {
    font-size: 1.1rem;
    color: var(--text-secondary); /* Using custom color */
    max-width: 700px;
    margin: 0 auto 30px;
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-faq__btn-primary {
    background: var(--button-gradient); /* Custom button gradient */
    color: #ffffff; /* White text for contrast */\    border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Invert gradient on hover */
    box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4); /* Glow effect */
}

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

.page-faq__btn-secondary:hover {
    background-color: var(--border); /* Subtle hover effect */
    color: var(--text-main); /* Change text color on hover */
}

/* Images within content sections */
.page-faq__section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto; /* Center images */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

    .page-faq__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__hero-section {
        padding: 40px 0;
        padding-top: 10px !important; /* Small top padding */
    }

    .page-faq__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

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

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

    .page-faq__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-faq__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
        padding-top: 30px;
    }

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

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

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

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

    .page-faq__cta-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

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

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px; /* Adjust padding */
        font-size: 0.95rem;
        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-image-wrapper,
    .page-faq__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-faq__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-faq__cta-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-faq__cta-buttons {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

}