/* Resources Page Styles */

/* Header Styles */
.page-header {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--red);
}

nav ul li a.active {
    color: var(--red);
    font-weight: bold;
}

/* Resources Hero */
.resources-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/library.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
}

.resources-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.resources-hero p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Resources Sections */
.resources-section {
    padding: 80px 20px;
}

.resources-section h2 {
    margin-bottom: 50px;
}

.alt-bg {
    background-color: var(--light-gray);
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.2rem;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.resource-item {
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.resource-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.resource-image {
    height: 200px;
    overflow: hidden;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.resource-item:hover .resource-image img {
    transform: scale(1.05);
}

.resource-content {
    padding: 20px;
}

.resource-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.author, .provider, .location {
    color: var(--red);
    font-weight: bold;
    margin-bottom: 10px;
}

.description {
    color: #555;
    margin-bottom: 15px;
}

.resource-link {
    color: var(--red);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: color 0.3s;
}

.resource-link:hover {
    color: #a30f0f;
}

/* Articles List */
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.resource-item.article {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    padding: 25px;
}

.resource-item.article h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.source {
    color: #555;
    font-style: italic;
    margin-bottom: 10px;
}

/* Downloads Section */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.download-item {
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.download-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.download-icon img {
    width: 100%;
}

.download-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.download-content p {
    margin-bottom: 20px;
    color: #555;
}

.download-btn {
    padding: 10px 20px;
    font-size: 1rem;
}

/* Get Involved Section */
.get-involved {
    background-color: var(--white);
    text-align: center;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.action-item {
    padding: 20px;
    background-color: var(--off-white);
    border-radius: 5px;
    transition: transform 0.3s;
}

.action-item:hover {
    transform: translateY(-5px);
}

.action-icon {
    margin: 0 auto 15px;
}

.action-icon img {
    width: 100%;
}

.action-item h3 {
    margin-bottom: 10px;
    color: var(--red);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-links h4 {
    color: var(--red);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .resources-grid, 
    .downloads-grid,
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .resources-hero h1 {
        font-size: 2.5rem;
    }
    
    .resources-hero p {
        font-size: 1.2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-logo, .footer-links {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .page-header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .resources-grid, 
    .downloads-grid,
    .actions-grid {
        grid-template-columns: 1fr;
    }
}