/* style/resources-faq.css */

/* Base styles for the page */
.page-resources-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Matches body background from shared.css */
}

.page-resources-faq__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-resources-faq__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    color: #333333;
    background-color: #FFFFFF; /* Light background */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-resources-faq__main-title {
    font-size: 2.8em;
    color: #26A9E0; /* Brand color for title */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-resources-faq__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources-faq__btn-primary,
.page-resources-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, border-color 0.3s ease;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.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: #1a8cc2; /* Slightly darker */
    border-color: #1a8cc2;
}

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

.page-resources-faq__btn-secondary:hover {
    background-color: #f0f8ff; /* Light hover effect */
    color: #1a8cc2;
    border-color: #1a8cc2;
}

.page-resources-faq__hero-image {
    width: 100%;
    height: auto;
    max-width: 1000px; /* Example max width */
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure no extra space below image */
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

.page-resources-faq__content-area {
    padding: 60px 0;
    background-color: #FFFFFF;
    color: #333333;
}

.page-resources-faq__section-title {
    font-size: 2em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-resources-faq__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #EA7C07; /* Login color for emphasis */
    margin: 10px auto 0;
}

.page-resources-faq__text-block {
    margin-bottom: 20px;
    font-size: 1.05em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-resources-faq__faq-list {
    max-width: 900px;
    margin: 40px auto;
}

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

.page-resources-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #26A9E0;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    border-bottom: 1px solid #1a8cc2;
    transition: background-color 0.3s ease;
}

.page-resources-faq__faq-question h3 {
    margin: 0;
    font-size: 1.15em;
    color: #FFFFFF;
    line-height: 1.4;
}

.page-resources-faq__faq-question:hover {
    background-color: #1a8cc2;
}

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

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

.page-resources-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #FFFFFF;
    color: #333333;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-resources-faq__faq-item.active .page-resources-faq__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 25px;
}

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

.page-resources-faq__faq-answer ul,
.page-resources-faq__faq-answer ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.page-resources-faq__faq-answer li {
    margin-bottom: 8px;
}

.page-resources-faq__faq-answer h4 {
    color: #26A9E0;
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-resources-faq__image-content {
    width: 100%;
    height: auto;
    max-width: 600px; /* Adjust based on content */
    margin: 20px auto;
    border-radius: 8px;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

/* Video Section */
.page-resources-faq__video-section {
    position: relative;
    padding: 60px 0;
    text-align: center;
    background-color: #26A9E0; /* Darker background for contrast */
    color: #FFFFFF;
}

.page-resources-faq__video-section .page-resources-faq__section-title,
.page-resources-faq__video-section .page-resources-faq__description {
    color: #FFFFFF; /* Ensure white text on dark background */
}

.page-resources-faq__video-section .page-resources-faq__section-title::after {
    background-color: #FFFFFF; /* White line for contrast */
}

.page-resources-faq__video-link {
    display: block;
    max-width: 900px;
    margin: 40px auto 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    cursor: pointer;
}

.page-resources-faq__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-resources-faq__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%; /* Ensure video is responsive */
}

.page-resources-faq__btn-video-cta {
    margin-top: 30px;
    background-color: #EA7C07; /* Login color for CTA */
    border-color: #EA7C07;
}

.page-resources-faq__btn-video-cta:hover {
    background-color: #c96806;
    border-color: #c96806;
}

/* Call to Action Section */
.page-resources-faq__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #FFFFFF;
    color: #333333;
}

.page-resources-faq__cta-content {
    max-width: 800px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-resources-faq__main-title {
        font-size: 2.2em;
    }
    .page-resources-faq__section-title {
        font-size: 1.8em;
    }
    .page-resources-faq__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px);
    }
    .page-resources-faq__content-area,
    .page-resources-faq__video-section,
    .page-resources-faq__cta-section {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    .page-resources-faq__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header */
    }
    .page-resources-faq__main-title {
        font-size: 1.8em;
    }
    .page-resources-faq__description {
        font-size: 1em;
    }
    .page-resources-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container for buttons */
    }
    .page-resources-faq__btn-primary,
    .page-resources-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources-faq__section-title {
        font-size: 1.5em;
        padding: 0 15px;
    }
    .page-resources-faq__text-block {
        padding: 0 15px;
    }

    /* FAQ items */
    .page-resources-faq__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-resources-faq__faq-question h3 {
        font-size: 1em;
    }
    .page-resources-faq__faq-answer {
        padding: 0 20px;
    }
    .page-resources-faq__faq-item.active .page-resources-faq__faq-answer {
        padding: 20px;
    }

    /* Images responsive */
    .page-resources-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-resources-faq__container,
    .page-resources-faq__faq-list,
    .page-resources-faq__video-link,
    .page-resources-faq__video-section,
    .page-resources-faq__cta-section,
    .page-resources-faq__cta-content {
        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 */
    }
    .page-resources-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-resources-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .page-resources-faq__main-title {
        font-size: 1.5em;
    }
    .page-resources-faq__section-title {
        font-size: 1.3em;
    }
    .page-resources-faq__description {
        font-size: 0.95em;
    }
}