/* style/faq.css */

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below on mobile */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #F8F8F8;
    text-align: center;
    overflow: hidden; /* Ensure no overflow */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width on larger screens */
    margin-bottom: 30px; /* Space between image and text */
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-faq__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H1 */
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-faq__description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow */
}

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

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

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

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

/* General Section Styling */
.page-faq__section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-faq__section-title {
    font-size: 2em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.page-faq__text-block {
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.7;
    color: #333333;
}

.page-faq__text-block a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-faq__text-block a:hover {
    color: #1a8ccb;
}

/* FAQ List Styling */
.page-faq__faq-list {
    background-color: #FDFDFD;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.page-faq__faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #FFFFFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* For smooth transition if using max-height for answer */
}

.page-faq__faq-item[open] {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker */
}

.page-faq__faq-question::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

.page-faq__faq-item[open] > .page-faq__faq-question {
    background-color: #26A9E0;
    color: #FFFFFF;
    border-bottom-color: #1a8ccb;
}

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

.page-faq__faq-item[open] > .page-faq__faq-question:hover {
    background-color: #1a8ccb;
}

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

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(0deg); /* No rotation for plus/minus */
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #FFFFFF;
    border-top: 1px solid #eee;
}

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

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

.page-faq__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Call to Action Section */
.page-faq__cta-section {
    background-color: #26A9E0;
    color: #FFFFFF;
    text-align: center;
    padding: 60px 20px;
    border-radius: 10px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-faq__cta-section .page-faq__section-title {
    color: #FFFFFF;
    margin-bottom: 25px;
}

.page-faq__cta-section .page-faq__text-block {
    color: #f0f8ff;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__cta-section .page-faq__btn-primary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border-color: #FFFFFF;
}

.page-faq__cta-section .page-faq__btn-primary:hover {
    background-color: #e0f2f7;
    color: #1a8ccb;
    border-color: #e0f2f7;
}

.page-faq__cta-section .page-faq__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.page-faq__cta-section .page-faq__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #e0f2f7;
}

/* Responsive Styles */
@media (min-width: 769px) {
    .page-faq__hero-section {
        flex-direction: row; /* Desktop: Image and content side-by-side */
        text-align: left;
        padding-top: 60px; /* Adjust for larger screens */
    }

    .page-faq__hero-content {
        flex: 1;
        padding-right: 50px;
        margin: 0;
    }

    .page-faq__hero-image-wrapper {
        flex: 1;
        margin-bottom: 0;
    }

    .page-faq__cta-buttons {
        justify-content: flex-start; /* Align buttons left on desktop hero */
    }

    .page-faq__cta-section .page-faq__cta-buttons {
        justify-content: center; /* Center buttons in CTA section */
    }
}


@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body already handles header offset */
    }

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

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

    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        width: 100%; /* Ensure button group takes full width */
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-faq__section-title {
        font-size: 1.7em;
        margin-bottom: 25px;
    }

    .page-faq__text-block {
        font-size: 0.95em;
    }

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

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

    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important; /* Crucial for images within padded containers */
    }
    
    /* Ensure all containers with images also adapt */
    .page-faq__hero-image-wrapper,
    .page-faq__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent overflow of content like images */
    }

    /* Video section top padding (if any video) */
    .page-faq__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    
    /* Ensure no horizontal scroll for main content area */
    .page-faq__content-area,
    .page-faq__faq-list,
    .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 */
    }
}

/* Desktop specific adjustments for hero section */
@media (min-width: 1024px) {
    .page-faq__hero-section {
        padding-left: 40px;
        padding-right: 40px;
    }
    .page-faq__section {
        padding-left: 40px;
        padding-right: 40px;
    }
}