.page-faq {
    font-family: Arial, sans-serif;
    color: var(--text-main, #1F2D3D); /* Default text color based on light background */
    background-color: var(--background, #F4F7FB); /* Ensure background is light */
}

.page-faq__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    background: linear-gradient(180deg, #F4F7FB 0%, #E0E7F5 100%); /* Light gradient background */
    color: var(--text-main, #1F2D3D);
}

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

.page-faq__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
}

.page-faq__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--custom-color-1776249996415, #000000);
    max-width: 600px; /* Limit width for better readability */
}

.page-faq__description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 24px;
    color: var(--text-main, #1F2D3D);
    max-width: 600px; /* Limit width for better readability */
}

.page-faq__cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%; /* Ensure container takes full width for responsive */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none; /* Reset border */
    max-width: 100%; /* Ensure button is responsive */
    box-sizing: border-box;
    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;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-faq__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

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

.page-faq__btn-small {
    padding: 8px 18px;
    font-size: 0.9em;
    margin-top: 10px;
}

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

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

.page-faq__faq-list-section {
    padding: 60px 0;
    background-color: var(--card-bg, #FFFFFF); /* White background for contrast */
    color: var(--text-main, #1F2D3D);
}

.page-faq__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 16px;
}

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

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

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

.page-faq__faq-item {
    background: var(--background, #F4F7FB); /* Light background for FAQ items */
    border: 1px solid var(--border, #D6E2FF);
    border-radius: 10px;
    overflow: hidden;
    padding: 0; /* Remove default padding from details */
    color: var(--text-main, #1F2D3D);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.15em;
    color: var(--custom-color-1776249996415, #000000);
    list-style: none; /* Remove default marker */
}

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

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

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

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

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

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

.page-faq__faq-answer a:hover {
    color: var(--secondary-color, #6FA3FF);
}

.page-faq__faq-list-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto 0;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.page-faq__cta-section {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--primary-color, #2F6BFF) 0%, var(--secondary-color, #6FA3FF) 100%);
    color: #ffffff; /* White text on dark/brand background */
    text-align: center;
}

.page-faq__cta-section .page-faq__section-title {
    color: #ffffff;
}

.page-faq__cta-section .page-faq__section-description {
    color: #f0f0f0;
}

.page-faq__cta-buttons--bottom {
    justify-content: center;
    margin-top: 30px;
}

.page-faq__cta-section .page-faq__btn-primary {
    background: #ffffff;
    color: var(--primary-color, #2F6BFF);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-section .page-faq__btn-primary:hover {
    background: var(--background, #F4F7FB);
    color: var(--primary-color, #2F6BFF);
}

.page-faq__cta-section .page-faq__btn-secondary {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.page-faq__cta-section .page-faq__btn-secondary:hover {
    background: #ffffff;
    color: var(--primary-color, #2F6BFF);
}

.page-faq__cta-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 40px auto 0;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-faq__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-faq__hero-content {
        flex: 1 1 100%;
        max-width: 700px;
        margin: 0 auto;
    }
    .page-faq__hero-image {
        flex: 1 1 100%;
        max-width: 700px;
        margin: 20px auto 0;
    }
    .page-faq__main-title,
    .page-faq__description,
    .page-faq__cta-buttons {
        margin-left: auto;
        margin-right: auto;
    }
    .page-faq__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-faq__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 30px;
    }
    .page-faq__hero-container {
        padding: 30px 15px;
    }
    .page-faq__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em);
        margin-bottom: 12px;
    }
    .page-faq__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px; /* Add padding to container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        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;
    }

    /* All images must be responsive */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* All image containers must be responsive */
    .page-faq__hero-image,
    .page-faq__faq-list-image,
    .page-faq__cta-image,
    .page-faq__container,
    .page-faq__faq-list-section,
    .page-faq__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__faq-list-section,
    .page-faq__cta-section {
        padding: 40px 0;
    }
    .page-faq__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 15px;
    }
    .page-faq__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-faq__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-faq__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-faq__faq-list-image,
    .page-faq__cta-image {
        margin-top: 30px;
    }
    .page-faq__hero-side-image,
    .page-faq__faq-list-image,
    .page-faq__cta-image {
        min-width: 200px !important; /* Ensure min-width for all content images */
        min-height: 200px !important; /* Ensure min-height for all content images */
    }
}