.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-resources__section {
    padding: 60px 0;
    text-align: center;
}

.page-resources__section--dark {
    background-color: #1A202C;
    color: #ffffff;
}

.page-resources__section-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1A202C;
    font-weight: bold;
}

.page-resources__section--dark .page-resources__section-title {
    color: #FFD700;
}

.page-resources__section-description {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__section--dark .page-resources__section-description {
    color: #f0f0f0;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: #1A202C; /* Consistent with brand primary color */
    color: #ffffff;
    overflow: hidden; /* Prevent image overflow */
}

.page-resources__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-resources__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.page-resources__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.page-resources__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFD700;
    line-height: 1.2;
}

.page-resources__intro-text {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700;
    color: #1A202C;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__cta-button:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button--secondary {
    background: #1A202C;
    color: #FFD700;
    border-color: #FFD700;
}

.page-resources__cta-button--secondary:hover {
    background: #FFD700;
    color: #1A202C;
    border-color: #e6c200;
}

/* Grid for cards */
.page-resources__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box;
    overflow: hidden;
}

.page-resources__card:hover {
    transform: translateY(-5px);
}

.page-resources__card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
    max-width: 100%;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-resources__card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #1A202C;
    flex-grow: 1;
}

.page-resources__card-title a {
    color: #1A202C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
    color: #FFD700;
}

.page-resources__card-text {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
}

.page-resources__card-link {
    display: inline-block;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.page-resources__card-link:hover {
    color: #1A202C;
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-resources__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 15px;
    opacity: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important; /* Use !important to ensure priority, value large enough for any content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

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

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

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

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

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

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: #333;
    transform: rotate(45deg); /* Rotate for minus sign effect */
}

/* Call to Action Section */
.page-resources__call-to-action {
    background-color: #FFD700;
    color: #1A202C;
    padding: 80px 0;
}

.page-resources__call-to-action-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-resources__section-title--light {
    color: #1A202C;
}

.page-resources__section-description--light {
    color: #333333;
}

.page-resources__cta-button--inverted {
    background: #1A202C;
    color: #FFD700;
    border-color: #1A202C;
}

.page-resources__cta-button--inverted:hover {
    background: #333333;
    color: #FFD700;
    border-color: #333333;
}

/* News Section */
.page-resources__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__news-item {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box;
    overflow: hidden;
}

.page-resources__news-item:hover {
    transform: translateY(-5px);
}

.page-resources__news-item img {
    width: 100%;
     /* Fixed height for news image consistency */
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
    max-width: 100%;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-resources__news-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1A202C;
    flex-grow: 1;
}

.page-resources__news-title a {
    color: #1A202C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__news-title a:hover {
    color: #FFD700;
}

.page-resources__news-excerpt {
    font-size: 15px;
    color: #555555;
    margin-bottom: 15px;
}

.page-resources__news-link {
    display: inline-block;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.page-resources__news-link:hover {
    color: #1A202C;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
    }

    .page-resources__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources__section {
        padding: 40px 0;
    }

    .page-resources__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-resources__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Hero Section Mobile */
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources__hero-image {
        margin-bottom: 20px;
        border-radius: 4px;
    }

    .page-resources__hero-image img {
        border-radius: 4px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-resources__intro-text {
        font-size: 17px;
        margin-bottom: 30px;
    }

    .page-resources__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        margin: 8px 0; /* Stack buttons vertically */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Grid layout for cards/news */
    .page-resources__grid,
    .page-resources__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .page-resources__card,
    .page-resources__news-item {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources__card img,
    .page-resources__news-item img {
         /* Adjust image height for mobile cards */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources__card-title,
    .page-resources__news-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .page-resources__card-text,
    .page-resources__news-excerpt {
        font-size: 15px;
        margin-bottom: 15px;
    }

    /* FAQ Mobile */
    .page-resources__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-resources__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-resources__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-resources__faq-answer {
        padding: 0 15px;
    }
    
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px !important;
    }
}

/* Ensure all images in content area are responsive and not small */
.page-resources img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Content area image size enforcement */
.page-resources__card img,
.page-resources__news-item img {
    min-width: 200px;
    min-height: 200px;
}

/* Override for small icons that might accidentally be generated */
.page-resources__icon {
    min-width: 200px !important;
    min-height: 200px !important;
    width: auto !important;
    height: auto !important;
}

/* No CSS filter on images */
.page-resources img {
    filter: none !important;
}