/* style/faq.css */
.page-faq {
    color: #ffffff; /* Text color for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css (#0a0a0a) */
}

.page-faq__hero-section {
    position: relative;
    width: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
    padding-bottom: 40px;
    box-sizing: border-box;
}

.page-faq__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-faq__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-faq__hero-title {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-faq__video-section {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter than body background */
    padding: 60px 20px;
    text-align: center;
    box-sizing: border-box;
}

.page-faq__video-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.page-faq__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-top: 30px;
}

.page-faq__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    cursor: pointer;
}

.page-faq__faq-section {
    padding: 60px 20px;
    background-color: #0a0a0a;
    box-sizing: border-box;
}

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

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

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

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

.page-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for items */
    border-radius: 8px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

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

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__faq-question h3 {
    font-size: 1.2em;
    color: #26A9E0;
    margin: 0;
    flex-grow: 1;
    padding-right: 15px;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    color: #ffffff;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-question {
    border-bottom-color: transparent;
}

.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: 20px;
}

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

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

.page-faq__faq-answer a:hover {
    text-decoration: underline;
}

.page-faq__faq-image {
    display: block;
    margin-top: 20px;
    border-radius: 8px;
    object-fit: cover;
    width: 100%; /* Ensure images within answers are responsive */
    height: auto;
}

.page-faq__cta-section {
    background-color: #26A9E0; /* Brand primary color for CTA */
    padding: 60px 20px;
    text-align: center;
    box-sizing: border-box;
}

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

.page-faq__cta-description {
    font-size: 1.1em;
    color: #f0f0f0;
    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;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-faq__btn-primary {
    background-color: #EA7C07; /* Login/Action color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

.page-faq__btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

/* General image responsiveness */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

    .page-faq__hero-section {
        min-height: 300px;
        padding-bottom: 20px;
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: 1.8em;
    }

    .page-faq__section-description,
    .page-faq__cta-description {
        font-size: 1em;
    }

    .page-faq__container {
        padding: 0 10px;
    }

    .page-faq__faq-question {
        padding: 15px;
    }

    .page-faq__faq-question h3 {
        font-size: 1.1em;
    }

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

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

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

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Ensure content images are responsive and don't overflow */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Ensure video and its container are responsive and don't overflow */
    .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: 10px;
        padding-right: 10px;
        overflow: hidden !important;
    }
    .page-faq__video-wrapper {
      padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    }
    .page-faq__video {
      max-width: 100% !important;
      width: 100% !important;
      height: 100% !important; /* Fill parent wrapper */
    }
}