/* Styles for Blog Page */

/* Category filter tabs */
.category-filter {
    margin: 20px 0;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.cat-tab {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.cat-tab:hover {
    background-color: #e0e0e0;
    color: #004c39;
}

.cat-tab.active {
    background-color: #007c5f;
    color: #fff;
}

/* Priority categories */
.priority-category {
    font-weight: 600;
    color: #007c5f;
}

/* Blog loop styles */
.blog-loop {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    background-color: #fff;
}

.blog-loop:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.blog-loop-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.blog-loop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-loop:hover .blog-loop-image img {
    transform: scale(1.05);
}

.blog-loop-content {
    padding: 20px;
}

.blog-post-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.4;
}

.blog-post-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-title a:hover {
    color: #007c5f;
}

.blog-post-meta {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.blog-post-meta_date {
    margin-right: 15px;
}

.blog-post-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-loop-readmore {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #007c5f;
    text-decoration: none;
    padding: 8px 0;
}

.blog-loop-readmore_icon {
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.blog-loop-readmore:hover .blog-loop-readmore_icon {
    transform: translateX(5px);
}

/* Sidebar styles */
.sidebar-blog {
    padding-left: 20px;
}

.sidebarblog-title h2 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007c5f !important;
    position: relative;
}

.item-article {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.post-content-title {
    font-size: 14px;
    margin: 5px 0;
    line-height: 1.5;
}

.post-content-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.post-content-title a:hover {
    color: #007c5f;
}

.post-content-cate-blog a {
    font-size: 12px;
    color: #007c5f;
    text-decoration: none;
}

.menuList-links {
    list-style: none;
    padding-left: 0;
}

.menuList-links li {
    margin-bottom: 10px;
}

.menuList-links a {
    display: block;
    padding: 8px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: color 0.2s;
}

.menuList-links a:hover {
    color: #007c5f;
}

/* Pagination */
#pagination {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
}

#pagination .page-numbers {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

#pagination .page-numbers.current {
    background-color: #007c5f;
    color: #fff;
    border-color: #007c5f;
}

#pagination .page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar-blog {
        padding-left: 0;
        margin-top: 40px;
    }
    
    .category-tabs {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }
}

@media (max-width: 767px) {
    .blog-loop-image {
        height: 180px;
    }
}