/* style/faq.css */
/* Body padding-top is handled by shared.css */

.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--text-main, #F3F8FF); /* Default text color for the page, dark background -> light text */
    background-color: var(--deep-navy, #08162B); /* Ensure consistency if body background isn't applied */
    line-height: 1.6;
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    background-color: var(--deep-navy, #08162B);
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image container */
    margin-bottom: 40px; /* Space between image and text */
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-faq__hero-content {
    max-width: 800px;
    z-index: 1;
    color: var(--text-main, #F3F8FF);
}

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main, #F3F8FF);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-faq__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-secondary, #AFC4E8);
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-button:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-2px);
}

.page-faq__cta-button--large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* Intro and general sections */
.page-faq__intro-section,
.page-faq__faq-section,
.page-faq__conclusion-section {
    padding: 40px 0;
    background-color: var(--deep-navy, #08162B);
    color: var(--text-main, #F3F8FF);
}

.page-faq__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--gold, #F2C14E);
}

.page-faq__text-block {
    margin-bottom: 20px;
    color: var(--text-secondary, #AFC4E8);
    font-size: 1rem;
}

/* FAQ List */
.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__faq-item {
    background-color: var(--card-bg, #10233F);
    border: 1px solid var(--border-color, #244D84);
    border-radius: 8px;
    overflow: hidden;
    color: var(--text-main, #F3F8FF);
}

.page-faq__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main, #F3F8FF);
    transition: background-color 0.3s ease;
}

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

.page-faq__faq-item summary:hover {
    background-color: rgba(43, 115, 246, 0.1); /* Lighter hover for dark background */
}

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

.page-faq__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold, #F2C14E);
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    content: "−"; /* Update content for open state via JS */
}

.page-faq__faq-answer {
    padding: 0 20px 20px 20px;
    color: var(--text-secondary, #AFC4E8);
    font-size: 1rem;
}

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

.page-faq__btn-small {
    display: inline-block;
    padding: 8px 15px;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-faq__btn-small:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
}

/* Additional image for content */
.page-faq__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 30px auto;
    max-width: 800px;
    object-fit: cover;
}

/* Conclusion Section specific */
.page-faq__conclusion-section .page-faq__cta-button {
    margin-top: 30px;
}

/* Ensure content area images are at least 200px on desktop too */
.page-faq__content-area img,
.page-faq__intro-section img,
.page-faq__faq-section img,
.page-faq__conclusion-section img {
    min-width: 200px;
    min-height: 200px;
}

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

    .page-faq__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, this is for decorative top padding */
    }

    .page-faq__hero-content {
        max-width: 100%;
    }

    .page-faq__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

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

    .page-faq__cta-button,
    .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;
    }

    .page-faq__cta-button--large {
        padding: 15px 25px;
        font-size: 1.1rem;
    }

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

    .page-faq__faq-item summary {
        font-size: 1rem;
        padding: 15px;
    }

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

    .page-faq__btn-small {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 10px;
        padding-right: 10px;
    }

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

    .page-faq__hero-image-wrapper,
    .page-faq__intro-section,
    .page-faq__faq-section,
    .page-faq__conclusion-section,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
}