/* --- News Blog --- */
.blog-section {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.blog-card img {
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 4px;
}

.blog-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.blog-desc {
    font-size: 13px;
    color: #777;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
}

.blog-link {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-link:hover {
    gap: 8px;
}

/* Tablet and below (max-width: 992px) */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
}/* --- News List Page Styles --- */
.news-item .news-img {
    width: 280px;
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.news-item .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-item:hover .news-img img {
    transform: scale(1.05);
}

.news-title a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--primary-color) !important;
}

.category-list-simple a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .news-item .news-img {
        width: 100%;
        height: 200px;
    }
}

/* Sidebar Two-level Categories */
.category-sub-list {
    display: none;
    padding-left: 20px;
    background-color: #fcfcfc;
    border-radius: 4px;
}

.has-children.open .category-sub-list {
    display: block;
    animation: fadeIn 0.3s ease;
}

.category-sub-list li a {
    color: #666;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.category-sub-list li:last-child a {
    border-bottom: none;
}

.has-children .category-parent i {
    transition: transform 0.3s ease;
}

.has-children.open .category-parent i {
    transform: rotate(180deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- News Detail Page Styles --- */
.news-detail-container {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.news-meta {
    font-size: 13px;
    color: #888;
}

.news-meta i {
    color: #bbb;
}

.news-body p {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.8;
}

