/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css (#121212) */
}

/* Sections */
.page-resources__section {
    padding: 60px 0;
    text-align: center;
    background-color: #1a1a1a; /* Slightly lighter dark background for sections */
}

.page-resources__dark-section {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Increased height for visual impact */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

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

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-resources__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 800px;
    padding: 20px;
}

.page-resources__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
}

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

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

/* Section Titles */
.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-resources__introduction-section .page-resources__section-title {
    color: #ffffff;
}

.page-resources__section-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__section-text a {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: none;
}

.page-resources__section-text a:hover {
    text-decoration: underline;
}

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

.page-resources__grid--two-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__grid--three-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}


/* Cards */
.page-resources__card {
    background-color: #2a2a2a; /* Slightly lighter than section background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}