/* custom-article-list-3/style.css */

.custom-article-list-3 {
    position: relative;
    margin: 0 auto 40px;
    overflow: hidden;
    width: 100%;
}

.custom-article-list-3 .slider-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.custom-article-list-3 .slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.custom-article-list-3 .slider-item {
    display: grid;
    gap: 30px;
}

.custom-article-list-3 .category-post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.custom-article-list-3 .post-thumbnail {
    height: 300px;
    overflow: hidden;
}

.custom-article-list-3 .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.custom-article-list-3 .post-thumbnail:hover img {
    transform: scale(1.02);
}

.custom-article-list-3 .article-item {
    display: flex;
    flex-direction: column;
}

.custom-article-list-3 .article-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.custom-article-list-3 .article-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-article-list-3 .article-title a {
    color: #333;
    text-decoration: none;
}

.custom-article-list-3 .article-title a:hover {
    color: #951f23;
}

.custom-article-list-3 .article-excerpt {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

.custom-article-list-3 .article-item-1 {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
}

.custom-article-list-3 .article-meta-1 {
    align-self: flex-end; /* 右对齐 */
    width: auto;
    margin-bottom: 8px;
}

.custom-article-list-3 .article-content-1 {
    flex: 1;
}

.custom-article-list-3 .article-title-1 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: bold;
}

.custom-article-list-3 .article-excerpt-1 {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* 分页圆点 */
.slider-pagination {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination-dot.active {
    background-color: #B58E67;
}


@media (max-width: 768px) {
    .custom-article-list-3 {
        padding: 0 30px;
    }

    .custom-article-list-3 .post-thumbnail {
        height: 150px;
    }

    .custom-article-list-3 .slider-item {
        flex: 0 0 100%; /* 超小屏幕显示1个 */
    }

    .custom-article-list-3 .slider-nav {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .post-thumbnail {
        height: 150px;
    }
}

