.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); /* Space for fixed header on desktop */
}

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

/* Hero Section */
.page-resources__hero-section {
    text-align: center;
    padding: 0 20px 80px; /* Adjust padding, image will be at top */
    background-color: #000000; /* Dark background for hero section */
    color: #FFFFFF;
    overflow: hidden;
}

.page-resources__hero-image {
    width: 100%;
    height: auto; /* Allow image to dictate height */
    max-height: 600px; /* Max height to prevent overly large image on desktop */
    object-fit: cover;
    display: block;
    margin-bottom: 40px; /* Space between image and text container */
    min-width: 200px;
    min-height: 200px;
}

.page-resources__hero-container {
    max-width: 900px;
    margin: 0 auto;
}

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

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

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

.page-resources__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 150px; /* Ensure buttons are not too small */
    text-align: center;
}

.page-resources__button--register {
    background-color: #000000; /* As per instructions, register uses #FFFFFF, so this is button background */
    color: #FFFFFF; /* Text color for register button */
    border: 2px solid #FFFFFF;
}

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

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

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

/* General Section Styling */
.page-resources__introduction-section,
.page-resources__articles-section,
.page-resources__deep-dive-section,
.page-resources__security-section,
.page-resources__optimization-section,
.page-resources__faq-section,
.page-resources__cta-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light background for content sections */
}

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

.page-resources__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #FCBC45;
    margin: 15px auto 0;
}

.page-resources__text-content {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #333333;
}

.page-resources__link {
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
}

.page-resources__link:hover {
    text-decoration: underline;
}

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

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

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

.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;
}

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

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

.page-resources__article-summary {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow summary to take available space */
}

.page-resources__button--read-more {
    background-color: #FCBC45;
    color: #000000;
    padding: 10px 20px;
    border-radius: 5px;
    align-self: flex-start; /* Align to the start of the flex container */
}

.page-resources__button--read-more:hover {
    background-color: #e0a53b;
}

/* Content Images (Deep Dive, Security, Optimization) */
.page-resources__content-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px; /* Constrain max width for content images */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

.page-resources__cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-resources__button--register-large {
    background-color: #FFFFFF;
    color: #000000;
    padding: 18px 35px;
    font-size: 1.2em;
    border: 2px solid #FFFFFF;
}

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

.page-resources__button--view-promos {
    background-color: #FCBC45;
    color: #000000;
    padding: 18px 35px;
    font-size: 1.2em;
    border: 2px solid #FCBC45;
}

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

/* Animation styles for JS */
.page-resources--hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.page-resources--fade-in {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 768px) {
    .page-resources {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller mobile header */
    }
    .page-resources__hero-section {
        padding: 40px 15px 60px; /* Adjusted padding for mobile hero */
    }
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__button {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-resources__introduction-section,
    .page-resources__articles-section,
    .page-resources__deep-dive-section,
    .page-resources__security-section,
    .page-resources__optimization-section,
    .page-resources__faq-section,
    .page-resources__cta-section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources__text-content {
        font-size: 0.95em;
    }
    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-image,
    .page-resources__content-image {
        max-width: 100%; /* Ensure images don't overflow */
        height: auto;
        min-width: 200px; /* Enforce min size */
        min-height: 200px; /* Enforce min size */
    }
    .page-resources__cta-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__button--register-large,
    .page-resources__button--view-promos {
        width: 80%;
        max-width: 350px;
        margin: 0 auto;
    }
}

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