.page-resources {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

.page-resources__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF; /* White text on hero image */
    text-align: center;
    min-height: 500px; /* Ensure hero section has a minimum height */
}

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

.page-resources__hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-resources__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

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

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

.page-resources__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 120px; /* Ensure buttons are not too small */
    text-align: center;
    font-size: 1em;
}

.page-resources__button--register {
    background-color: #FFFFFF; /* Register color */
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-resources__button--register:hover {
    background-color: transparent;
    color: #FFFFFF;
}

.page-resources__button--login {
    background-color: #FCBC45; /* Login color */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-resources__button--login:hover {
    background-color: transparent;
    color: #FCBC45;
}

.page-resources__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #FFFFFF; /* Ensure content area has a white background for dark text */
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

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

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

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

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

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

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

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

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

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

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

.page-resources__button--read-more {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    align-self: flex-start; /* Align button to start of flex container */
}

.page-resources__button--read-more:hover {
    background-color: #FCBC45;
    color: #000000;
    border-color: #FCBC45;
}

.page-resources__text-block {
    margin-bottom: 20px;
    font-size: 1.05em;
    color: #444444;
}

.page-resources__sub-section-title {
    font-size: 2em;
    color: #000000;
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: left;
    border-bottom: 2px solid #FCBC45;
    padding-bottom: 10px;
}

.page-resources__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-resources__numbered-list {
    list-style: decimal inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-resources__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #444444;
}

.page-resources__cta-section {
    background-color: #000000;
    color: #FFFFFF;
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    margin-top: 60px;
}

.page-resources__cta-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-resources__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #F0F0F0;
}

.page-resources__button--primary {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
    margin-right: 15px;
}

.page-resources__button--primary:hover {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

.page-resources__button--secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-resources__button--secondary:hover {
    background-color: #FCBC45;
    color: #000000;
    border-color: #FCBC45;
}

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

@media (max-width: 768px) {
    .page-resources {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-actions {
        flex-direction: column;
        gap: 10px;
    }
    .page-resources__button {
        width: 80%; /* Make buttons wider on mobile */
        margin-left: auto;
        margin-right: auto;
    }
    .page-resources__button--primary {
        margin-right: 0; /* Remove right margin for stacked buttons */
        margin-bottom: 10px; /* Add bottom margin for spacing */
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-intro {
        font-size: 0.95em;
    }
    .page-resources__article-card {
        margin-bottom: 20px;
    }
    .page-resources__article-image {
        max-width: 100%;
        height: auto; /* Allow image height to adjust */
    }
    .page-resources__article-title {
        font-size: 1.3em;
    }
    .page-resources__sub-section-title {
        font-size: 1.5em;
    }
    .page-resources__text-block,
    .page-resources__list-item {
        font-size: 0.95em;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }
    /* Ensure content area images do not cause horizontal scroll */
    .page-resources__content-area img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__sub-section-title {
        font-size: 1.3em;
    }
}