/* style/resources.css */
/* Main page container */
.page-resources {
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    background-color: #f8f8f8; /* Light background for content area */
    color: #333333; /* Dark text for readability on light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff; /* White text on dark hero overlay */
    padding: 0; /* No padding here, handled by content and image */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Minimum height for hero */
}

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

.page-resources__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area */
    display: block;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px; /* Internal padding for content */
    text-align: center;
    background: rgba(0, 51, 102, 0.8); /* Dark blue overlay for text readability */
    border-radius: 10px;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for title */
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-resources__hero-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #003366; /* Dark blue text on gold */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__hero-button:hover {
    background-color: #e6c200; /* Darker gold on hover */
    transform: translateY(-2px);
}

/* Section Titles */
.page-resources__section-title {
    font-size: 2.5em;
    color: #003366; /* Dark blue for section titles */
    text-align: center;
    margin: 60px 0 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-resources__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700; /* Gold underline */
    border-radius: 2px;
}

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

/* Featured Resources Section */
.page-resources__featured-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

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

.page-resources__resource-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
}

.page-resources__card-content {
    padding: 25px;
}

.page-resources__card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-resources__card-title a {
    color: #003366; /* Dark blue for card titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
    color: #FFD700; /* Gold on hover */
}

.page-resources__card-summary {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
    min-height: 80px; /* Ensure consistent height for summaries */
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-resources__card-button {
    display: inline-block;
    background-color: #003366; /* Dark blue button */
    color: #ffffff; /* White text on dark blue */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.page-resources__card-button:hover {
    background-color: #004488; /* Slightly lighter blue on hover */
}

/* Deep Dive Section */
.page-resources__deep-dive-section {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.page-resources__article-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.page-resources__article-heading {
    font-size: 2em;
    color: #003366; /* Dark blue for article headings */
    margin: 40px 0 20px;
    border-bottom: 2px solid #FFD700; /* Gold underline */
    padding-bottom: 10px;
}

.page-resources__article-subheading {
    font-size: 1.5em;
    color: #004488; /* Slightly lighter blue for subheadings */
    margin: 30px 0 15px;
}

.page-resources__article-content p {
    margin-bottom: 1em;
    color: #444444;
}

/* Call to Action Section */
.page-resources__cta-section {
    background-color: #003366; /* Dark blue background */
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
    margin-top: 80px;
}

.page-resources__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for CTA title */
}

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

.page-resources__cta-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #003366; /* Dark blue text on gold */
    padding: 18px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__cta-button:hover {
    background-color: #e6c200; /* Darker gold on hover */
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__resource-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-resources__article-heading {
        font-size: 1.8em;
    }
    .page-resources__article-subheading {
        font-size: 1.3em;
    }
    .page-resources__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    /* Mobile responsiveness for images to prevent overflow */
    .page-resources img {
        max-width: 100%;
        height: auto;
    }
    .page-resources__hero-section {
        min-height: 400px;
    }
    .page-resources__hero-content {
        padding: 40px 15px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-resources__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-resources__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin: 40px 0 30px;
    }
    .page-resources__featured-section,
    .page-resources__deep-dive-section {
        margin: 40px auto;
        padding: 0 15px;
    }
    .page-resources__resource-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }
    .page-resources__card-image {
        height: 180px; /* Adjust height for mobile cards */
    }
    .page-resources__card-content {
        padding: 20px;
    }
    .page-resources__card-title {
        font-size: 1.4em;
    }
    .page-resources__card-summary {
        font-size: 0.9em;
        min-height: unset; /* Allow summary height to be dynamic */
    }
    .page-resources__article-content {
        padding: 25px;
    }
    .page-resources__article-heading {
        font-size: 1.5em;
        margin: 30px 0 15px;
    }
    .page-resources__article-subheading {
        font-size: 1.2em;
        margin: 20px 0 10px;
    }
    .page-resources__cta-section {
        padding: 60px 15px;
        margin-top: 60px;
    }
    .page-resources__cta-title {
        font-size: 2em;
    }
    .page-resources__cta-description {
        font-size: 1.1em;
        margin-bottom: 30px;
    }
    .page-resources__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}