/* Base styles for the FAQ page content */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
    background: #F4F7FB; /* Background */
    padding-bottom: 30px;
}

/* Hero Section - Main title and description */
.page-faq__hero-section {
    padding: 10px 0 40px; /* Adjusted padding-top to 10px */
    text-align: center;
    background: linear-gradient(180deg, #F4F7FB 0%, #E6EEF7 100%); /* Light gradient background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-faq__container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-faq__main-title {
    font-size: 3em;
    font-weight: 700;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 800px;
}

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

.page-faq__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

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

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

.page-faq__btn-secondary:hover {
    background: #e0eaff;
    color: #1F52CC;
    border-color: #1F52CC;
}

.page-faq__image-wrapper {
    margin-top: 30px;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    box-sizing: border-box;
}

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

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

.page-faq__section-title {
    font-size: 2.2em;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

/* FAQ Item styles */
details.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #D6E2FF; /* Border color */
    overflow: hidden;
    background: #FFFFFF; /* Card BG */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

details.page-faq__faq-item summary.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: #1F2D3D; /* Text Main */
}

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

details.page-faq__faq-item summary.page-faq__faq-question:hover {
    background: #F4F7FB; /* Background color */
}

.page-faq__faq-qtext {
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #1F2D3D; /* Text Main */
}

.page-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: #2F6BFF; /* Main color */
    flex-shrink: 0;
    margin-left: 20px;
    width: 30px;
    text-align: center;
}

details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 25px 25px;
    background: #fdfdfd;
    border-radius: 0 0 8px 8px;
    color: #1F2D3D; /* Text Main */
}

.page-faq__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.7;
    color: #1F2D3D; /* Text Main */
}

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

.page-faq__faq-answer p a:hover {
    color: #6FA3FF; /* Auxiliary color for links on hover */
}

/* CTA Bottom Section */
.page-faq__cta-bottom {
    background: linear-gradient(90deg, #2F6BFF 0%, #6FA3FF 100%);
    padding: 50px 0;
    text-align: center;
    color: #ffffff;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 960px;
    box-shadow: 0 10px 25px rgba(47, 107, 255, 0.3);
}

.page-faq__cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-faq__cta-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    max-width: 700px;
}

.page-faq__cta-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #e0eaff;
    max-width: 600px;
}

.page-faq__cta-bottom .page-faq__btn-primary {
    background: #ffffff;
    color: #2F6BFF;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-bottom .page-faq__btn-primary:hover {
    background: #f0f0f0;
    color: #1F52CC;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-image {
    margin-top: 30px;
    max-width: 400px;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 2.5em;
    }
    .page-faq__description {
        font-size: 1em;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__faq-qtext {
        font-size: 1.1em;
    }
    .page-faq__cta-title {
        font-size: 2em;
    }
    .page-faq__cta-text {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    /* 1. Top section (hero-section acts as top-text) */
    .page-faq__hero-section {
        padding: 10px 15px 30px; /* Adjust padding-top to 10px */
    }
    
    .page-faq__main-title {
        font-size: clamp(1.8em, 6vw, 2.2em); /* Use clamp for H1 */
        margin-bottom: 15px;
    }
    
    .page-faq__description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    /* 2. Two-column modules - N/A for this page, but general sections are column-flexed/single column */
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin-left: auto;
        margin-right: auto;
    }

    /* 3. General images and containers */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-faq__image-wrapper,
    .page-faq__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__content-area {
        padding: 30px 0;
    }

    /* 4. Buttons */
    .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; /* Ensure padding for text wrap */
        padding-right: 15px; /* Ensure padding for text wrap */
    }
    
    .page-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    details.page-faq__faq-item summary.page-faq__faq-question {
        padding: 15px 20px;
    }
    .page-faq__faq-qtext {
        font-size: 1em;
    }
    .page-faq__faq-toggle {
        font-size: 24px;
        margin-left: 15px;
        width: 24px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 20px 20px;
    }

    .page-faq__cta-bottom {
        padding: 40px 15px;
        margin: 30px 15px;
    }
    .page-faq__cta-title {
        font-size: 1.8em;
    }
    .page-faq__cta-text {
        font-size: 0.95em;
    }

    /* Ensure no filter is used on images */
    .page-faq img {
        filter: none;
    }

    /* Mobile responsive for general containers with images */
    .page-faq__section,
    .page-faq__card,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Contrast Fixes (if needed, though primary colors are good) */
    .page-faq__dark-bg {
      color: #ffffff;
      background: #2F6BFF;
    }

    .page-faq__light-bg {
      color: #333333;
      background: #ffffff;
    }
}