/* style/faq.css */

/* Global styles for page-faq scope */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is #0a0a0a from shared.css */
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for aesthetic */
    overflow: hidden;
    margin-bottom: 30px; /* 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: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    color: #26A9E0; /* Brand color for title */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-faq__intro-text {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #f0f0f0; /* Light text for readability */
    margin-bottom: 30px;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

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

.page-faq__btn-primary:hover {
    background-color: #1e87c0; /* Slightly darker on hover */
    border-color: #1e87c0;
}

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

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

.page-faq__btn-small {
    padding: 10px 20px;
    font-size: 1rem;
}

.page-faq__btn-large {
    padding: 18px 35px;
    font-size: 1.2rem;
}

/* Content Area */
.page-faq__content-area {
    padding: 60px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background for content section */
}

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

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

.page-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
    border-radius: 8px;
    overflow: hidden;
    color: #ffffff; /* Light text on dark card */
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly darker for question header */
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for details/summary */
}

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

.page-faq__faq-item[open] .page-faq__faq-question {
    background-color: rgba(255, 255, 255, 0.12); /* Highlight open question */
}

.page-faq__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-faq__faq-qtext {
    flex-grow: 1;
    color: #f0f0f0;
}

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

.page-faq__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #cccccc; /* Slightly subdued light text for answer content */
}

/* For <details> native behavior, max-height and overflow hidden are not needed for initial state */
.page-faq__faq-item[open] .page-faq__faq-answer {
    padding-top: 15px; /* Add top padding when open */
}

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

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
    margin-bottom: 15px;
    padding-left: 25px;
}

.page-faq__faq-answer li {
    margin-bottom: 8px;
}

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

.page-faq__faq-answer .page-faq__inline-link:hover {
    color: #3bb3f0;
}

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

/* Call to Action Section at the bottom */
.page-faq__cta-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #26A9E0; /* Brand color as background */
    color: #ffffff; /* White text on brand color background */
}

.page-faq__cta-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-faq__cta-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Keyword highlighting */
.keyword {
    color: #FFEE58; /* A bright yellow for highlighting keywords */
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-faq__container,
    .page-faq__hero-content,
    .page-faq__cta-section {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-faq__hero-section {
        padding-top: 10px !important; /* Small top padding, not var(--header-offset) */
        padding-bottom: 40px;
    }

    .page-faq__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
    }

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

    .page-faq__intro-text {
        font-size: 1rem;
    }

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

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 1rem;
        padding: 12px 20px;
    }

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

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

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

    .page-faq__faq-item[open] .page-faq__faq-answer {
        padding-top: 10px;
    }

    .page-faq__faq-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
    }

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

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

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

    /* Ensure all images within .page-faq are responsive */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .page-faq__hero-image-wrapper,
    .page-faq__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Placeholder for video container if any */
    .page-faq__video-section,
    .page-faq__video-container,
    .page-faq__video-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        padding-left: 15px; /* Add padding to prevent content from touching edges */
        padding-right: 15px;
    }
    .page-faq video,
    .page-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}