/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light background */
    background-color: #f8f8f8; /* Light background for the page */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background-color: #26A9E0; /* Brand primary color */
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.2;
    filter: none; /* No color filters */
}

.page-faq__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

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

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

/* CTA Buttons in Hero */
.page-faq__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box; /* Important for responsive buttons */
}

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

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

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

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

/* General Section Styling */
.page-faq__section {
    padding: 60px 20px;
    background-color: #ffffff;
    margin-bottom: 20px;
}

.page-faq__intro-section {
    background-color: #f8f8f8;
}

.page-faq__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px; /* Add some padding for content */
    box-sizing: border-box;
}

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

.page-faq__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
}

/* FAQ List Styling */
.page-faq__faq-list {
    background-color: #ffffff;
    padding-bottom: 80px;
}

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

.page-faq__faq-group-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    text-align: left;
}

.page-faq__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

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

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

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

/* Styles for expanded state (for JS fallback if not using <details>) */
.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 2000px; /* Large enough to show content */
    padding-top: 15px;
    padding-bottom: 15px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar visual */
}

.page-faq__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #555555;
    background-color: #f9f9f9;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

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

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

.page-faq__faq-answer a:hover {
    color: #1a7fb8;
}

/* Image within FAQ answer */
.page-faq__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    filter: none; /* No color filters */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

/* CTA Section at the bottom */
.page-faq__cta-section {
    text-align: center;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    padding: 60px 20px;
    border-radius: 10px;
    margin-top: 40px;
}

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

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

/* Responsive Styles */
@media (max-width: 992px) {
    .page-faq__hero-title {
        font-size: 2.2em;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__faq-group-title {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-faq__hero-title {
        font-size: 1.8em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important; /* Ensure buttons are full width */
        max-width: 100% !important;
        padding: 12px 15px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__section {
        padding: 40px 15px;
    }
    .page-faq__container {
        padding: 0; /* Remove horizontal padding in container to allow section padding to control width */
    }

    .page-faq__section-title {
        font-size: 1.6em;
        margin-bottom: 30px;
    }
    .page-faq__faq-group-title {
        font-size: 1.3em;
    }
    .page-faq__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-faq__faq-answer {
        padding: 0 15px 15px;
    }

    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-faq__section,
    .page-faq__card,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Video responsiveness - no videos on this page, but included for completeness as per instructions */
    .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;
    }
    .page-faq__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Button responsiveness */
    .page-faq__cta-button,
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-faq a[class*="btn"] {
      max-width: 100% !important;
      width: 100% !important;
      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-buttons {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-section {
        padding: 40px 10px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-faq__hero-title {
        font-size: 1.5em;
    }
    .page-faq__section-title {
        font-size: 1.4em;
    }
    .page-faq__faq-group-title {
        font-size: 1.2em;
    }
    .page-faq__faq-question {
        font-size: 0.95em;
        padding: 12px;
    }
    .page-faq__faq-answer {
        font-size: 0.9em;
        padding: 0 12px 12px;
    }
}

/* Ensure link colors are accessible */
.page-faq a {
    color: #26A9E0; /* Brand primary color for links */
}
.page-faq a:hover {
    color: #1a7fb8;
}

/* Specific styling for details/summary to ensure expand/collapse works */
.page-faq__faq-item[open] .page-faq__faq-answer {
    max-height: 2000px; /* Sufficiently large to show content */
    padding-top: 15px;
    padding-bottom: 15px;
}
.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg);
}