.page-resources {
    /* Body background is default (white), so using dark text */
    color: #333333;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-resources__hero-section {
    position: relative;
    overflow: hidden;
    padding: 0;
    background-color: #000000; /* Dark background for hero content overlay */
}

.page-resources__hero-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px; /* Minimum height for hero section */
}

.page-resources__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 40px;
    max-width: 800px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    color: #FFD700; /* Gold for title */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__hero-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #8B0000; /* Dark red text on gold */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__hero-button:hover {
    background-color: #e6c200;
    color: #6a0000;
}

.page-resources__intro-section,
.page-resources__deep-content {
    padding: 60px 0;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #8B0000; /* Dark red for section titles */
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700; /* Gold underline */
    border-radius: 2px;
}

.page-resources__section-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-resources__articles-section {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.page-resources__article-card {
    background-color: #fefefe;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    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 8px 25px rgba(0, 0, 0, 0.2);
}

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

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

.page-resources__card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #8B0000; /* Dark red for card titles */
    line-height: 1.3;
}

.page-resources__card-title a {
    color: #8B0000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
    color: #FFD700; /* Gold on hover */
}

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

.page-resources__card-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #8B0000; /* Dark red text on gold */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    align-self: flex-start;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-resources__card-button:hover {
    background-color: #e6c200;
    color: #6a0000;
}

.page-resources__sub-section-title {
    font-size: 2em;
    color: #8B0000;
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 5px solid #FFD700;
    padding-left: 15px;
}

.page-resources__cta-section {
    text-align: center;
    padding: 50px 0;
    background-color: #8B0000; /* Dark red background for CTA */
    margin-top: 60px;
    border-radius: 10px;
}

.page-resources__cta-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #8B0000; /* Dark red text on gold */
    padding: 20px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.4em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__sub-section-title {
        font-size: 1.8em;
    }
    .page-resources__article-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .page-resources {
        overflow-x: hidden; /* Prevent horizontal scroll on mobile */
    }
    .page-resources__hero-container {
        min-height: 400px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-resources__section-text {
        font-size: 1em;
    }
    .page-resources__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-image {
        height: 200px; /* Minimum 200px height for content images */
        max-width: 100%; /* Ensure images don't overflow */
        width: auto; /* Adjust width automatically */
    }
    .page-resources__article-card {
        margin: 0 auto;
        max-width: 450px;
    }
    .page-resources__card-title {
        font-size: 1.4em;
    }
    .page-resources__card-summary {
        font-size: 0.95em;
    }
    .page-resources__sub-section-title {
        font-size: 1.6em;
    }
    .page-resources__cta-button {
        font-size: 1.2em;
        padding: 15px 30px;
    }
    /* Ensure all images within .page-resources are responsive and don't overflow */
    .page-resources img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-content {
        padding: 20px;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__sub-section-title {
        font-size: 1.4em;
    }
}