/* 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 #f8f9fa */
    line-height: 1.6;
    background-color: #f8f9fa; /* Light background for overall page */
}

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

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #003366; /* Main brand color for titles, WCAG AA contrast with #f8f9fa */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__section-description {
    font-size: 1.1em;
    color: #555555; /* Darker grey for better contrast */
    max-width: 800px;
    margin: 0 auto 40px;
}

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

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFCC00; /* Accent color for hero title, WCAG AA contrast with dark blue */
    line-height: 1.2;
}

.page-resources__hero-subtitle {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #e0e0e0; /* Light grey for text, WCAG AA contrast with dark blue */
}

.page-resources__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.page-resources__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.page-resources__btn--primary {
    background-color: #FFCC00; /* Accent color */
    color: #003366; /* Dark blue text, WCAG AA contrast with #FFCC00 */
    border-color: #FFCC00;
}

.page-resources__btn--primary:hover {
    background-color: #e6b800;
    border-color: #e6b800;
    transform: translateY(-2px);
}

.page-resources__btn--secondary {
    background-color: transparent;
    color: #FFCC00; /* Accent color, WCAG AA contrast with dark blue background */
    border-color: #FFCC00;
}

.page-resources__btn--secondary:hover {
    background-color: #FFCC00;
    color: #003366;
    transform: translateY(-2px);
}

.page-resources__btn--accent {
    background-color: #003366; /* Main brand color */
    color: #FFCC00; /* Accent color text, WCAG AA contrast with #003366 */
    border-color: #003366;
}

.page-resources__btn--accent:hover {
    background-color: #0a4f94;
    border-color: #0a4f94;
    transform: translateY(-2px);
}

.page-resources__btn--small {
    padding: 10px 20px;
    font-size: 0.9em;
    background-color: #003366;
    color: #FFCC00;
    border-color: #003366;
}

.page-resources__btn--small:hover {
    background-color: #0a4f94;
    border-color: #0a4f94;
}

.page-resources__btn--large {
    padding: 18px 35px;
    font-size: 1.2em;
}

.page-resources__ml-small {
    margin-left: 15px;
}

.page-resources__mt-large {
    margin-top: 40px;
}

/* Intro Content Section */
.page-resources__intro-content {
    background-color: #ffffff;
}

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

.page-resources__content-block {
    background-color: #fdfdfd;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__content-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources__block-title {
    font-size: 1.5em;
    color: #003366;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__content-block p {
    color: #444444;
    font-size: 1em;
}

/* Featured Articles Section */
.page-resources__featured-articles {
    background-color: #eef4f8; /* Light blueish background, WCAG AA contrast with #555555 and #003366 */
}

.page-resources__article-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-resources__category-tag {
    background-color: #FFCC00;
    color: #003366; /* WCAG AA contrast with #FFCC00 */
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid transparent;
}

.page-resources__category-tag:hover {
    background-color: #003366;
    color: #FFCC00;
    border-color: #FFCC00;
}

/* Detail List Section */
.page-resources__detail-list {
    background-color: #ffffff;
}

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

.page-resources__list-item {
    background-color: #fdfdfd;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__item-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources__item-title {
    font-size: 1.4em;
    color: #003366;
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-resources__item-title a:hover {
    color: #FFCC00;
}

.page-resources__item-description {
    color: #555555;
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1; /* Ensures description takes available space */
}

/* CTA Bottom Section */
.page-resources__cta-bottom {
    background-color: #003366; /* Main brand color */
    color: #ffffff;
    padding: 80px 20px;
}

.page-resources__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources__cta-title {
    font-size: 2.8em;
    color: #FFCC00; /* Accent color, WCAG AA contrast with #003366 */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__cta-description {
    font-size: 1.2em;
    color: #e0e0e0; /* Light grey for text, WCAG AA contrast with #003366 */
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-subtitle {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__content-grid,
    .page-resources__list-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-resources__cta-title {
        font-size: 2.2em;
    }
    .page-resources__cta-description {
        font-size: 1.1em;
    }
    .page-resources__ml-small {
        margin-left: 0;
        margin-top: 15px; /* Stack buttons on smaller screens */
    }
    .page-resources__hero-actions,
    .page-resources__cta-bottom .page-resources__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__hero {
        padding: 80px 15px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-subtitle {
        font-size: 1em;
    }
    .page-resources__content-block,
    .page-resources__list-item {
        padding: 20px;
    }
    .page-resources__block-title {
        font-size: 1.3em;
    }
    .page-resources__item-title {
        font-size: 1.2em;
    }
    .page-resources__cta-bottom {
        padding: 60px 15px;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.6em;
    }
    .page-resources__hero-actions {
        flex-direction: column;
    }
    .page-resources__btn {
        width: 100%;
        box-sizing: border-box;
    }
    .page-resources__ml-small {
        margin-left: 0;
        margin-top: 10px;
    }
    .page-resources__article-categories {
        flex-direction: column;
        gap: 10px;
    }
    .page-resources__category-tag {
        width: 100%;
        box-sizing: border-box;
    }
    .page-resources__cta-title {
        font-size: 1.5em;
    }
}