/* style/resources.css */
.page-resources {
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources__hero-section {
    background-color: #000000; /* Main color for hero background */
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources__hero-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.page-resources__hero-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.6; /* Slightly dim the image to make text stand out */
    border-radius: 8px;
}

.page-resources__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF; /* White text for dark hero background */
    max-width: 800px;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

.page-resources__hero-button {
    display: inline-block;
    background-color: #FCBC45; /* Login color for CTA */
    color: #000000; /* Dark text on bright button */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-resources__hero-button:hover {
    background-color: #FFD700; /* Slightly brighter on hover */
}

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

.page-resources__introduction-section,
.page-resources__deep-dive-section,
.page-resources__cta-section {
    background-color: #FFFFFF; /* White background for content sections */
    padding: 20px 0;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #000000; /* Main color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources__sub-title {
    font-size: 1.8em;
    color: #000000;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-resources__articles-section {
    background-color: #F8F8F8; /* Light grey background for article section */
    padding: 60px 0;
}

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

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

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

.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.4em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

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

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

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

.page-resources__card-button {
    display: inline-block;
    background-color: #000000; /* Main color for buttons */
    color: #FFFFFF; /* White text on dark button */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.page-resources__card-button:hover {
    background-color: #333333;
}

.page-resources__button {
    display: inline-block;
    background-color: #FCBC45; /* Login color for general buttons */
    color: #000000; /* Dark text on bright button */
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

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

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

.page-resources__cta-section .page-resources__section-title {
    color: #FFFFFF;
}

.page-resources__cta-section .page-resources__text-content {
    color: #E0E0E0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-resources__cta-button {
    display: inline-block;
    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__cta-button--register {
    background-color: #FFFFFF; /* Register color */
    color: #000000;
}

.page-resources__cta-button--register:hover {
    background-color: #F0F0F0;
}

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

.page-resources__cta-button--login:hover {
    background-color: #FFD700;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__sub-title {
        font-size: 1.6em;
    }
    .page-resources__article-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 40px 15px;
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources__content-wrapper {
        padding: 20px 15px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__sub-title {
        font-size: 1.4em;
    }
    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-image {
        height: 220px;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__cta-button {
        width: 100%;
        max-width: 300px;
    }
    /* Mobile overflow prevention */
    .page-resources img {
        max-width: 100%;
        height: auto;
    }
    .page-resources {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.7em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__sub-title {
        font-size: 1.2em;
    }
    .page-resources__article-image {
        height: 180px;
    }
    .page-resources__card-title {
        font-size: 1.2em;
    }
    .page-resources__card-summary {
        font-size: 0.85em;
    }
    .page-resources__card-button {
        padding: 8px 15px;
        font-size: 0.8em;
    }
}