/* style/faq.css */

/* Base Styles for page-faq */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Explicitly white background */
}

.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%;
    height: 600px; /* Adjusted for visual impact */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.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.6); /* Dark overlay for text readability */
    z-index: 2;
}

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

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

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

.page-faq__hero-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Section Titles & Descriptions */
.page-faq__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-faq__section-title--white {
    color: #FFFFFF;
}

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

.page-faq__section-description--white {
    color: #f0f0f0;
}

/* Intro Section */
.page-faq__intro-section {
    padding: 60px 0;
}

/* FAQ List Section */
.page-faq__faq-list-section {
    padding: 60px 0;
}

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

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

.page-faq__category-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 25px;
    border-bottom: 2px solid #26A9E0;
    padding-bottom: 10px;
    text-align: left;
}

.page-faq__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

.page-faq__faq-question:hover {
    background-color: #f0f0f0;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #555555;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px;
}

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

.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.page-faq__cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 50px;
    margin-top: 60px;
    text-align: center;
}

.page-faq__cta-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
}

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

.page-faq__cta-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
    max-width: 700px;
}

/* Video Section */
.page-faq__video-section {
    position: relative;
    padding: 80px 0;
    background-color: #26A9E0; /* Brand primary color background */
    color: #FFFFFF;
    text-align: center;
}

.page-faq__video-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 40px auto 0 auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer; /* Indicate clickable area */
}

.page-faq__video {
    width: 100%;
    height: auto;
    display: block;
}

.page-faq__video-overlay-click {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.page-faq__video-wrapper:hover .page-faq__video-overlay-click {
    opacity: 1;
}

.page-faq__video-overlay-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    background-color: #EA7C07; /* Login color for CTA */
    color: #FFFFFF;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-faq__video-overlay-button:hover {
    background-color: #d16b05;
    transform: translateY(-3px);
}


/* Button Styles */
.page-faq__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
    background-color: #1e87b7;
    transform: translateY(-3px);
}

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

.page-faq__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

/* Image Specific Styles */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensures proper display for responsive images */
}

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

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

    .page-faq__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }

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

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

    .page-faq__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-faq__section-title {
        font-size: 1.8em;
        padding-top: 30px;
    }

    .page-faq__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-faq__intro-section,
    .page-faq__faq-list-section,
    .page-faq__video-section {
        padding: 40px 0;
    }

    .page-faq__faq-list-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-faq__category-title {
        font-size: 1.4em;
        padding-left: 15px; /* Adjust for mobile padding */
        padding-right: 15px;
    }

    .page-faq__faq-item {
        margin-left: 15px;
        margin-right: 15px;
    }

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

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

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

    .page-faq__cta-section {
        padding: 30px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-faq__cta-title {
        font-size: 1.6em;
    }

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

    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-faq__container,
    .page-faq__hero-content,
    .page-faq__cta-section,
    .page-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Mobile video responsiveness */
    .page-faq video,
    .page-faq__video {
      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;
    }

    /* Mobile button responsiveness */
    .page-faq__hero-button,
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-faq a[class*="btn"],
    .page-faq__video-overlay-button {
      max-width: 100% !important;
      width: 100% !important; /* Ensure buttons take full width */
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    
    .page-faq__cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }

    .page-faq__cta-section .page-faq__btn-primary {
      max-width: 300px !important; /* Example: limit CTA button width on mobile if desired, but ensure it doesn't cause overflow */
      margin: 0 auto; /* Center it */
    }
}

/* Color Contrast Safeguards */
.page-faq__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF; /* White text for contrast */
}

.page-faq__light-bg {
    background-color: #FFFFFF;
    color: #333333; /* Dark text for contrast */
}

/* Ensure text in card/item is dark on light background */
.page-faq__faq-item {
    color: #333333;
}
.page-faq__faq-question {
    color: #333333;
}
.page-faq__faq-answer {
    color: #555555;
}

/* Specific color for login button if needed, based on custom colors */
.page-faq__video-overlay-button {
    background-color: #EA7C07; /* Login color */
    color: #FFFFFF;
}
.page-faq__video-overlay-button:hover {
    background-color: #d16b05;
}