/* style/faq.css */

/* --- Base Styles & Typography --- */
.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Default page background */
}

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

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* H1 with clamp for responsiveness */
    font-weight: 700;
    line-height: 1.2;
    color: #26A9E0; /* Brand color for H1 */
    margin-bottom: 20px;
    max-width: 100%;
    text-align: center;
}

.page-faq__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 600;
    color: #26A9E0;
    margin-bottom: 30px;
    text-align: center;
    padding-top: 40px;
}

.page-faq__section-description {
    font-size: 1.1rem;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__description {
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero Section --- */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #FFFFFF; /* Ensure light background for readability */
    color: #333333;
}

.page-faq__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px; /* Space between image and content */
}

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

.page-faq__hero-content {
    background-color: #ffffff; /* Explicitly white background for content */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
    text-align: center;
    margin-bottom: 60px;
}

/* --- CTA Buttons --- */
.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    text-align: center;
    max-width: 100%; /* Ensure buttons adapt to container */
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-faq__btn-primary:hover {
    background-color: #1a8cc7;
    border-color: #1a8cc7;
}

.page-faq__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-faq__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a8cc7;
    border-color: #1a8cc7;
}

/* --- FAQ Section --- */
.page-faq__faq-section {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light gray background for FAQ section */
    color: #333333;
}

.page-faq__faq-list {
    margin-top: 40px;
}

.page-faq__faq-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #26A9E0;
    margin-top: 50px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.page-faq__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-faq__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333333;
    list-style: none; /* Hide default marker */
    background-color: #f0f8ff; /* Lighter background for question */
    border-bottom: 1px solid #e0e0e0;
}

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

.page-faq__faq-question {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-faq__faq-qtext {
    flex-grow: 1;
    margin-right: 10px;
    color: #333333; /* Ensure question text is dark */
}

.page-faq__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #26A9E0;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: #555555;
    background-color: #FFFFFF; /* White background for answer */
    border-top: 1px solid #f0f0f0;
}

.page-faq__faq-answer p {
    margin-bottom: 10px;
    color: #555555; /* Ensure answer text is dark */
}

.page-faq__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-faq__faq-answer a:hover {
    color: #1a8cc7;
}

.page-faq__cta-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px dashed #e0e0e0;
}

.page-faq__cta-bottom p {
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .page-faq__hero-content {
        margin: 0 20px 40px;
    }
}

@media (max-width: 768px) {
    .page-faq__container {
        padding: 0 15px;
    }

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

    .page-faq__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .page-faq__hero-section {
        padding-top: 10px !important; /* body handles header offset, small top padding for section */
    }

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

    /* All containers that might hold images/videos/buttons */
    .page-faq__hero-section,
    .page-faq__hero-image-wrapper,
    .page-faq__hero-content,
    .page-faq__faq-section,
    .page-faq__faq-list,
    .page-faq__faq-item,
    .page-faq__cta-buttons,
    .page-faq__cta-bottom,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Buttons responsiveness */
    .page-faq__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }

    .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 !important;
        padding-right: 15px !important;
    }

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

    .page-faq__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    .page-faq__section-title {
        font-size: clamp(1.4rem, 7vw, 1.8rem);
    }
    .page-faq__description,
    .page-faq__section-description,
    .page-faq__faq-answer p {
        font-size: 0.95rem;
    }
    .page-faq__faq-item summary {
        font-size: 0.95rem;
    }
}

/* Color contrast enforcement (as per instructions) */
/* The main page content will assume a light background from shared.css */
.page-faq {
    color: #333333; /* Default text for light body background */
    background-color: #ffffff;
}

/* Hero section has its own background, ensuring text is readable */
.page-faq__hero-section {
    background-color: #FFFFFF;
}

.page-faq__hero-content {
    background: #ffffff;
    color: #333333;
}

/* FAQ section has a light grey background */
.page-faq__faq-section {
    background: #f8f8f8;
    color: #333333;
}

/* FAQ item questions have a light blue background */
.page-faq__faq-item summary {
    background-color: #f0f8ff; /* Light blue */
    color: #333333; /* Dark text */
}

/* FAQ item answers have white background */
.page-faq__faq-answer {
    background-color: #ffffff;
    color: #555555; /* Slightly lighter dark text */
}

/* Primary button - Brand color background, white text */
.page-faq__btn-primary {
    background: #26A9E0;
    color: #ffffff;
}

/* Secondary button - White background, brand color text */
.page-faq__btn-secondary {
    background: #ffffff;
    color: #26A9E0;
    border-color: #26A9E0;
}

/* Ensure link colors in FAQ answers maintain contrast */
.page-faq__faq-answer a {
    color: #26A9E0;
}