/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: #E0E0E0; /* Light text for dark background */
    background-color: #1A202C; /* Main dark background */
    line-height: 1.6;
}

/* Hero Section */
.page-resources__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1A202C 0%, #3a0e0e 100%); /* Gradient with main and a darker red */
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.page-resources__hero-content {
    max-width: 900px;
    z-index: 10;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #E53E3E; /* Accent color for title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #D3D3D3;
}

.page-resources__hero-button {
    display: inline-block;
    background-color: #E53E3E; /* Accent color for button */
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4);
}

.page-resources__hero-button:hover {
    background-color: #c0392b; /* Darker red on hover */
    transform: translateY(-2px);
}

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    overflow: hidden;
}

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Articles Section */
.page-resources__articles {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-resources__articles-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #E53E3E;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-resources__articles-intro {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #B0B0B0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources__article-card {
    background-color: #2D3748; /* Slightly lighter dark background for cards */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-resources__article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #E53E3E;
}

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

.page-resources__article-card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #E53E3E;
    line-height: 1.3;
}

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

.page-resources__article-card-title a:hover {
    color: #FFD700; /* Gold-like color on hover for titles */
}

.page-resources__article-category {
    font-size: 0.9em;
    color: #A0AEC0;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-resources__article-summary {
    font-size: 1em;
    color: #C0C0C0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__article-button {
    display: inline-block;
    background-color: #E53E3E; /* Accent color for button */
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: flex-start; /* Align button to start */
}

.page-resources__article-button:hover {
    background-color: #c0392b; /* Darker red on hover */
    transform: translateY(-2px);
}

/* CTA Bottom Section */
.page-resources__cta-bottom {
    background-color: #1A202C; /* Main dark background */
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid rgba(229, 62, 62, 0.3);
}

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

.page-resources__cta-title {
    font-size: 2.8em;
    color: #E53E3E;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-description {
    font-size: 1.15em;
    color: #D3D3D3;
    margin-bottom: 40px;
}

.page-resources__cta-button {
    display: inline-block;
    background-color: #E53E3E;
    color: #FFFFFF;
    padding: 18px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.5);
}

.page-resources__cta-button:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
}

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

    .page-resources__articles-title {
        font-size: 2em;
    }

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

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

    .page-resources__hero,
    .page-resources__articles,
    .page-resources__cta-bottom {
        padding: 40px 15px;
    }
}

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

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

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

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

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