/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 60px 0; /* Adjusted padding */
    background-color: #f0f8ff; /* Light background for hero section */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure it takes full width */
    overflow: hidden;
    box-sizing: border-box;
    display: block;
    margin-bottom: 20px; /* Space between image and content */
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

.page-faq__hero-content {
    max-width: 800px;
    text-align: center;
    padding: 0 20px;
}

.page-faq__main-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem); /* Responsive font size for H1 */
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-faq__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555555;
}

.page-faq__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

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

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

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

.page-faq__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Content Area */
.page-faq__content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff; /* Explicitly white background for content */
}

.page-faq__section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-faq__faq-category-title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: #000000;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    font-weight: bold;
}

.page-faq__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.page-faq__faq-item[open] {
    background-color: #e6f7ff; /* Lighter background when open */
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #333333;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-question {
    background-color: #26A9E0;
    color: #ffffff;
    border-bottom-color: #26A9E0;
}

.page-faq__faq-question:hover {
    background-color: #f0f0f0;
}
.page-faq__faq-item[open] .page-faq__faq-question:hover {
    background-color: #1e87c2;
}

.page-faq__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 10px;
    color: #26A9E0; /* Default color */
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    color: #ffffff; /* White when open */
}

.page-faq__faq-answer {
    padding: 20px;
    background-color: #f9f9f9;
    font-size: 1rem;
    color: #555555;
    line-height: 1.7;
}

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

.page-faq__image-inline {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 15px;
    border-radius: 8px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
    object-fit: cover;
}

/* CTA Section */
.page-faq__cta-section {
    background-color: #26A9E0; /* Main brand color for dark background */
    color: #ffffff; /* White text for dark background */
    text-align: center;
    padding: 60px 20px;
    margin-top: 50px;
}

.page-faq__cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-faq__cta-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

/* Special button styling for CTA section to ensure contrast */
.page-faq__cta-section .page-faq__btn-primary {
    background-color: #ffffff;
    color: #26A9E0;
    border-color: #ffffff;
}
.page-faq__cta-section .page-faq__btn-primary:hover {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
    color: #26A9E0;
}

.page-faq__cta-section .page-faq__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}
.page-faq__cta-section .page-faq__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
    border-color: #ffffff;
}


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

    .page-faq__hero-section {
        padding: 10px 0 40px 0; /* Smaller top padding for mobile */
    }

    .page-faq__hero-content {
        padding: 0 15px;
    }

    .page-faq__main-title {
        font-size: 2rem;
    }

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

    .page-faq__hero-cta {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__content-area {
        padding: 30px 15px;
    }

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

    .page-faq__faq-category-title {
        font-size: 1.5rem;
    }

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

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

    .page-faq__image-inline {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-faq__cta-section {
        padding: 40px 15px;
        margin-top: 30px;
    }

    .page-faq__cta-title {
        font-size: 2rem;
    }

    .page-faq__cta-description {
        font-size: 1rem;
    }

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__hero-section,
    .page-faq__content-area,
    .page-faq__cta-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
}

/* Ensure images and containers are fully responsive and don't overflow */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-faq__video-section,
.page-faq__video-container,
.page-faq__video-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-faq__video-section,
    .page-faq__video-container,
    .page-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-faq__video-section {
        padding-top: 10px !important;
    }

    .page-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Contrast Fixes */
.page-faq__dark-bg {
    background: #26A9E0; /* Main brand color */
    color: #ffffff; /* White text for contrast */
}

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

.page-faq__medium-bg {
    background: #f0f8ff; /* Example medium background */
    color: #000000;
}