/* Resources Directory Styles */

.resources-directory {
    max-width: 100%;
    margin: 0 auto;
}

/* Search Input - uses existing input styles from theme */
#resources-search {
    width: 100%;
    margin-bottom: 20px;
}

/* Category Filter Buttons - styled like your theme's existing buttons */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category-btn {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #002f6c;
    border: 2px solid #8B969D;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    font-family: proxima-nova, sans-serif;
}

.category-btn:hover {
    background: #e8e8e8;
    border-color: #00833f;
}

.category-btn.active {
    background: #002f6c;
    color: #fff;
    border-color: #002f6c;
}

.category-btn:focus {
    outline: 2px solid #009a44;
    outline-offset: 2px;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* Resource Card - styled like your theme's .panel class */
.resource-card {
    background: #fff;
    border: 1px solid #d9dbdc;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0px 2px 5px rgba(0,0,0,.15);
    transition: box-shadow 250ms;
}

.resource-card:hover {
    box-shadow: 0px 4px 15px rgba(0,0,0,.25);
}

.resource-header {
    margin-bottom: 12px;
}

.resource-card .resource-header .title {
    margin: 0 0 10px 0;
    font-family: proxima-nova, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #002f6c;
	display: block;
}

.resource-card .resource-header .title a {
    color: #002f6c;
    text-decoration: none;
    transition: color 0.3s;
}

.resource-card .resource-header .title a:hover,
.resource-card .resource-header .title a:focus {
    color: #00833f;
    text-decoration: underline;
}

/* Badges - styled to match your theme's color scheme */
.resource-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    font-family: proxima-nova, sans-serif;
}

.badge-category {
    background: #002f6c;
    color: #fff;
}

.badge-subcategory {
    background: #f0f0f0;
    color: #002f6c;
    border: 1px solid #d9dbdc;
}

/* Description */
.resource-description {
    margin: 12px 0 0 0;
    color: #3a3532;
    font-size: 15px;
    line-height: 1.5em;
    font-family: proxima-nova, sans-serif;
}

/* Loading and Error States */
.loading,
.error,
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #3a3532;
    font-size: 16px;
}

.error {
    color: #E0251B;
}

/* List Info - uses existing .list-info styles from theme */
.list-info.off {
    display: none;
}

/* Responsive Design */
@media (max-width: 960px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .category-filters {
        flex-direction: column;
    }
    
    .category-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 720px) {
    .resource-card {
        padding: 15px;
    }
    
    .resource-card h3 {
        font-size: 16px;
    }
    
    .resource-description {
        font-size: 14px;
    }
}