/* Base styles for the FAQ page */
.page-faq {
    font-family: 'Arial', sans-serif;
    color: #1F2D3D; /* Text Main from custom colors */
    background-color: #F4F7FB; /* Background from custom colors */
    line-height: 1.6;
}

/* Hero Section */
.page-faq__hero-section {
    padding-top: 10px; /* Small top padding as body should handle --header-offset */
    padding-bottom: 60px;
    background-color: #F4F7FB; /* Use background color from custom colors */
}

.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: 40px;
}

.page-faq__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: #1F2D3D; /* Text Main */
}

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* Use clamp for H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1F2D3D; /* Text Main */
}

.page-faq__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #1F2D3D; /* Text Main */
}

.page-faq__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow on small screens */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
    color: #ffffff;
    border: none;
}

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

.page-faq__btn-secondary {
    background: #ffffff; /* Card BG */
    color: #2F6BFF; /* Main color */
    border: 2px solid #2F6BFF; /* Main color */
}

.page-faq__btn-secondary:hover {
    background: #e0eaff; /* Lighter shade of main color */
    color: #2F6BFF;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

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

.page-faq__side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure image behaves as a block element for max-width */
}

/* Content Area */
.page-faq__content-area {
    background-color: #ffffff; /* Card BG */
    padding: 60px 0;
}

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

.page-faq__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
}

.page-faq__intro-text {
    font-size: 1rem;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* FAQ List */
.page-faq__faq-list {
    margin-bottom: 60px;
}

.page-faq__faq-item {
    background-color: #F4F7FB; /* Background color */
    border: 1px solid #D6E2FF; /* Border color */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
    background-color: #EBF2FF; /* Lighter background when open */
    border-color: #2F6BFF; /* Main color border when open */
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1F2D3D; /* Text Main */
    cursor: pointer;
    list-style: none; /* Remove default marker */
    position: relative;
    user-select: none;
}

/* Hide default details marker */
.page-faq__faq-item summary::-webkit-details-marker,
.page-faq__faq-item summary::marker {
    display: none;
    content: "";
}

.page-faq__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-faq__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: #2F6BFF; /* Main color */
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-faq__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #1F2D3D; /* Text Main */
    line-height: 1.7;
    overflow: hidden;
}

.page-faq__faq-answer p {
    margin-bottom: 1em;
}

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

.page-faq__faq-answer a {
    color: #2F6BFF; /* Main color for links */
    text-decoration: underline;
}

.page-faq__faq-answer a:hover {
    color: #4A8BFF; /* Lighter main color on hover */
}

.page-faq__faq-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
    display: block;
}

/* Conclusion Block */
.page-faq__conclusion-block {
    text-align: center;
    padding: 40px 20px;
    background-color: #EBF2FF; /* Lighter background color */
    border-radius: 12px;
    border: 1px solid #D6E2FF; /* Border color */
}

.page-faq__conclusion-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 15px;
}

.page-faq__conclusion-text {
    font-size: 1.1rem;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-faq__hero-container {
        padding: 30px 16px;
        gap: 30px;
    }

    .page-faq__hero-content,
    .page-faq__hero-image {
        flex: 1 1 100%; /* Stack elements */
    }

    .page-faq__hero-image {
        order: -1; /* Image appears above content on smaller screens */
    }

    .page-faq__main-title {
        text-align: center;
    }

    .page-faq__description {
        text-align: center;
    }

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

    .page-faq__container {
        padding: 0 24px;
    }

    .page-faq__faq-question {
        font-size: 1.1rem;
        padding: 18px 22px;
    }

    .page-faq__faq-answer {
        font-size: 0.95rem;
        padding: 0 22px 18px;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-faq__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile, if body has header-offset */
        padding-bottom: 40px;
    }

    .page-faq__hero-container {
        flex-direction: column;
        padding: 20px 15px;
        gap: 25px;
    }

    .page-faq__hero-content {
        min-width: unset;
    }

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

    .page-faq__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons specific for mobile */
    .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 20px;
        font-size: 1rem;
    }

    .page-faq__hero-image {
        min-width: unset;
    }

    .page-faq__side-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Content Area */
    .page-faq__content-area {
        padding: 40px 0;
    }

    .page-faq__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 15px;
    }

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

    /* FAQ List */
    .page-faq__faq-list {
        margin-bottom: 40px;
    }

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

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

    .page-faq__faq-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Conclusion Block */
    .page-faq__conclusion-block {
        padding: 30px 15px;
    }

    .page-faq__conclusion-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        margin-bottom: 10px;
    }

    .page-faq__conclusion-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-faq__btn-large {
        padding: 14px 25px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General image responsive styles for content area */
    .page-faq img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* Ensure all containers with images also adapt */
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}