/* Blog Styles */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.blog-image {
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
 
}

.blog-meta span {
    display: flex;
    align-items: center;
}

.blog-meta svg {
    margin-right: 0.5rem;
    color: var(--banana-leaf);
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-title a {
    color: #333;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--banana-leaf);
}

.blog-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: var(--banana-leaf);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--banana-leaf-dark);
    gap: 0.8rem;
}

.blog-header .blog-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.blog-text {
    line-height: 1.8;
    color: #444;
}


.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: rgba(30,126,52,0.1);
    color: var(--banana-leaf);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--banana-leaf);
    color: #fff;
}

.blog-share {
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Blog Sidebar Styles */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--banana-leaf);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(30, 126, 52, 0.1);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background: var(--banana-leaf);
}

/* Search Widget */
.search-input-group {
    position: relative;
}

.search-input-group input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid rgba(30, 126, 52, 0.1);
    border-radius: 50px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-input-group input:focus {
    border-color: var(--banana-leaf);
    outline: none;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--banana-leaf);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: var(--banana-leaf-dark);
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 10px;
}

.category-item svg {
    margin-right: 10px;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(30, 126, 52, 0.05);
    border-radius: 8px;
    color: #444;
    transition: all 0.3s ease;
}

.category-link:hover,
.category-link.active {
    background: var(--banana-leaf);
    color: white;
    transform: translateX(5px);
}

.category-link i {
    margin-right: 10px;
    color: var(--banana-leaf);
}

.category-link:hover i,
.category-link.active i {
    color: white;
}

.category-link>span {
    margin-right: 10px;
}

.post-count {
    font-size: 13px;
    opacity: 0.8;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    padding: 8px 15px;
    background: rgba(30, 126, 52, 0.05);
    border-radius: 20px;
    color: #444;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: var(--banana-leaf);
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .blog-sidebar {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .sidebar-widget {
        padding: 20px;
    }
    
    .widget-title {
        font-size: 18px;
    }
    
    .category-link {
        padding: 10px;
    }
}

/* Recent Posts Widget Styles */
.recent-posts-widget .widget-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.recent-post-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.post-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.post-thumb-link:hover {
    transform: scale(1.05);
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.post-info {
    flex: 1;
    min-width: 0; /* Để tránh overflow text */
}

.post-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.post-title a {
    color: #333;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-title a:hover {
    color: var(--banana-leaf);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-item svg {
    color: var(--banana-leaf);
}

/* Responsive Styles */
@media (max-width: 576px) {
    .post-thumb {
        width: 80px;
        height: 60px;
    }

    .post-title {
        font-size: 14px;
    }

    .post-meta {
        font-size: 12px;
    }
}