/* style/resources-faq.css */

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

/* Hero Section */
.page-resources-faq__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.page-resources-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-resources-faq__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

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

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

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

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

/* General Content Area */
.page-resources-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #0a0a0a; /* Ensure consistency with body background */
    color: #ffffff; /* Light text for dark background */
    box-sizing: border-box;
}

.page-resources-faq__container {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources-faq__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    position: relative;
}

.page-resources-faq__section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

.page-resources-faq__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

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

.page-resources-faq__faq-list-title {
    font-size: 2em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
}

.page-resources-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-faq__faq-item[open] {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #26A9E0;
}

.page-resources-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: transparent;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-resources-faq__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

.page-resources-faq__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

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

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

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

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

/* Image styling within content */
.page-resources-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);
    min-width: 200px;
    min-height: 200px;
    filter: none; /* Ensure no filter is applied */
}

/* Buttons */
.page-resources-faq__btn-primary,
.page-resources-faq__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-resources-faq__btn-primary:hover {
    background-color: #1a8ccb;
    border-color: #1a8ccb;
}

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

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

.page-resources-faq__button-group {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Call to Action Section */
.page-resources-faq__cta-section {
    position: relative;
    margin-top: 60px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-resources-faq__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    min-width: 200px;
    min-height: 200px;
    filter: none; /* Ensure no filter is applied */
}

.page-resources-faq__cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 2;
}

.page-resources-faq__cta-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding: 30px;
    color: #ffffff;
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-faq__hero-title {
        font-size: 3em;
    }
    .page-resources-faq__hero-description {
        font-size: 1.1em;
    }
    .page-resources-faq__section-title {
        font-size: 2.2em;
    }
    .page-resources-faq__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }
    .page-resources-faq__faq-answer {
        font-size: 1em;
        padding: 0 20px 18px;
    }
    .page-resources-faq__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-resources-faq__hero-section {
        height: 500px;
    }
    .page-resources-faq__hero-title {
        font-size: 2.2em;
    }
    .page-resources-faq__hero-description {
        font-size: 1em;
    }
    .page-resources-faq__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-faq__btn-primary,
    .page-resources-faq__btn-secondary {
        width: 100%;
        max-width: 300px; /* Constrain width for better look */
        margin: 0 auto;
    }

    .page-resources-faq__content-area {
        padding: 40px 15px;
    }
    .page-resources-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources-faq__text-block {
        font-size: 1em;
    }
    .page-resources-faq__faq-list-title {
        font-size: 1.6em;
    }
    .page-resources-faq__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-resources-faq__faq-answer {
        font-size: 0.95em;
        padding: 0 15px 15px;
    }

    /* Mobile image and video responsiveness */
    .page-resources-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources-faq video,
    .page-resources-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources-faq__section,
    .page-resources-faq__card,
    .page-resources-faq__container,
    .page-resources-faq__video-section,
    .page-resources-faq__video-container,
    .page-resources-faq__video-wrapper,
    .page-resources-faq__cta-buttons,
    .page-resources-faq__button-group,
    .page-resources-faq__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    .page-resources-faq__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Buttons */
    .page-resources-faq__cta-button,
    .page-resources-faq__btn-primary,
    .page-resources-faq__btn-secondary,
    .page-resources-faq a[class*="button"],
    .page-resources-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-resources-faq__cta-buttons {
      flex-direction: column; /* Stack buttons vertically on mobile */
      gap: 10px;
    }

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

@media (max-width: 480px) {
    .page-resources-faq__hero-section {
        height: 400px;
    }
    .page-resources-faq__hero-title {
        font-size: 1.8em;
    }
    .page-resources-faq__hero-description {
        font-size: 0.9em;
    }
    .page-resources-faq__hero-buttons {
        gap: 10px;
    }
    .page-resources-faq__btn-primary,
    .page-resources-faq__btn-secondary {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-resources-faq__section-title {
        font-size: 1.6em;
    }
    .page-resources-faq__faq-question {
        font-size: 0.95em;
        padding: 12px;
    }
    .page-resources-faq__faq-answer {
        font-size: 0.9em;
        padding: 0 12px 12px;
    }
    .page-resources-faq__cta-title {
        font-size: 1.6em;
    }
    .page-resources-faq__cta-description {
        font-size: 0.9em;
    }
}

/* Ensure images meet minimum size requirements */
.page-resources-faq__hero-image,
.page-resources-faq__cta-image {
    min-width: 200px;
    min-height: 200px;
}