/* style/faq.css */

/* Base styles for FAQ page */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background from shared.css */
}

/* Hero Section */
.page-faq__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #26A9E0, #0a0a0a); /* Brand color gradient */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    position: relative;
    overflow: hidden;
}

.page-faq__hero-content {
    max-width: 900px;
    z-index: 1;
}

.page-faq__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

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

.page-faq__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-link {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons are responsive */
}

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

.page-faq__btn-primary:hover {
    background-color: #1e87c2;
    border-color: #1e87c2;
    transform: translateY(-2px);
}

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

.page-faq__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
    transform: translateY(-2px);
}

.page-faq__btn-link {
    background-color: transparent;
    color: #26A9E0;
    border: 1px solid #26A9E0;
    padding: 8px 15px;
    font-size: 0.9em;
    margin-top: 15px;
    border-radius: 5px;
}

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

.page-faq__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.2;
    z-index: 0;
}

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

/* Content Area */
.page-faq__content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    color: #ffffff;
}

.page-faq__dark-section {
    background-color: #0d0d0d; /* Slightly lighter than body for contrast */
    padding: 60px 20px;
}

.page-faq__section-title,
.page-faq__video-title,
.page-faq__cta-title {
    font-size: 2.2em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-faq__section-description,
.page-faq__video-description,
.page-faq__cta-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ List */
.page-faq__faq-list {
    margin-top: 40px;
}

.page-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

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

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(38, 169, 224, 0.2); /* Light brand color tint */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__faq-question:hover {
    background-color: rgba(38, 169, 224, 0.3);
}

.page-faq__faq-item[open] .page-faq__faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-faq__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

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

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1.05em;
    color: #f0f0f0;
}

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

/* Images within content */
.page-faq__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Call to Action Section */
.page-faq__cta-section {
    background: linear-gradient(to right, #26A9E0, #1e87c2);
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-faq__cta-content {
    max-width: 900px;
    z-index: 1;
}

.page-faq__cta-title {
    color: #ffffff;
    font-size: 2.5em;
    margin-bottom: 20px;
}

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

.page-faq__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-faq__cta-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.1;
    z-index: 0;
}

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

/* Video Section */
.page-faq__video-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #0a0a0a; /* Match body background */
    color: #ffffff;
}

.page-faq__video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-faq__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    cursor: pointer; /* Indicate clickable for JS jump */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 2.2em;
    }
    .page-faq__intro-description {
        font-size: 1.1em;
    }
    .page-faq__section-title,
    .page-faq__video-title,
    .page-faq__cta-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        flex-direction: column;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-faq__hero-content {
        order: 2;
    }

    .page-faq__hero-image-wrapper {
        order: 1;
        position: relative;
        height: 200px;
        width: 100%;
        margin-bottom: 30px;
        opacity: 0.3;
    }

    .page-faq__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }

    .page-faq__main-title {
        font-size: 1.8em;
    }

    .page-faq__intro-description {
        font-size: 1em;
    }
}