/* style/faq.css */

/* --- Base Styles --- */
.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 handled by shared.css */
}

.page-faq__section-title,
.page-faq__category-title {
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: bold;
}

.page-faq__section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1em;
    color: #f0f0f0;
}

/* --- Hero Section --- */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-faq__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

.page-faq__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-faq__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #26A9E0;
    line-height: 1.2;
    font-weight: bold;
}

.page-faq__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-faq__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- Buttons --- */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__cta-button {
    display: inline-block;
    padding: 15px 30px;
    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;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

.page-faq__btn-primary:hover,
.page-faq__cta-button:hover {
    background-color: #1e87b7;
    border-color: #1e87b7;
}

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

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

/* --- Content Area --- */
.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #0a0a0a; /* Ensure content area has a background for text contrast */
    color: #ffffff; /* Light text on dark background */
}

.page-faq__faq-category {
    margin-bottom: 50px;
}

.page-faq__category-title {
    font-size: 2em;
    color: #26A9E0;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(38, 169, 224, 0.3);
    padding-bottom: 10px;
    text-align: left;
}

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

.page-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for items */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg);
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 15px 20px;
}

.page-faq__faq-answer p {
    margin-bottom: 10px;
    font-size: 1em;
}

/* --- CTA Video Section --- */
.page-faq__cta-video-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    background-color: #000000; /* Darker background for contrast with video */
    color: #ffffff;
}

.page-faq__cta-video-content {
    max-width: 1000px;
    margin: 0 auto;
}

.page-faq__cta-video-title {
    font-size: 2.8em;
    color: #26A9E0;
    margin-bottom: 20px;
}

.page-faq__cta-video-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-faq__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px; /* Max width for the video player */
    margin: 0 auto 40px;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9 / 16 * 100%) */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    cursor: pointer; /* Indicate it's clickable */
}

.page-faq__video-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Above the video */
}

.page-faq__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    z-index: 5;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-faq__hero-title {
        font-size: 3em;
    }
    .page-faq__hero-description {
        font-size: 1.1em;
    }
    .page-faq__section-title,
    .page-faq__category-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header spacing */
    }
    .page-faq__hero-title {
        font-size: 2.2em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-faq__content-area,
    .page-faq__cta-video-section {
        padding: 40px 15px;
    }
    .page-faq__section-title,
    .page-faq__category-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-faq__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-faq__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-faq__faq-answer {
        padding: 0 15px;
    }
    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px;
    }
    .page-faq__cta-video-title {
        font-size: 2em;
    }
    .page-faq__cta-video-description {
        font-size: 1.1em;
    }

    /* Mobile image/video/container responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-faq video,
    .page-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-faq__hero-section,
    .page-faq__content-area,
    .page-faq__faq-category,
    .page-faq__faq-list,
    .page-faq__faq-item,
    .page-faq__cta-video-section,
    .page-faq__cta-video-content,
    .page-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-faq__video-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-title {
        font-size: 1.8em;
    }
    .page-faq__hero-description {
        font-size: 0.9em;
    }
    .page-faq__section-title,
    .page-faq__category-title {
        font-size: 1.5em;
    }
    .page-faq__faq-question {
        font-size: 1em;
    }
    .page-faq__cta-video-title {
        font-size: 1.8em;
    }
    .page-faq__cta-video-description {
        font-size: 1em;
    }
}