.filterable-posts {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.filterable-posts__categories {
    margin-bottom: 30px;
}

.filterable-posts__category-select {
    width: 100%;
    max-width: 300px;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filterable-posts__category-select:hover,
.filterable-posts__category-select:focus {
    border-color: #999;
    outline: none;
}

.filterable-posts__main-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    min-height: 200px;
}

.filterable-posts__main-posts.loading {
    opacity: 0.5;
    pointer-events: none;
}

.filterable-posts__main-posts.loading::after {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.filterable-posts__items {
    background: #fff;
    /* border: 1px solid #e0e0e0; */
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* .filterable-posts__items:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
} */

.filterable-posts__featured-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.filterable-posts__featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.filterable-posts__items:hover .filterable-posts__featured-img img {
    transform: scale(1.05);
}

.filterable-posts__title {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 20px 10px;
    line-height: 1.4;
    color: #333;
    text-align: center;
}

.filterable-posts__excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0 20px 15px;
    flex-grow: 1;
    text-align: center;
}

.filterable-posts__link {
    display: inline-block;
    margin: 0 20px 25px;
    color: #965926;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    align-self: center;
    text-align: center;
}
.filterable-posts__link:hover,
.filterable-posts__service-link:hover {
    color: #000000;
}

.filterable-posts__service-link {
    display: block;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.filterable-posts__load-more {
    text-align: center;
    margin-top: 30px;
}

.filterable-posts__load-more-btn {
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background-color: #965926;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.filterable-posts__load-more-btn:hover {
    background-color: #000000;
    /* transform: translateY(-2px); */
}

.filterable-posts__load-more-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Responsive styles */
@media (max-width: 768px) {
    .filterable-posts__main-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filterable-posts__category-select {
        max-width: 100%;
    }
    
    .filterable-posts__title {
        font-size: 18px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .filterable-posts__main-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}