/* style/resources-faq.css */

/* Base styles for the FAQ page */
.page-resources-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #f8f9fa; /* Light background for the main content area */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-resources-faq__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #007bff; /* Primary brand color */
    text-align: center;
    margin-bottom: 20px;
    margin-top: 60px;
    position: relative;
    padding-bottom: 15px;
}

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

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

/* Common container styling */
.page-resources-faq__hero-container,
.page-resources-faq__faq-container,
.page-resources-faq__brand-container,
.page-resources-faq__blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Module 1: Hero Section (H1 + CTA) */
.page-resources-faq__hero-section {
    background: linear-gradient(135deg, #007bff, #0056b3); /* Primary brand color gradient */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources-faq__main-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-resources-faq__hero-description {
    font-size: 20px;
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.6;
    opacity: 0.9;
}

.page-resources-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources-faq__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box;
}

.page-resources-faq__cta-button--primary {
    background: #ffc107; /* Secondary brand color */
    color: #333333; /* Dark text for contrast */
}

.page-resources-faq__cta-button--primary:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-resources-faq__cta-button--secondary {
    background: #ffffff;
    color: #007bff; /* Primary brand color text */
    border: 2px solid #007bff;
}

.page-resources-faq__cta-button--secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-resources-faq__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
    display: block; /* Ensure it behaves as a block element for max-width */
    margin-left: auto;
    margin-right: auto;
}

/* Module 2: FAQ Section */
.page-resources-faq__faq-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.page-resources-faq__faq-list {
    max-width: 900px;
    margin: 0 auto;
    position: relative; /* For image positioning */
}

.page-resources-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources-faq__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-resources-faq__faq-question:active {
    background: #eeeeee;
}

.page-resources-faq__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-resources-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #007bff; /* Primary brand color for toggle */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent toggle icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-resources-faq__faq-item.active .page-resources-faq__faq-toggle {
    color: #ffc107; /* Secondary brand color when active */
    transform: rotate(45deg); /* Change to X or rotate */
}

.page-resources-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    background: #ffffff;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.page-resources-faq__faq-item.active .page-resources-faq__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px !important;
    opacity: 1;
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-top: none;
}

.page-resources-faq__faq-answer p {
    margin: 0;
    font-size: 16px;
    color: #555555;
}

.page-resources-faq__faq-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Module 3: Brand Introduction */
.page-resources-faq__brand-section {
    padding: 60px 20px;
    background-color: #ffffff;
}

.page-resources-faq__brand-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-faq__brand-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #007bff; /* Primary brand accent */
}

.page-resources-faq__brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-resources-faq__brand-item-title {
    font-size: 24px;
    color: #007bff; /* Primary brand color */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-resources-faq__brand-item p {
    font-size: 16px;
    color: #555555;
    line-height: 1.7;
}

.page-resources-faq__brand-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Module 4: Blog List Section */
.page-resources-faq__blog-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.page-resources-faq__blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-faq__blog-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-faq__blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-resources-faq__blog-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding-bottom: 20px;
}

.page-resources-faq__blog-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

.page-resources-faq__blog-item-title {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    padding: 20px 20px 10px;
    margin: 0;
}

.page-resources-faq__blog-item-excerpt {
    font-size: 15px;
    color: #666666;
    padding: 0 20px 15px;
    margin: 0;
}

.page-resources-faq__blog-item-date {
    font-size: 14px;
    color: #999999;
    padding: 0 20px;
    display: block;
}

.page-resources-faq__blog-cta {
    text-align: center;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources-faq__main-title {
        font-size: 40px;
    }
    .page-resources-faq__section-title {
        font-size: 30px;
    }
    .page-resources-faq__hero-description {
        font-size: 18px;
    }
    .page-resources-faq__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-resources-faq__brand-item-title {
        font-size: 22px;
    }
    .page-resources-faq__blog-item-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    /* General mobile adjustments */
    .page-resources-faq {
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
        font-size: 16px;
        line-height: 1.6;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Common container adjustments */
    .page-resources-faq__hero-container,
    .page-resources-faq__faq-container,
    .page-resources-faq__brand-container,
    .page-resources-faq__blog-container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero section */
    .page-resources-faq__hero-section {
        padding: 60px 15px;
    }
    .page-resources-faq__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-resources-faq__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-resources-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        margin-bottom: 30px;
    }
    .page-resources-faq__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
    }
    .page-resources-faq__hero-image {
        margin-top: 30px;
    }

    /* Section titles and descriptions */
    .page-resources-faq__section-title {
        font-size: 26px;
        margin-top: 40px;
    }
    .page-resources-faq__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* FAQ section */
    .page-resources-faq__faq-section {
        padding: 40px 15px;
    }
    .page-resources-faq__faq-question {
        padding: 15px;
    }
    .page-resources-faq__faq-question h3 {
        font-size: 16px;
    }
    .page-resources-faq__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-resources-faq__faq-answer {
        padding: 0 15px;
    }
    .page-resources-faq__faq-item.active .page-resources-faq__faq-answer {
        padding: 15px !important;
    }
    .page-resources-faq__faq-answer p {
        font-size: 15px;
    }
    .page-resources-faq__faq-image {
        margin-top: 30px;
    }

    /* Brand section */
    .page-resources-faq__brand-section {
        padding: 40px 15px;
    }
    .page-resources-faq__brand-content {
        gap: 20px;
    }
    .page-resources-faq__brand-item {
        padding: 25px;
    }
    .page-resources-faq__brand-item-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    .page-resources-faq__brand-item p {
        font-size: 15px;
    }
    .page-resources-faq__brand-image {
        margin-top: 30px;
    }

    /* Blog section */
    .page-resources-faq__blog-section {
        padding: 40px 15px;
    }
    .page-resources-faq__blog-list {
        gap: 20px;
    }
    .page-resources-faq__blog-item-image {
        height: 180px;
    }
    .page-resources-faq__blog-item-title {
        font-size: 17px;
        padding: 15px 15px 8px;
    }
    .page-resources-faq__blog-item-excerpt {
        font-size: 14px;
        padding: 0 15px 10px;
    }
    .page-resources-faq__blog-item-date {
        padding: 0 15px;
    }
    .page-resources-faq__blog-cta {
        margin-top: 40px;
    }

    /* Image responsiveness */
    .page-resources-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    /* Video responsiveness (if any, though not for this page) */
    .page-resources-faq video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-resources-faq__video-section,
    .page-resources-faq__video-container,
    .page-resources-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important; /* Reset padding from general containers */
        padding-right: 0 !important; /* Reset padding from general containers */
        overflow: hidden !important;
    }
}