.page-resources {
    color: #ffffff; /* Body background is #000000 (dark), so use light text */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Desktop header offset */
}

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

/* Hero Section */
.page-resources__hero-section {
    background-color: #0d0d0d; /* Slightly lighter dark background for hero */
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources__hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.page-resources__hero-content {
    max-width: 800px;
    text-align: center;
}

.page-resources__hero-title {
    font-size: 3.2em;
    color: #FFD700; /* Gold for emphasis */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

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

.page-resources__hero-button {
    display: inline-block;
    background-color: #FFD700; /* Auxiliary color for buttons */
    color: #3F0071; /* Main color for button text */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #FFD700;
}

.page-resources__hero-button:hover {
    background-color: #3F0071;
    color: #FFD700;
    border-color: #FFD700;
}

.page-resources__hero-image-wrapper {
    margin-top: 40px;
    width: 100%; /* Ensure it takes available width */
    max-width: 1000px; /* Limit max width for desktop */
}

.page-resources__hero-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Articles Section */
.page-resources__articles-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Darker background for contrast */
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

.page-resources__article-card {
    background-color: rgba(63, 0, 113, 0.8); /* Main color with transparency */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-resources__article-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

.page-resources__article-category {
    display: inline-block;
    background-color: #FFD700;
    color: #3F0071;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: bold;
    margin-bottom: 15px;
}

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

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

.page-resources__article-title a:hover {
    color: #f0f0f0;
}

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

.page-resources__read-more-button {
    display: inline-block;
    background-color: #FFD700;
    color: #3F0071;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: auto; /* Push button to bottom */
}

.page-resources__read-more-button:hover {
    background-color: #f0f0f0;
    color: #3F0071;
}

/* Long-form Content Area */
.page-resources__content-area {
    padding: 60px 0;
    background-color: #000000;
}

.page-resources__content-title {
    font-size: 2.2em;
    color: #FFD700;
    margin-bottom: 25px;
    font-weight: bold;
    text-align: left;
}

.page-resources__content-subtitle {
    font-size: 1.8em;
    color: #e0e0e0;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: left;
}

.page-resources__content-sub-subtitle {
    font-size: 1.4em;
    color: #cccccc;
    margin-top: 30px;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: left;
}

.page-resources__content-paragraph {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    text-align: left;
}