/* style/faq.css */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Default body background */
}

/* Hero Section */
.page-faq__hero-section {
    padding-top: 10px; /* Small top padding, not --header-offset */
    padding-bottom: 40px;
    background-color: #f5f5f5;
}

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

.page-faq__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: #1e1765; /* Darker text for visual contrast on light hero background */
}

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

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

.page-faq__cta-buttons {
    display: flex;
    gap: 15px;
    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: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

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

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

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

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

.page-faq__hero-image {
    flex: 1 1 40%;
    min-width: 280px;
    text-align: center;
}

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

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

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

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

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

.page-faq__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ List */
.page-faq__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #26A9E0;
    cursor: pointer;
    list-style: none; /* Hide default marker */
    user-select: none;
}

.page-faq__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-faq__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #555555;
    margin-left: 15px;
}

.page-faq__faq-item[open] .page-faq__faq-question {
    background-color: #eaf6fc;
}

.page-faq__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #333333;
    line-height: 1.8;
}

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

.page-faq__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

/* Why Choose Us Section */
.page-faq__why-choose-us-section {
    background-color: #f0f8ff;
    padding: 60px 16px;
}

.page-faq__why-choose-us-container {
    max-width: 1170px;
    margin: 0 auto;
    text-align: center;
}

.page-faq__why-choose-us-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 40px;
}

.page-faq__why-choose-us-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-faq__why-choose-us-image {
    flex: 1 1 45%;
    min-width: 300px;
}

.page-faq__why-choose-us-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-faq__why-choose-us-list {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-faq__why-choose-us-list li {
    margin-bottom: 20px;
}

.page-faq__why-choose-us-item-title {
    font-size: 1.3em;
    color: #1e1765;
    margin-bottom: 5px;
}

.page-faq__why-choose-us-list p {
    color: #555555;
    font-size: 0.95em;
}

/* CTA Section */
.page-faq__cta-section {
    background-color: #26A9E0; /* Brand primary color for dark section */
    color: #FFFFFF; /* White text for dark background */
    padding: 60px 16px;
    text-align: center;
}

.page-faq__cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-faq__cta-title {
    font-size: clamp(2em, 4vw, 2.8em);
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
}

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

/* General image rules */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensures images behave predictably */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-faq__hero-container,
    .page-faq__why-choose-us-content {
        flex-direction: column;
        text-align: center;
    }

    .page-faq__hero-content,
    .page-faq__hero-image,
    .page-faq__why-choose-us-image,
    .page-faq__why-choose-us-list {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .page-faq__why-choose-us-list {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-faq {
        font-size: 15px;
        line-height: 1.5;
    }

    /* HERO Section */
    .page-faq__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px !important;
    }

    .page-faq__hero-container {
        padding: 20px 15px !important;
        gap: 20px !important;
    }

    .page-faq__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em) !important;
        margin-bottom: 15px !important;
    }

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

    .page-faq__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .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;
        padding: 12px 15px !important;
        font-size: 1em !important;
    }

    .page-faq__hero-side-image,
    .page-faq__content-image,
    .page-faq__why-choose-us-img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Content Area */
    .page-faq__content-area {
        padding: 30px 15px !important;
    }

    .page-faq__section-title,
    .page-faq__why-choose-us-title,
    .page-faq__cta-title {
        font-size: clamp(1.5em, 6vw, 2em) !important;
        margin-bottom: 20px !important;
    }

    .page-faq__intro-text {
        font-size: 0.95em !important;
        margin-bottom: 30px !important;
    }

    /* FAQ List */
    .page-faq__faq-list {
        padding: 0 5px !important;
    }

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

    .page-faq__faq-toggle {
        font-size: 1.2em !important;
    }

    .page-faq__faq-answer {
        padding: 0 20px 15px 20px !important;
        font-size: 0.95em !important;
    }

    /* Why Choose Us Section */
    .page-faq__why-choose-us-section {
        padding: 30px 15px !important;
    }

    .page-faq__why-choose-us-title {
        margin-bottom: 30px !important;
    }

    .page-faq__why-choose-us-list {
        padding: 0 !important;
    }

    .page-faq__why-choose-us-list li {
        margin-bottom: 15px !important;
    }

    .page-faq__why-choose-us-item-title {
        font-size: 1.1em !important;
    }

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

    .page-faq__cta-title {
        font-size: clamp(1.8em, 7vw, 2.2em) !important;
        margin-bottom: 15px !important;
    }

    .page-faq__cta-description {
        font-size: 1em !important;
        margin-bottom: 25px !important;
    }

    /* Ensure containers don't overflow */
    .page-faq__hero-container,
    .page-faq__content-area,
    .page-faq__why-choose-us-container,
    .page-faq__cta-container,
    .page-faq__cta-buttons,
    .page-faq__image-wrapper,
    .page-faq__why-choose-us-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
}