/* resources.css - Specific styles for the Resources Page */

/* Page Header / Hero Section */
.resources-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.pexels.com/photos/3762804/pexels-photo-3762804.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2') no-repeat center center / cover;
    background-position: center;
    background-size: cover;
    min-height: 50vh;
    padding-top: 90px;
    position: relative;
    overflow: hidden;
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.resources-hero-section h1 {
    font-size: 3.2rem;
    font-weight: 700;
        color: white !important;

}

.resources-hero-section p.lead {
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Resource Categories Section */
#resource-categories {
    background-color: var(--voci-light-blue);
}

.category-card {
    background-color: white;
    border: 1px solid #eee;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--voci-blue);
}

.category-icon {
    width: 90px;
    height: 90px;
    font-size: 2.8rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.category-card:hover .category-icon {
    transform: rotateY(15deg) scale(1.05); /* Slight rotation on hover */
}

.category-card h3 {
    font-size: 1.7rem;
}
.category-card p.small {
    font-size: 0.9rem;
    line-height: 1.5;
}


/* Articles, Podcasts, Videos Sections (share .resource-card styling from main.css) */
/* Specific overrides for resources on this page */

#articles, #podcasts, #videos {
    background-color: var(--voci-white); /* White background for these sections */
}
#podcasts {
    background-color: var(--voci-light-blue); /* Alternate background for podcasts section */
}

.resource-card .resource-img-wrapper {
    height: 220px; /* Consistent height for all resource images */
    overflow: hidden;
}
.resource-card .resource-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.resource-card:hover .resource-img-wrapper img {
    transform: scale(1.05);
}

.resource-card .resource-category {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resource-card .resource-meta {
    font-size: 0.85rem;
    color: var(--voci-gray-text);
}
.resource-card .resource-meta i {
    color: var(--voci-blue); /* Consistent icon color */
}

.resource-card h3 {
    font-size: 1.35rem;
    min-height: 50px; /* Ensure consistent title height */
    margin-bottom: 10px;
}
.resource-card h3 a {
    color: var(--voci-dark-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}
.resource-card h3 a:hover {
    color: var(--voci-blue);
}

.resource-card p.small {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--voci-gray-text);
}

.resource-card .resource-link {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--voci-blue); /* Link color matches text-voci-blue from main.css */
}
.resource-card .resource-link:hover {
    color: var(--voci-red); /* Hover color matches text-voci-red */
}


/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .resources-hero-section h1 {
        font-size: 2.5rem;
    }
    .resources-hero-section p.lead {
        font-size: 1rem;
    }
    .category-card {
        padding: 30px;
    }
    .category-icon {
        width: 70px;
        height: 70px;
        font-size: 2.2rem;
    }
    .category-card h3 {
        font-size: 1.5rem;
    }
    .resource-card .resource-img-wrapper {
        height: 180px;
    }
    .resource-card h3 {
        min-height: auto; /* Allow height to adjust */
        font-size: 1.25rem;
    }
    .resource-card p.small {
        font-size: 0.8rem;
    }
}

@media (max-width: 767.98px) {
    .resources-hero-section h1 {
        font-size: 2rem;
    }
    .resources-hero-section p.lead {
        font-size: 0.9rem;
    }
    .category-card {
        padding: 20px;
    }
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    .category-card h3 {
        font-size: 1.3rem;
    }
    .resource-card .resource-img-wrapper {
        height: 150px;
    }
    .resource-card h3 {
        font-size: 1.1rem;
    }
    .resource-card p.small {
        font-size: 0.75rem;
    }
    .resource-card .resource-meta, .resource-card .resource-link {
        font-size: 0.8rem;
    }
}
