/* style/faq.css */
.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #ffffff; /* Explicitly set if not inherited well */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Stacks content vertically */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    background-color: #f8f8f8; /* Light background for the section */
}

.page-faq__hero-image {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    height: auto;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure it behaves as a block element for max-width */
}

.page-faq__hero-content {
    max-width: 800px;
    margin-bottom: 30px;
}

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

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

/* General Section Styling */
.page-faq__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-faq__faq-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background for FAQ section */
}

.page-faq__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-faq__dark-bg .page-faq__section-title,
.page-faq__dark-bg .page-faq__cta-title {
    color: #ffffff;
}

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

.page-faq__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-faq__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px;
    background-color: #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

.page-faq__faq-item summary:hover {
    background-color: #eeeeee;
}

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

.page-faq__faq-qtext {
    flex-grow: 1;
    font-size: 1.1em;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0;
}

/* JS handles content change for toggle, CSS for initial state if JS fails */
.page-faq__faq-answer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    color: #555555;
    font-size: 0.95em;
}

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

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

.page-faq__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

.page-faq__btn-primary:hover {
    background-color: #1e87c2;
    border-color: #1e87c2;
}

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

.page-faq__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1e87c2;
    border-color: #1e87c2;
}

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

/* Bottom CTA Section */
.page-faq__cta-bottom {
    padding: 80px 20px;
    text-align: center;
    background-color: #26A9E0;
    color: #ffffff;
}

.page-faq__cta-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding on mobile */
    }

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

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

    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: clamp(1.6em, 6vw, 2.2em);
    }

    .page-faq__container {
        padding: 0 15px; /* Add padding to container on mobile */
    }

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

    .page-faq__faq-answer {
        padding: 15px;
        font-size: 0.9em;
    }

    /* Images responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-faq__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Buttons responsiveness */
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-faq a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 5px 0 !important; /* Adjust margin for stacked buttons */
        padding: 10px 15px !important; /* Adjust padding for mobile buttons */
    }

    .page-faq__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically on mobile */
        gap: 10px !important;
    }

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