/* style/faq.css */
.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Default body background */
}

/* Header offset for main content */
.page-faq__hero-section {
    padding-top: var(--header-offset, 120px);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #26A9E0, #4CAF50); /* Brand colors with a subtle gradient */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    text-align: center;
    padding: 60px 20px;
}

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

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

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

.page-faq__hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

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

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

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

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

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

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

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.page-faq__accordion-section {
    padding: 60px 20px;
    background-color: #f8f9fa; /* Light background for accordion */
}

.page-faq__container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

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

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

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f0f8ff; /* Light blue background for questions */
    color: #333333;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    user-select: none;
}

.page-faq__faq-item[open] .page-faq__faq-question {
    background-color: #e6f7ff;
    color: #26A9E0;
}

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

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

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    width: 25px;
    text-align: center;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    color: #EA7C07;
}

.page-faq__faq-answer {
    padding: 20px 25px;
    background-color: #ffffff;
    color: #555555;
    font-size: 1em;
    border-top: 1px solid #e0e0e0;
}

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

.page-faq__faq-answer ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 10px;
}

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

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

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

.page-faq__cta-section {
    background-color: #26A9E0; /* Main brand color for CTA */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-faq__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    z-index: 1;
    position: relative;
}

.page-faq__cta-description {
    font-size: 1.15em;
    margin-bottom: 40px;
    color: #f0f8ff;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    z-index: 1;
    position: relative;
}

.page-faq__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    z-index: 1;
    position: relative;
}

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

.page-faq__cta-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.page-faq__btn-small {
    padding: 8px 18px;
    font-size: 0.9em;
    border-radius: 5px;
    margin-top: 10px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__hero-title {
        font-size: 2.8em;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__cta-title {
        font-size: 2.4em;
    }
}

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

    .page-faq__hero-title {
        font-size: 2.2em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__accordion-section,
    .page-faq__cta-section {
        padding: 40px 15px;
    }

    .page-faq__container {
        padding: 20px;
        box-shadow: none;
    }

    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__section-description {
        font-size: 0.95em;
    }

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

    .page-faq__cta-title {
        font-size: 2em;
    }
    .page-faq__cta-description {
        font-size: 1em;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Mobile image responsive overrides */
    .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,
    .page-faq__hero-section,
    .page-faq__cta-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px !important;
      padding-right: 15px !important;
    }
    
    .page-faq__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    
    /* Video overrides for mobile */
    .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 !important;
      padding-right: 15px !important;
      overflow: hidden !important;
    }

    /* Ensure content area images are not tiny */
    .page-faq__content-area img,
    .page-faq__faq-answer img {
        min-width: 200px;
        min-height: 200px;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-title {
        font-size: 1.8em;
    }
    .page-faq__section-title {
        font-size: 1.5em;
    }
    .page-faq__cta-title {
        font-size: 1.8em;
    }
}

/* Ensure no filter on images */
.page-faq img {
    filter: none;
}
.page-faq__hero-image {
    filter: brightness(0.7);
}
.page-faq__cta-image {
    filter: brightness(0.8);
}