/* NEWS CATEGORIES CSS */
.news-categories-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.news-category {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.news-category:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-category-header {
    background: #f8f9fa;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
}

.news-category-header .news-icon {
    width: 36px;
    height: 36px;
    background: #007bff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
}

.news-category-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    flex: 1;
}

.view-more-link {
    color: #007bff;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

.view-more-link:hover {
    color: #0056b3;
    text-decoration: none;
}

.news-articles-list {
    padding: 0;
}

.news-article-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.2s ease;
}

.news-article-item:last-child {
    border-bottom: none;
}

.news-article-item:hover {
    background: #f8f9fa;
}

.news-article-item h5 {
    margin: 0 0 6px 0;
    font-size: 13px;
    line-height: 1.4;
}

.news-article-item h5 a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
}

.news-article-item h5 a:hover {
    color: #007bff;
    text-decoration: none;
}

.news-article-item p {
    margin: 0;
    font-size: 11px;
    color: #718096;
    line-height: 1.3;
}

/* 响应式设计 */
@media only screen and (max-width: 1200px) {
    .news-categories-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media only screen and (max-width: 768px) {
    .news-categories-container {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }
    
    .news-category-header {
        padding: 15px;
    }
    
    .news-category-header .news-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
        margin-right: 10px;
    }
    
    .news-category-header h4 {
        font-size: 15px;
    }
    
    .news-article-item {
        padding: 10px 15px;
    }
    
    .news-article-item h5 {
        font-size: 12px;
    }
    
    .news-article-item p {
        font-size: 10px;
    }
}

@media only screen and (max-width: 480px) {
    .news-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .news-category-header .news-icon {
        margin-right: 6px;
    }
    
    .view-more-link {
        align-self: flex-end;
        font-size: 12px;
    }
}

/* BLOG CSS */
.blog-con{
    background: #ffffff;
}
.blog-box {
    gap: 30px;
    display: grid;
    grid-template-columns: 48.65% 48.65%;
}
.blog-box-item figure img {
    width: 255px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}
.blog-box-item {
    display: flex;
    border-radius: 10px;
    background: var(--secondary--color);
    border: 1px solid rgb(0 123 255 / 20%);
}
.post-details ul {
    gap: 40px;
    display: flex;
    margin-bottom: 19px;
}
.read-btn{
    margin-top: auto;
}
.post-details ul li {
    display: flex;
    font-size: 12px;
    line-height: 12px;
    align-items: center;
}
.post-details ul li img{
    padding-right: 5px;
}
.blog-box-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-box-content h4{
    margin-bottom: 10px;
    color: var(--primary--color);
}
.blog-box-content h4 a{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-decoration: none;
    color: var(--primary--color);
}
.blog-box-content h4 a:hover{
    color: var(--accent--color);
}
.read-btn a {
    font-size: 14px;
    line-height: 14px;
    display: inline-block;
    text-decoration: none;
    position: relative;
    color: var(--accent--color);
}
.read-btn a::after{
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    content: '';
    position: absolute;
    transition: ease-in-out 0.3s;
    background: var(--accent--color);
}
.read-btn a:hover::after{
    width: 100%;
}
.blog-box-content p{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-bottom: 16px;
}
.blog-lft-con {
    flex-direction: column;
}
.blog-box-item.blog-lft-con figure img {
    width: 100%;
    height: 312px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}
.blog-rt-con .blog-box-item{
    margin-bottom: 30px;
}
.blog-rt-con .blog-box-item:last-child{
    margin-bottom: 0;
}
/* BLOG CSS */
/* RESPONSIVE */
@media screen and (max-width: 1440px) {
}
@media screen and (max-width: 1199px) {
    .blog-box {
        gap: 25px;
    }
    .blog-box-item.blog-lft-con figure img {
        height: 281px;
    }
    .blog-box-item figure img {
        height: 215px;
        width: 200px;
    }
    .blog-box-content {
        padding: 20px;
    }
    .post-details ul {
        gap: 18px;
        margin-bottom: 10px;
    }
    .post-details ul li {
        font-size: 10px;
        line-height: 10px;
    }
    .blog-box-content h4 {
        margin-bottom: 6px;
    }
    .blog-box-content p{
        margin-bottom: 12px;
    }
}
@media screen and (max-width: 991px) {
    .blog-box {
        gap: 25px;
        grid-template-columns: 100%;
    }
    .blog-box-item.blog-lft-con figure img {
        width: 100%;
        height: 240px;
    }

}
@media screen and (max-width: 767px) {
    .blog-box-item.blog-lft-con figure img {
        width: 100%;
        height: 200px;
    }
    .blog-box {
        gap: 20px;
        grid-template-columns: 100%;
    }
    .blog-box-item figure img {
        height: 202px;
    }
}
@media screen and (max-width: 575px) {
    .read-btn a {
        font-size: 12px;
        line-height: 12px;
    }
    .blog-rt-con .blog-box-item {
        margin-bottom: 20px;
        flex-direction: column;
    }
    .blog-box-item.blog-lft-con figure img {
        height: 180px;
    }
    .blog-box-item figure img {
        height: 180px;
        width: 100%;
        border-radius: 10px 10px 0 0;
    }
}