/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
    background-color: var(--page-bg, #F4F7FB); /* Assuming shared.css defines --page-bg, fallback to #F4F7FB */
}

/* Container for main content */
.page-faq__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section - Top section for main title and intro */
.page-faq__hero-section {
    padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
    padding-bottom: 40px;
    text-align: center;
    background-color: #F4F7FB; /* Background color */
}

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

.page-faq__hero-content {
    margin-top: 20px;
}

.page-faq__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Using clamp for H1 font size */
    color: #1F2D3D; /* Text Main */
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
}

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

/* CTA Buttons in Hero */
.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-top: 25px;
}

.page-faq__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    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%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

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

.page-faq__btn--secondary {
    background: #ffffff; /* Card BG */
    color: #2F6BFF; /* Primary color */
    border: 2px solid #2F6BFF; /* Primary color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__btn--secondary:hover {
    background: #f0f5ff;
    color: #1f50c0;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Main content area */
.page-faq__content-area {
    padding-top: 60px;
    padding-bottom: 80px;
    background-color: #ffffff; /* Card BG for content area to ensure contrast */
    border-radius: 12px;
    margin: 40px auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.page-faq__article-wrap {
    max-width: 900px; /* Narrower for article-like content */
    padding: 0 25px;
}

.page-faq__section-title {
    font-size: 2.2em;
    color: #000000; /* Custom Color_1776249996415 */
    margin-top: 40px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

/* FAQ Item (Details/Summary structure) */
.page-faq__faq-item {
    background-color: #ffffff; /* Card BG */
    border: 1px solid #D6E2FF; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.1);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.15em;
    color: #1F2D3D; /* Text Main */
    background-color: #F4F7FB; /* Background */
    border-bottom: 1px solid #D6E2FF; /* Border color */
    list-style: none; /* Hide default marker */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

/* Hide default details marker for 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;
    margin-left: 15px;
    color: #2F6BFF; /* Primary color */
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Change + to X or rotate */
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #1F2D3D; /* Text Main */
    background-color: #ffffff; /* Card BG */
    border-top: none; /* Remove top border, already has bottom border from summary */
}

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

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

/* Images within content */
.page-faq__image-block {
    margin: 40px auto;
    text-align: center;
}

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

/* Call to Action Section at the bottom */
.page-faq__cta-section {
    padding: 50px 20px;
    background-color: #F4F7FB; /* Background */
    text-align: center;
    border-radius: 12px;
    margin-top: 60px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.page-faq__cta-section .page-faq__section-title {
    margin-top: 0;
    font-size: 2em;
}

.page-faq__cta-section .page-faq__description {
    margin-bottom: 40px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-faq__container {
        padding: 0 15px;
    }

    .page-faq__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }

    .page-faq__description {
        font-size: 1em;
    }

    .page-faq__section-title {
        font-size: 2em;
    }

    .page-faq__faq-question {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    /* 1. Top section padding/spacing */
    .page-faq__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px;
    }

    .page-faq__main-title {
        font-size: clamp(1.6em, 6vw, 2.5em);
        margin-bottom: 10px;
    }

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

    /* 4. Buttons and button containers */
    .page-faq__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    /* 2. Single column long text container */
    .page-faq__content-area {
        padding-top: 40px;
        padding-bottom: 50px;
        margin: 20px auto;
        border-radius: 8px;
    }

    .page-faq__article-wrap {
        padding: 0 15px !important; /* Adjust padding for mobile */
        max-width: 100% !important; /* Ensure content fits */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__section-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    /* 3. Universal images and figure */
    .page-faq img {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
        display: block;
        box-sizing: border-box !important;
    }

    .page-faq__image-block {
        margin: 30px auto;
    }

    /* 5. FAQ section (part of single column long text) */
    .page-faq__faq-question {
        padding: 15px 20px;
        font-size: 1.05em;
    }

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

    /* CTA section at bottom (also part of single column long text) */
    .page-faq__cta-section {
        padding: 40px 15px;
        margin-top: 40px;
        border-radius: 8px;
    }

    .page-faq__cta-section .page-faq__section-title {
        font-size: 1.8em;
    }

    .page-faq__cta-section .page-faq__description {
        margin-bottom: 30px;
    }
}