/* 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 light background */
    background-color: #FFFFFF; /* Default body background is white */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #26A9E0; /* Primary brand color */
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: center;
    overflow: hidden; /* Prevent image overflow */
}

.page-faq__hero-content {
    max-width: 600px;
    z-index: 1;
}

.page-faq__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
}

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

.page-faq__hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

.page-faq__btn-primary {
    background-color: #EA7C07; /* Login/CTA color */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-faq__btn-primary:hover {
    background-color: #e06c00;
    transform: translateY(-2px);
}

.page-faq__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

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

.page-faq__hero-image-wrapper {
    flex-shrink: 0;
    width: 500px; /* Adjust as needed */
    height: 281px; /* Maintain aspect ratio for 16:9 for 500px width */
    position: relative;
    z-index: 0;
}

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    display: block; /* Ensure it behaves as a block element */
}

/* Content Area */
.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #FFFFFF;
}

.page-faq__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
}

.page-faq__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555555;
}

/* FAQ List */
.page-faq__faq-list {
    display: grid;
    gap: 30px;
}

.page-faq__faq-category {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.page-faq__category-title {
    font-size: 2em;
    color: #26A9E0;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
}

.page-faq__faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #FFFFFF;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

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

.page-faq__faq-label {
    color: #26A9E0;
    margin-right: 10px;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg);
    color: #EA7C07; /* Highlight toggle when active */
}

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

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

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

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

.page-faq__link-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: bold;
    text-decoration: none;
    margin-top: 15px;
    margin-right: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

.page-faq__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* CTA Section */
.page-faq__cta-section {
    text-align: center;
    background-color: #26A9E0;
    color: #FFFFFF;
    padding: 60px 30px;
    border-radius: 12px;
    margin-top: 50px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.page-faq__cta-title {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-faq__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-faq__cta-button {
    display: inline-block;
    padding: 18px 35px;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-faq__hero-section {
        flex-direction: column;
        text-align: center;
        padding-left: 20px;
        padding-right: 20px;
    }

    .page-faq__hero-image-wrapper {
        width: 100%;
        max-width: 600px; /* Constrain image width on smaller screens */
        height: auto;
        margin-top: 30px;
    }

    .page-faq__hero-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
        gap: 20px;
    }

    .page-faq__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

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

    .page-faq__hero-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__content-area {
        padding: 40px 15px;
    }

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

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

    .page-faq__faq-category {
        padding: 20px;
    }

    .page-faq__category-title {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

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

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

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

    .page-faq__link-button {
        padding: 8px 15px;
        font-size: 0.9em;
        margin-top: 10px;
        margin-right: 8px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        display: block !important; /* Stack buttons on mobile */
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
    .page-faq__link-button:last-child {
        margin-bottom: 0;
    }

    /* Images responsive */
    .page-faq img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__hero-section,
    .page-faq__content-area,
    .page-faq__faq-category,
    .page-faq__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-faq__faq-answer {
        padding-left: 20px !important; /* Maintain specific padding for answer content */
        padding-right: 20px !important;
    }

    /* CTA Section responsive */
    .page-faq__cta-section {
        padding: 40px 15px;
    }

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

    .page-faq__cta-button {
        padding: 15px 25px;
        font-size: 1.1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
}

/* Ensure no image filters are used */
.page-faq img {
    filter: none;
}