.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--text-main, #1F2D3D); /* Default text color, assuming light body bg */
    background-color: var(--page-bg, #F4F7FB); /* From shared.css */
    line-height: 1.6;
}

.page-faq__hero-section {
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    background-color: var(--bg-color-primary, #F4F7FB);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.page-faq__hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
    z-index: 1;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-faq__hero-text-block {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-faq__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: 700;
    color: var(--custom-color-black, #000000);
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 600px;
}

.page-faq__description {
    font-size: 1.1em;
    color: var(--text-main, #1F2D3D);
    margin-bottom: 30px;
    max-width: 600px;
}

.page-faq__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow wrapping */
    width: 100%;
    max-width: 100%; /* Ensure container responsiveness */
    box-sizing: border-box;
    overflow: hidden;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-faq__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-faq__btn-secondary {
    background: #ffffff;
    color: var(--primary-color, #2F6BFF);
    border: 2px solid var(--primary-color, #2F6BFF);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-faq__btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--primary-color, #2F6BFF);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

.page-faq__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

.page-faq__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: contain; /* Ensure image fits without cropping */
}

.page-faq__section {
    padding: 60px 0;
    background-color: var(--card-bg, #FFFFFF);
}

.page-faq__faq-list-section {
    background-color: var(--page-bg, #F4F7FB);
}

.page-faq__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-faq__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 700;
    color: var(--custom-color-black, #000000);
    text-align: center;
    margin-bottom: 20px;
}

.page-faq__section-description {
    font-size: 1em;
    color: var(--text-main, #1F2D3D);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-faq__faq-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__faq-item {
    background-color: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #D6E2FF);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-faq__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--custom-color-black, #000000);
    position: relative;
}

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

.page-faq__faq-qtext {
    flex-grow: 1;
    padding-right: 15px; /* Space for toggle icon */
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--primary-color, #2F6BFF);
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'X' or similar */
}

.page-faq__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 0.95em;
    color: var(--text-main, #1F2D3D);
    line-height: 1.8;
}

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

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.page-faq__faq-answer li {
    margin-bottom: 5px;
}

.page-faq__faq-answer a {
    color: var(--primary-color, #2F6BFF);
    text-decoration: none;
}

.page-faq__faq-answer a:hover {
    text-decoration: underline;
}

.page-faq__cta-bottom {
    background: linear-gradient(to right, var(--primary-color, #2F6BFF), var(--auxiliary-color, #6FA3FF));
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-faq__cta-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-faq__section-title--white,
.page-faq__section-description--white {
    color: #ffffff;
}

.page-faq__section-title--white {
    margin-bottom: 15px;
}

.page-faq__section-description--white {
    margin-bottom: 30px;
}

.page-faq__btn-primary--large,
.page-faq__btn-secondary--large {
    padding: 16px 32px;
    font-size: 1.2em;
    min-width: 200px;
}

.page-faq__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area */
    opacity: 0.15; /* Subtle background image */
    z-index: 1;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-faq__hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .page-faq__hero-text-block {
        text-align: center;
    }

    .page-faq__main-title {
        max-width: none;
    }

    .page-faq__description {
        max-width: none;
    }

    .page-faq__hero-image-wrapper {
        order: -1; /* Image above text on tablet */
        margin-bottom: 30px;
    }

    .page-faq__cta-buttons {
        justify-content: center;
    }

    .page-faq__section {
        padding: 40px 0;
    }
}

/* Mobile specific styles (max-width: 768px) */
@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Hero Section */
    .page-faq__hero-section {
        padding-top: 10px !important;
        min-height: auto;
    }

    .page-faq__hero-content-wrapper {
        padding: 20px 15px;
        gap: 20px;
    }

    .page-faq__main-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-faq__description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    /* Buttons and Button Containers */
    .page-faq__cta-buttons {
        flex-direction: column !important;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !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-left: 15px;
        padding-right: 15px;
    }

    /* Images */
    .page-faq__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        aspect-ratio: unset !important;
        max-height: none !important;
    }

    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* General Section & Container */
    .page-faq__section,
    .page-faq__card,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    .page-faq__section-description {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    /* FAQ List Section */
    .page-faq__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }

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

    /* Bottom CTA Section */
    .page-faq__cta-bottom {
        padding: 50px 0;
    }

    .page-faq__cta-content {
        padding: 0 15px;
    }

    .page-faq__btn-primary--large,
    .page-faq__btn-secondary--large {
        font-size: 1.1em;
        padding: 14px 28px;
        min-width: unset;
    }
}