/* style/resources.css */

/* General styles for the resources page content */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Dark text for light backgrounds, WCAG AA contrast with #f8f8f8 is 10.6:1 */
    line-height: 1.6;
    background-color: #f8f8f8; /* Light background for main content */
}

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

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

.page-resources__section:nth-of-type(even) {
    background-color: #f2f2f2; /* Slightly darker background for alternating sections, WCAG AA contrast with #333333 is 9.9:1 */
}

.page-resources__section-title {
    font-size: 2.8em;
    color: #003366; /* Main brand color for titles, WCAG AA contrast with #f8f8f8 is 13.9:1 */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-resources__section-subtitle {
    font-size: 1.3em;
    color: #555555; /* Dark grey, WCAG AA contrast with #f8f8f8 is 7.5:1 */
    margin-bottom: 40px;
}

/* Hero Section */
.page-resources__hero {
    background: linear-gradient(135deg, #003366 0%, #001a33 100%); /* Dark blue gradient */
    color: #ffffff; /* White text for dark backgrounds */
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources__hero-title {
    font-size: 3.8em;
    color: #FFCC00; /* Auxiliary color for main hero title, WCAG AA contrast with #003366 is 10.5:1 */
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-description {
    font-size: 1.4em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
    color: #e0e0e0; /* Light grey for description, WCAG AA contrast with #003366 is 9.2:1 */
}

.page-resources__hero-btn,
.page-resources__btn,
.page-resources__cta-btn {
    display: inline-block;
    background-color: #FFCC00; /* Auxiliary color for buttons */
    color: #003366; /* Main brand color for button text, WCAG AA contrast with #FFCC00 is 10.5:1 */
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__hero-btn:hover,
.page-resources__btn:hover,
.page-resources__cta-btn:hover {
    background-color: #e6b800; /* Slightly darker gold on hover, WCAG AA contrast with #003366 is 9.5:1 */
    transform: translateY(-3px);
}

/* About Section */
.page-resources__about {
    text-align: left;
}

.page-resources__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-resources__text-content {
    flex: 1;
    min-width: 300px;
}

.page-resources__text-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #444444; /* Dark grey, WCAG AA contrast with #f8f8f8 is 8.8:1 */
}

.page-resources__image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Categories Section */
.page-resources__categories {
    background-color: #f2f7fc; /* Light blueish background, WCAG AA contrast with #333333 is 9.9:1 */
}

.page-resources__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-resources__grid-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__item-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 51, 102, 0.2)); /* Shadow for icons */
}

.page-resources__item-title {
    font-size: 1.5em;
    color: #003366; /* Main brand color, WCAG AA contrast with #ffffff is 13.9:1 */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-resources__item-description {
    font-size: 1em;
    color: #666666; /* Grey, WCAG AA contrast with #ffffff is 4.5:1 */
}

/* Articles Section */
.page-resources__articles {
    text-align: left;
}

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

.page-resources__article-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__article-title {
    font-size: 1.3em;
    color: #003366; /* Main brand color, WCAG AA contrast with #ffffff is 13.9:1 */
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.page-resources__article-title a {
    color: #003366;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
    color: #FFCC00; /* Auxiliary color on hover, WCAG AA contrast with #ffffff is 10.5:1 */
    text-decoration: underline;
}

.page-resources__article-description {
    font-size: 0.95em;
    color: #555555; /* Dark grey, WCAG AA contrast with #ffffff is 7.5:1 */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__btn--small {
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 25px;
    align-self: flex-start; /* Align button to start of flex item */
}

/* Call to Action Section */
.page-resources__cta {
    background: #003366; /* Main brand color for CTA background */
    color: #ffffff;
    padding: 80px 0;
}

.page-resources__cta .page-resources__section-title {
    color: #FFCC00; /* Auxiliary color for CTA title, WCAG AA contrast with #003366 is 10.5:1 */
}

.page-resources__cta-description {
    font-size: 1.3em;
    max-width: 700px;
    margin: 20px auto 30px auto;
    color: #e0e0e0; /* Light grey, WCAG AA contrast with #003366 is 9.2:1 */
}

.page-resources__cta-btn {
    margin-top: 20px;
}

.page-resources__cta-subtext {
    font-size: 1em;
    margin-top: 30px;
    color: #b3cce6; /* Lighter shade of blue for subtext, WCAG AA contrast with #003366 is 4.7:1 */
}

/* Commitment Section */
.page-resources__commitment {
    text-align: center;
}

.page-resources__commitment-text {
    font-size: 1.1em;
    color: #444444; /* Dark grey, WCAG AA contrast with #f8f8f8 is 8.8:1 */
    max-width: 900px;
    margin: 0 auto 25px auto;
}

.page-resources__commitment-image {
    margin-top: 40px;
    max-width: 600px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Animation for JS */
.page-resources__hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.page-resources__fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }

    .page-resources__hero-description {
        font-size: 1.2em;
    }

    .page-resources__section-title {
        font-size: 2.2em;
    }

    .page-resources__section-subtitle {
        font-size: 1.1em;
    }

    .page-resources__content-wrapper {
        flex-direction: column;
    }

    .page-resources__grid {
        grid-template-columns: 1fr;
    }

    .page-resources__article-list {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 2em;
    }

    .page-resources__hero-description {
        font-size: 1em;
    }

    .page-resources__section-title {
        font-size: 1.8em;
    }

    .page-resources__item-title {
        font-size: 1.3em;
    }

    .page-resources__article-title {
        font-size: 1.1em;
    }

    .page-resources__hero-btn,
    .page-resources__btn,
    .page-resources__cta-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
}