/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #FFFFFF; /* Page background */
    color: #000000; /* Dark text for contrast on light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Container for consistent spacing */
.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-resources__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden; /* To contain image if it overflows slightly */
    min-height: 450px; /* Ensure hero section has a minimum height */
    justify-content: center;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-bottom: 40px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    color: #000000;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

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

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    opacity: 0.15; /* Subtle background effect */
    transition: transform 0.3s ease;
}

.page-resources__hero-image:hover {
    transform: scale(1.03);
}

/* Section Titles */
.page-resources__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__section-subtitle {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
}

/* Text Blocks */
.page-resources__text-block {
    font-size: 1.1em;
    color: #333333;
    margin-bottom: 20px;
    text-align: justify;
}

.page-resources__highlight {
    font-weight: bold;
    color: #000000;
}

/* Introduction Section */
.page-resources__introduction-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

/* Article Grid */
.page-resources__articles-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: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    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 6px 16px rgba(0, 0, 0, 0.1);
}

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

.page-resources__article-content {
    padding: 25px;
    flex-grow: 1; /* Allows content to take available space */
    display: flex;
    flex-direction: column;
}

.page-resources__article-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-resources__article-title a:hover {
    color: #FCBC45; /* Highlight on hover */
}

.page-resources__article-category {
    font-size: 0.9em;
    color: #777777;
    margin-bottom: 15px;
}

.page-resources__article-summary {
    font-size: 1em;
    color: #444444;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

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

.page-resources__cta-section .page-resources__section-title {
    color: #FFFFFF; /* White title on dark background */
}

.page-resources__cta-section .page-resources__text-block {
    color: #f0f0f0; /* Slightly off-white text */
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Buttons */
.page-resources__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, border-color 0.3s ease;
    cursor: pointer;
    border: none;
}

.page-resources__button--register {
    background-color: #FFFFFF;
    color: #000000; /* Dark text for contrast on white background */
    border: 2px solid #000000;
    margin-top: 20px;
}

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

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

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

.page-resources__button--play-now {
    background-color: #FCBC45;
    color: #000000; /* Dark text for contrast on yellow background */
    border: 2px solid #FCBC45;
    margin-top: 20px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-resources__hero-title {
        font-size: 2.5em;
    }

    .page-resources__hero-description {
        font-size: 1em;
    }

    .page-resources__section-title {
        font-size: 2em;
    }

    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }

    .page-resources__article-image {
        height: 180px;
    }
    
    /* Mobile content image constraint */
    .page-resources img {
        max-width: 100%;
        height: auto;
    }
    .page-resources__hero-image {
        max-width: none; /* Hero image might be wider than 100% to cover, then object-fit takes over */
        height: 100%;
    }
}

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

    .page-resources__hero-description {
        font-size: 0.9em;
    }

    .page-resources__button {
        padding: 12px 25px;
        font-size: 1em;
    }
}