/* style/resources.css */

/* Variables for consistency */
:root {
    --page-resources-primary-color: #1A2E4E;
    --page-resources-secondary-color: #FFD700;
    --page-resources-light-text: #F8F8F8;
    --page-resources-dark-text: #1A2E4E; /* Dark text for light backgrounds */
    --page-resources-accent-dark: #998100; /* Darker shade of gold for text on gold background */
    --page-resources-background-light: #FFFFFF;
    --page-resources-background-dark: #1A2E4E;
    --page-resources-border-color: #E0E0E0;
}

.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-resources-dark-text);
    background-color: var(--page-resources-background-light);
}

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

.page-resources__highlight {
    color: var(--page-resources-primary-color);
    font-weight: bold;
}

/* --- Hero Section --- */
.page-resources__hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 550px;
    color: var(--page-resources-light-text);
    overflow: hidden;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--page-resources-primary-color) 0%, #3a5b8e 100%); /* Slightly lighter dark blue for gradient */
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    z-index: 1;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--page-resources-secondary-color);
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.8;
    color: var(--page-resources-light-text);
}

.page-resources__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.page-resources__btn--primary {
    background-color: var(--page-resources-secondary-color);
    color: var(--page-resources-primary-color);
    border: 2px solid var(--page-resources-secondary-color);
}

.page-resources__btn--primary:hover {
    background-color: #e6c200;
    color: var(--page-resources-primary-color);
}

/* --- General Section Styles --- */
.page-resources__section {
    padding: 60px 0;
}

.page-resources__section:nth-of-type(even) {
    background-color: #f5f5f5; /* Light grey for alternating sections */
}

.page-resources__section-title {
    font-size: 2.5em;
    color: var(--page-resources-primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-resources__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555;
}

/* --- Why Important Section --- */
.page-resources__why-important {
    background-color: var(--page-resources-background-light);
}

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

.page-resources__why-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__why-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-resources__why-title {
    font-size: 1.5em;
    color: var(--page-resources-primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-resources__why-text {
    color: #666;
    font-size: 1em;
}

/* --- Resource List Section --- */
.page-resources__resource-list {
    background-color: #f5f5f5;
}

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

.page-resources__article-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-resources__article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--page-resources-border-color);
}

.page-resources__article-card > h3, .page-resources__article-card > p, .page-resources__article-card > a {
    padding: 0 25px;
}

.page-resources__article-title {
    font-size: 1.3em;
    color: var(--page-resources-primary-color);
    margin: 20px 0 10px;
    font-weight: 600;
    min-height: 60px; /* Ensure consistent height for titles */
}

.page-resources__article-title a {
    text-decoration: none;
    color: var(--page-resources-primary-color);
    transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
    color: var(--page-resources-secondary-color);
}

.page-resources__article-description {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-resources__btn--secondary {
    background-color: var(--page-resources-primary-color);
    color: var(--page-resources-light-text);
    border: 2px solid var(--page-resources-primary-color);
    margin-top: auto; /* Push button to bottom */
    margin-bottom: 25px;
}

.page-resources__btn--secondary:hover {
    background-color: #0d1e3a;
    border-color: #0d1e3a;
}

/* --- Commitment Section --- */
.page-resources__commitment {
    background-color: var(--page-resources-background-light);
}

.page-resources__commitment-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: background-color 0.3s ease;
    border: 1px solid var(--page-resources-border-color);
}

.page-resources__commitment-item:hover {
    background-color: #f9f9f9;
}

.page-resources__commitment-title {
    font-size: 1.4em;
    color: var(--page-resources-primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-resources__commitment-text {
    color: #666;
    font-size: 1em;
}

/* --- Call to Action Section --- */
.page-resources__cta {
    position: relative;
    padding: 80px 0;
    color: var(--page-resources-light-text);
    text-align: center;
    overflow: hidden;
    background: var(--page-resources-primary-color);
}

.page-resources__cta-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* Subtle background image */
    z-index: 1;
}

.page-resources__cta-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-resources__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--page-resources-secondary-color);
    font-weight: 700;
}

.page-resources__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--page-resources-light-text);
    line-height: 1.7;
}

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

.page-resources__btn--cta {
    background-color: var(--page-resources-secondary-color);
    color: var(--page-resources-primary-color);
    border: 2px solid var(--page-resources-secondary-color);
    padding: 18px 35px;
    font-size: 1.1em;
}

.page-resources__btn--cta:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-resources__btn--outline {
    background-color: transparent;
    color: var(--page-resources-secondary-color);
    border: 2px solid var(--page-resources-secondary-color);
    padding: 18px 35px;
    font-size: 1.1em;
}

.page-resources__btn--outline:hover {
    background-color: var(--page-resources-secondary-color);
    color: var(--page-resources-primary-color);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero {
        min-height: 450px;
        padding: 60px 0;
    }
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description,
    .page-resources__section-intro,
    .page-resources__cta-description {
        font-size: 1em;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__why-item,
    .page-resources__article-card,
    .page-resources__commitment-item {
        padding: 25px;
    }
    .page-resources__articles-grid,
    .page-resources__grid {
        grid-template-columns: 1fr;
    }
    .page-resources__cta {
        padding: 60px 0;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__btn--cta,
    .page-resources__btn--outline {
        padding: 15px 25px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__cta-title {
        font-size: 1.6em;
    }
    .page-resources__btn {
        padding: 12px 20px;
        font-size: 0.9em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn--cta,
    .page-resources__btn--outline {
        width: 100%;
        max-width: 280px;
    }
}