/* --- Resource Hub Filters --- */
.resource-hub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f5f7f9;
    border-radius: 8px;
}

.resource-hub-filters .filter-item {
    flex-grow: 1;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #000;
    z-index: 1;
    pointer-events: none;
    line-height: 1;
}

.resource-hub-filters input[type="search"] {
    width: 100%;
    padding: 12px 12px 12px 45px!important;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background-color: #fff;
    transition: border-color 0.2s ease-in-out;
}

.resource-hub-filters input[type="search"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px rgba(0, 115, 170, 0.1);
}

.resource-hub-filters select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* --- Resource Hub Grid --- */
#resource-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    transition: opacity 0.3s ease-in-out;
}

#resource-hub-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

.no-resources-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 1.2em;
    color: #666;
}

/* --- Resource Card --- */
.resource-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.resource-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.resource-card-link:hover,
.resource-card-link:focus {
    text-decoration: none;
    color: inherit;
}

.resource-card-image {
    position: relative;
    height: 180px;
    background-color: #e0e0e0;
}

.resource-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-card-image .placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ececec 0%, #f5f5f5 100%);
}

.resource-type-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.resource-type-label {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 115, 170, 0.85);
    color: white;
    padding: 5px 10px;
    font-size: 0.75em;
    font-weight: 600;
    border-bottom-right-radius: 8px;
}

.resource-card-content {
    padding: 20px;
}

.resource-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    line-height: 1.4;
}

.resource-card-meta span {
    display: inline-block;
    background-color: #eef2f5;
    color: #555;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
}

.resource-card-excerpt {
    margin-top: 12px;
    padding: 0 20px 20px 20px;
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
}

.resource-card-excerpt p {
    margin: 0;
}

/* --- Single Resource Page --- */
.wrh-single-resource .entry-header {
    margin-bottom: 2em;
    border-bottom: 1px solid #eee;
    padding-bottom: 1em;
}

.wrh-single-resource .back-to-hub-link {
    display: inline-block;
    margin-top: 1em;
    font-size: 0.9em;
    text-decoration: none;
    color: #0073aa;
}
.wrh-single-resource .back-to-hub-link:hover {
    text-decoration: underline;
}

.wrh-single-resource .post-thumbnail {
    margin-bottom: 2em;
}
.wrh-single-resource .post-thumbnail img {
    border-radius: 8px;
}

.wrh-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin: 20px 0;
    transition: background-color 0.2s;
}

.wrh-button:hover {
    background-color: #005a87;
    color: #fff;
}

.wrh-event-details {
    background: #f5f7f9;
    padding: 20px;
    border-left: 4px solid #0073aa;
    margin: 20px 0;
}

.wrh-event-details p {
    margin: 0.5em 0;
}

.similar-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 1em;
}

.similar-resource-item {
    text-decoration: none;
    color: inherit;
}
.similar-resource-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}
.similar-resource-item h4 {
    margin: 0;
    font-size: 1em;
}