/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for default light body background */
    background-color: #f8f9fa; /* Light background for the page content */
}

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

/* Hero/Intro Section */
.page-faq__hero-intro-section {
    background: linear-gradient(135deg, #007bff, #ffc107); /* Brand colors for hero background */
    padding-bottom: 60px;
    text-align: center;
    color: #ffffff; /* White text for dark background */
    position: relative;
    overflow: hidden;
}

.page-faq__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-faq__intro-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

.page-faq__image-wrapper {
    margin-bottom: 30px;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    max-width: 900px; /* Adjust max-width for visual balance */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #ffc107; /* Auxiliary color for CTA */
    color: #000000; /* Dark text for light button */
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-faq__cta-button:hover {
    background: #e0a800; /* Slightly darker yellow on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-faq__section {
    padding: 60px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.page-faq__section-title {
    font-size: 2.2em;
    color: #007bff; /* Primary color for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-faq__image-wrapper--section {
    margin-top: 40px;
    text-align: center;
}

.page-faq__section-image {
    width: 100%;
    height: auto;
    max-width: 700px; /* Max width for section images */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

/* FAQ List Styles */
.page-faq__faq-list {
    margin-top: 30px;
}

.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-faq__faq-question:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
}

.page-faq__faq-question:active {
    background: #e5e5e5;
}

.page-faq__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #007bff; /* Primary color for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    color: #ffc107; /* Auxiliary color when active */
    transform: rotate(45deg); /* Rotate to form an 'X' or just change to '-' */
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #f9f9f9;
    border-top: 1px solid #e9e9e9;
    color: #555555;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 25px !important;
    opacity: 1;
    border-radius: 0 0 8px 8px;
}

.page-faq__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
}

/* Support CTA Section */
.page-faq__support-cta {
    background: #e9f5ff; /* Light blue background for CTA section */
    text-align: center;
    padding-bottom: 80px;
}

.page-faq__support-cta .page-faq__section-title {
    color: #007bff;
}

.page-faq__cta-text {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #555555;
}

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.page-faq__btn-primary {
    background: #007bff;
    color: #ffffff;
}

.page-faq__btn-primary:hover {
    background: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-secondary {
    background: #ffffff;
    color: #007bff;
    border: 2px solid #007bff;
}

.page-faq__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__image-wrapper--cta {
    margin-top: 30px;
}

.page-faq__cta-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
    object-fit: cover;
}


/* Responsive Design */
@media (max-width: 992px) {
    .page-faq__main-title {
        font-size: 2.2em;
    }

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

    .page-faq__faq-question h3 {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-intro-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding is correct */
        padding-bottom: 40px;
    }

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

    .page-faq__intro-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-faq__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

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

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

    .page-faq__faq-question h3 {
        font-size: 1em;
        width: calc(100% - 40px); /* Adjust width for smaller toggle */
    }

    .page-faq__faq-toggle {
        font-size: 24px;
        margin-left: 15px;
        width: 26px;
        height: 26px;
    }

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

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

    /* Images responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-faq__image-wrapper,
    .page-faq__image-wrapper--section,
    .page-faq__image-wrapper--cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 0 15px;
    }
    
    .page-faq__container {
        padding: 0 15px;
    }
}

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

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

    .page-faq__faq-question h3 {
        font-size: 0.95em;
    }
}