.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); /* Ensure space for fixed header */
}

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

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

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

/* Hero Section */
.page-resources__hero-section {
    background-color: #FFFFFF; /* White background for hero section */
    padding: 80px 20px 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

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

.page-resources__hero-title {
    font-size: 3.2em;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.3em;
    color: #333333;
    margin-bottom: 40px;
}

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

.page-resources__button {
    display: inline-block;
    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: none;
    cursor: pointer;
}

.page-resources__button--register {
    background-color: #000000; /* Primary button background */
    color: #FFFFFF; /* Text color for register button */
}

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

.page-resources__button--login {
    background-color: #FCBC45; /* Login button background */
    color: #000000; /* Text color for login button */
}

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

.page-resources__button--view-details,
.page-resources__button--learn-more,
.page-resources__button--read-more {
    background-color: #000000;
    color: #FFFFFF;
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-resources__button--view-details:hover,
.page-resources__button--learn-more:hover,
.page-resources__button--read-more:hover {
    background-color: #333333;
}

.page-resources__button--cta {
    background-color: #FCBC45;
    color: #000000;
    padding: 18px 35px;
    font-size: 1.2em;
    border-radius: 10px;
}

.page-resources__button--cta:hover {
    background-color: #e0a53c;
}

.page-resources__hero-image-wrapper {
    width: 100%;
    max-width: 1000px; /* Constrain hero image width */
    margin-top: 30px;
}

.page-resources__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Articles Section */
.page-resources__articles-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.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 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-resources__article-image-wrapper {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-resources__article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-resources__article-card:hover .page-resources__article-image {
    transform: scale(1.05);
}

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

.page-resources__article-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.3;
    flex-grow: 1; /* Allow title to take up space */
}

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

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

.page-resources__article-summary {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
}

/* Additional Guides Section */
.page-resources__additional-guides-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

.page-resources__guide-item {
    background-color: #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-resources__guide-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    margin-bottom: 20px;
}

.page-resources__guide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-resources__guide-item:hover .page-resources__guide-image {
    transform: scale(1.05);
}

.page-resources__guide-title {
    font-size: 1.4em;
    color: #000000;
    margin: 0 25px 15px;
    line-height: 1.3;
    flex-grow: 1;
}

.page-resources__guide-text {
    font-size: 0.9em;
    color: #555555;
    margin: 0 25px 20px;
    flex-grow: 1;
}

.page-resources__guide-item .page-resources__button {
    align-self: flex-start;
    margin-left: 25px;
}

/* Latest News Section */
.page-resources__latest-news-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.page-resources__news-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-resources__news-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.page-resources__news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-resources__news-card:hover .page-resources__news-image {
    transform: scale(1.05);
}

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

.page-resources__news-title {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
    line-height: 1.3;
    flex-grow: 1;
}

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

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

.page-resources__news-summary {
    font-size: 0.9em;
    color: #555555;
    margin-bottom: 15px;
}

/* Why Choose Section */
.page-resources__why-choose-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

.page-resources__feature-item {
    text-align: center;
    padding: 30px;
    background-color: #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.page-resources__feature-icon {
    width: 200px; /* Minimum size requirement */
    height: 150px; /* Minimum size requirement */
    object-fit: contain;
    margin-bottom: 20px;
}

.page-resources__feature-title {
    font-size: 1.4em;
    color: #000000;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-resources__feature-text {
    font-size: 0.95em;
    color: #555555;
}


/* CTA Section */
.page-resources__cta-section {
    background-color: #000000; /* Dark background for CTA */
    color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
}

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

.page-resources__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__cta-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-resources {
        padding-top: var(--header-offset, 120px); /* Mobile also needs padding */
    }
    .page-resources__hero-section {
        padding: 60px 20px 40px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__button {
        width: 100%;
        max-width: 300px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        padding-top: 30px;
    }
    .page-resources__section-description {
        font-size: 1em;
        margin-bottom: 40px;
    }
    .page-resources__articles-section,
    .page-resources__additional-guides-section,
    .page-resources__latest-news-section,
    .page-resources__why-choose-section,
    .page-resources__cta-section {
        padding: 50px 0;
    }
    .page-resources__articles-grid,
    .page-resources__guides-grid,
    .page-resources__news-grid,
    .page-resources__feature-grid {
        grid-template-columns: 1fr;
    }

    /* Important: Mobile image constraints */
    .page-resources__articles-section img,
    .page-resources__additional-guides-section img,
    .page-resources__latest-news-section img,
    .page-resources__why-choose-section img {
        max-width: 100%;
        height: auto;
    }
    /* Ensure content images are not smaller than 200px display size */
    .page-resources__article-image-wrapper,
    .page-resources__guide-image-wrapper,
    .page-resources__news-image-wrapper {
        height: auto; /* Allow height to adjust */
    }
    .page-resources__article-image,
    .page-resources__guide-image,
    .page-resources__news-image {
        min-width: 200px; /* Min width for content images */
        min-height: 200px; /* Min height for content images */
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    .page-resources__feature-icon {
        width: 200px; /* Ensure feature icons are also large enough */
        height: 150px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__button {
        padding: 12px 25px;
        font-size: 1em;
    }
}