/* style/faq.css */

/* General page styling */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main color for dark background */
    background-color: #0A0A0A; /* Background color from custom palette */
    padding-top: 10px; /* Small top padding for first section, body handles --header-offset */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 0 20px 40px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.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;
    object-fit: cover;
    max-height: 500px; /* Limit hero image height */
}

.page-faq__hero-content {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    text-align: center;
    background-color: #111111; /* Card BG color */
    border-radius: 8px;
    margin-top: 20px; /* Space between image and content */
    box-sizing: border-box;
}

.page-faq__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: #FFD36B; /* Glow color for main title */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-faq__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFF6D6;
}

/* Section Styling */
.page-faq__section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Consistent background */
    color: #FFF6D6;
    border-bottom: 1px solid #3A2A12; /* Border from custom palette */
}

.page-faq__section:last-of-type {
    border-bottom: none;
}

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

.page-faq__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Main color for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-faq__faq-item {
    background-color: #111111; /* Card BG color */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 8px;
    overflow: hidden;
    color: #FFF6D6;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #F2C14E; /* Main color for questions */
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.1); /* Slight hover effect */
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #F2C14E;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px; /* Adjust padding when expanded */
}

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

.page-faq__faq-answer a {
    color: #FFD36B; /* Link color */
    text-decoration: underline;
}

.page-faq__faq-answer img.page-faq__image {
    margin-top: 20px;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Call to Action Buttons */
.page-faq__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 300px;
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #111111; /* Dark text for light button */
    border: none;
}

.page-faq__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: #FFD36B; /* Glow color for secondary button text */
    border: 2px solid #FFD36B; /* Glow color for border */
}

.page-faq__btn-secondary:hover {
    background-color: #FFD36B;
    color: #111111;
    transform: translateY(-2px);
}

/* Final CTA section */
.page-faq__cta-final {
    text-align: center;
    padding: 80px 0;
    background-color: #111111; /* Card BG for final CTA */
}

.page-faq__cta-final .page-faq__section-title {
    color: #FFD36B;
}

.page-faq__cta-final .page-faq__text-block {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #FFF6D6;
}

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

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

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

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

    .page-faq__hero-content {
        padding: 30px 15px;
        margin-top: 15px;
    }

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

    .page-faq__hero-description {
        font-size: 1em;
    }

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

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

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

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

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

    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px 20px 20px;
    }

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        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;
    }

    .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;
    }

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