/* style/resources.css */

/* General Page Styles */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #f8f8f8; /* Light background for the main content area */
}

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

.page-resources__section {
    padding: 60px 0;
    margin-bottom: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__section--overview {
    background-color: #fcfcfc;
}

.page-resources__section-title {
    font-size: 36px;
    color: #1E90FF; /* Auxiliary color for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources__paragraph {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    padding: 0 20px;
}

/* 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;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, #FFD700, #1E90FF); /* Brand colors for hero background */
    color: #ffffff; /* White text for contrast on gradient background */
    overflow: hidden; /* For responsive image scaling */
}

.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;
}

.page-resources__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    filter: none; /* Ensure no CSS filters are used on images */
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 8px;
    margin-top: -80px; /* Overlap with image for better visual flow */
}

.page-resources__main-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #FFD700; /* Primary color for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-resources__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-resources__cta-button,
.page-resources__button,
.page-resources a[class*="button"],
.page-resources a[class*="btn"] {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-resources__btn-primary {
    background: #FFD700; /* Primary color */
    color: #000000; /* Black text for contrast on gold */
}

.page-resources__btn-primary:hover {
    background: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__btn-secondary {
    background: #1E90FF; /* Auxiliary color */
    color: #ffffff; /* White text for contrast on blue */
}

.page-resources__btn-secondary:hover {
    background: #1a7bd8;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__btn-link {
    background: none;
    border: 2px solid #1E90FF;
    color: #1E90FF;
    padding: 10px 20px;
    font-size: 16px;
    box-shadow: none;
}

.page-resources__btn-link:hover {
    background: #1E90FF;
    color: #ffffff;
    box-shadow: none;
    transform: translateY(-2px);
}

.page-resources__btn-link--white {
    border-color: #ffffff;
    color: #ffffff;
}

.page-resources__btn-link--white:hover {
    background: #ffffff;
    color: #1E90FF;
}

/* Grid Layouts */
.page-resources__grid {
    display: grid;
    gap: 30px;
    padding: 0 20px;
}

.page-resources__grid--three-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-resources__grid--two-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Card Styles */
.page-resources__card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no CSS filters are used on images */
}

.page-resources__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-resources__card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #1E90FF; /* Auxiliary color for card titles */
    line-height: 1.4;
}

.page-resources__card-title a {
    color: inherit;
    text-decoration: none;
}

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

.page-resources__card-description {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Dark Section */
.page-resources__dark-section {
    background: linear-gradient(135deg, #1E90FF, #0f4d92); /* Darker gradient for contrast */
    color: #ffffff;
    padding: 80px 0;
}

.page-resources__dark-section .page-resources__section-title {
    color: #FFD700; /* Primary color for titles on dark background */
}

.page-resources__dark-section .page-resources__paragraph {
    color: #e0e0e0;
}

.page-resources__dark-section .page-resources__feature-title {
    color: #FFD700;
}

/* Feature Items (within dark section) */
.page-resources__feature-item {
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-resources__feature-icon {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); /* Subtle glow for icons */
}

.page-resources__feature-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-resources__feature-description {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-resources__cta-block {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
}

/* News Section */
.page-resources__news-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.page-resources__news-image {
    width: 100%;
    height: 200px; /* Fixed height for news images */
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no CSS filters are used on images */
}

.page-resources__news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-resources__news-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1E90FF;
    line-height: 1.4;
}

.page-resources__news-title a {
    color: inherit;
    text-decoration: none;
}

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

.page-resources__news-meta {
    font-size: 14px;
    color: #888888;
    margin-bottom: 15px;
}

.page-resources__news-excerpt {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-resources__faq-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.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 20px;
    opacity: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important; /* Ensure it expands sufficiently */
    padding: 20px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    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-item.active .page-resources__faq-question {
    border-radius: 8px 8px 0 0; /* Adjust border-radius when active */
    border-bottom-color: transparent;
}

.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: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

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

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: #FFD700; /* Primary color when active */
    transform: rotate(45deg); /* Rotate for 'x' effect, or just change text */
}

.page-resources__faq-answer p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 15px;
}

/* Contact Section */
.page-resources__contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: center;
}

.page-resources__contact-item {
    font-size: 18px;
    margin-bottom: 10px;
    color: #555555;
}

.page-resources__contact-item strong {
    color: #1E90FF;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__section-title {
        font-size: 32px;
    }
    .page-resources__main-title {
        font-size: 40px;
    }
    .page-resources__intro-text {
        font-size: 18px;
    }
    .page-resources__paragraph {
        font-size: 16px;
    }
    .page-resources__grid--three-cols {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-resources__grid--two-cols {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources__container {
        padding: 15px;
    }
    .page-resources__section {
        padding: 40px 0;
        margin-bottom: 15px;
    }
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__hero-image img {
        border-radius: 8px;
    }
    .page-resources__hero-content {
        margin-top: -60px; /* Adjust overlap */
        padding: 15px;
    }
    .page-resources__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-resources__intro-text {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-resources__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-resources__paragraph {
        font-size: 15px;
        padding: 0 15px;
    }
    .page-resources__cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__cta-button,
    .page-resources__button,
    .page-resources a[class*="button"],
    .page-resources 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: 12px 20px;
        font-size: 16px;
    }
    .page-resources__card-image {
        height: 200px;
    }
    .page-resources__card-title {
        font-size: 18px;
    }
    .page-resources__card-description {
        font-size: 14px;
    }
    .page-resources__news-image {
        height: 150px;
    }
    .page-resources__news-title {
        font-size: 18px;
    }
    .page-resources__news-excerpt {
        font-size: 14px;
    }
    .page-resources__grid {
        grid-template-columns: 1fr; /* Single column layout for mobile */
        padding: 0 15px;
    }
    .page-resources__card,
    .page-resources__news-card,
    .page-resources__feature-item {
        margin-bottom: 15px;
    }
    .page-resources__faq-question {
        padding: 15px 20px;
        flex-wrap: wrap;
    }
    .page-resources__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
    }
    .page-resources__faq-toggle {
        font-size: 24px;
        margin-left: 10px;
        width: 28px;
        height: 28px;
    }
    .page-resources__faq-answer {
        padding: 0 15px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px !important;
    }
    /* Ensure images don't overflow */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__cta-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Color Contrast Fixes (as per instructions) */
/* If body is light, default text is dark. Specific dark sections have light text. */
.page-resources__dark-bg { /* Example for dark background */
    color: #ffffff;
    background: #1E90FF;
}

.page-resources__light-bg { /* Example for light background */
    color: #333333;
    background: #ffffff;
}