/* style/faq.css */

/* General styles for the FAQ page */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #ffffff; /* Explicitly set for clarity */
}

/* Hero Section */
.page-faq__hero-section {
    padding-top: 10px; /* Adhering to the 10px top spacing rule */
    padding-bottom: 60px;
    background-color: #f8f8f8;
}

.page-faq__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 20px 15px;
}

.page-faq__hero-image {
    flex: 1 1 50%;
    order: 2; /* Image on top, text below rule is for DOM order, but flex order can be used for visual */
    text-align: center;
}

.page-faq__hero-content {
    flex: 1 1 40%;
    order: 1;
    color: #333333;
}

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

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

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

/* CTA Group */
.page-faq__cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.page-faq__btn {
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Important for button responsiveness */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

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

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

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

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

/* Section Common Styles */
.page-faq__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
}

.page-faq__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0;
}

.page-faq__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-faq__faq-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-faq__faq-list {
    margin-top: 30px;
}

.page-faq__faq-item {
    background-color: #f0f8ff; /* Light blue background for FAQ item */
    border: 1px solid #d0e8f2;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-weight: bold;
    font-size: 1.15em;
    color: #333333;
    cursor: pointer;
    background-color: #e6f7ff; /* Lighter blue for summary */
    list-style: none; /* Hide default marker */
    user-select: none; /* Prevent text selection on click */
}

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

.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;
    color: #26A9E0;
}

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

.page-faq__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #f0f8ff;
}

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

/* Dark CTA Section */
.page-faq__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-faq__dark-section {
    background-color: #26A9E0; /* Primary brand color for dark section */
    color: #FFFFFF;
}

.page-faq__section-title--light {
    color: #FFFFFF;
}

.page-faq__description--light {
    color: #e0f2f7;
}

/* Image specific styles */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles for 1024px and below */
@media (max-width: 1024px) {
    .page-faq__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-faq__hero-image {
        order: 1; /* Image on top for smaller screens */
    }
    .page-faq__hero-content {
        order: 2;
    }
    .page-faq__main-title {
        max-width: none;
    }
    .page-faq__cta-group {
        justify-content: center;
    }
}

/* Responsive Styles for 768px and below */
@media (max-width: 768px) {
    /* HERO Section */
    .page-faq__hero-section {
        padding-top: 10px !important; /* Enforce 10px top padding */
        padding-bottom: 40px;
    }
    .page-faq__hero-container {
        padding: 15px;
        gap: 20px;
    }
    .page-faq__main-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-faq__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-faq__cta-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        width: 100%;
    }
    .page-faq__btn {
        max-width: 100% !important;
        width: 100% !important;
        padding: 10px 15px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__cta-group,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Section */
    .page-faq__faq-section {
        padding: 40px 0;
    }
    .page-faq__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-faq__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-faq__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-faq__faq-answer {
        padding: 10px 20px 20px;
        font-size: 0.95em;
    }

    /* Dark CTA Section */
    .page-faq__cta-section {
        padding: 60px 0;
    }
    .page-faq__section-title--light {
        font-size: 2em;
    }
    .page-faq__description--light {
        font-size: 1em;
    }

    /* General image responsiveness for content area */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
}