/* Posts Carousel Block Styles - New Design */
.posts-carousel-block {
    position: relative;
    padding: 0;
    margin: 40px 0;
}

/* 分類標題 */
.carousel-header {
    margin-bottom: 5px;
}

.carousel-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #333;
    display: inline-block;
}

/* 導航箭頭 */
.carousel-navigation {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.carousel-arrow {

    background: transparent!important;
    border: 0!important;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    color: #333;
}

.carousel-arrow:hover {
    color: #ccc;
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
}

/* Swiper 容器 */
.posts-carousel-block .swiper {
    padding: 0;
    margin: 0;
}

.posts-carousel-block .swiper-slide {
    height: auto;

}

/* 文章卡片 */
.posts-carousel-block .post-card {
    background: #f5f5f5;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
		border-radius: 15px;
}



/* 縮圖容器 */
.posts-carousel-block .post-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 比例 */
    overflow: hidden;
    background: #e0e0e0;
}

.posts-carousel-block .post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 左上角標籤 */
.posts-carousel-block .post-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffffff;
    color: #509687;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 50rem;
    font-weight: 500;
}

/* 內容區域 */
.posts-carousel-block .post-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}

/* Brands */
.posts-carousel-block .post-brands {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

/* 標題 */
.posts-carousel-block .post-title {
    margin: 0 0 10px;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #333;
    font-weight: 600;
}

/* 摘要 */
.posts-carousel-block .post-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* Coming Soon 卡片 */
.carousel-coming-soon {
    margin-top: 20px;
}

.coming-soon-card {
    background: #f2f3ee;
    padding: 80px 40px;
    text-align: center;
    border-radius: 15px;
}

.coming-soon-card span {
    font-size: 1.5rem;
    color: #8e8e8b;
    padding: 15px 40px;
    display: inline-block;
}

/* 隱藏 Swiper 默認導航和分頁 */
.posts-carousel-block .swiper-button-prev,
.posts-carousel-block .swiper-button-next,
.posts-carousel-block .swiper-pagination {
    display: none !important;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .carousel-category-title {
        font-size: 1.3rem;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
    }
    
    .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .posts-carousel-block .post-title {
        font-size: 1rem;
    }
    
    .posts-carousel-block .post-content {
        padding: 15px;
    }
    
    .posts-carousel-block .post-tag {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .carousel-navigation {
        gap: 10px;
        margin: 15px 0;
    }
    
    .posts-carousel-block .post-content {
        padding: 12px;
    }
    
    .posts-carousel-block .post-tag {
        top: 10px;
    }
}
