/* Post Carousel Structure */
.my-post-carousel-wrapper {
    position: relative;
    --slide-gap: 30px;
}

.my-post-carousel {
    width: 100%;
    position: relative;
}

.my-post-carousel .swiper-wrapper {
    box-sizing: border-box;
}

.my-post-carousel .swiper-slide {
    height: auto;
}

/* Card Structure */
.my-post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.my-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.my-post-thumb {
    position: relative;
    overflow: hidden;
}

.my-post-thumb img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.my-post-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 25px;
}

.my-post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #888;
}

.my-post-meta i {
    margin-right: 5px;
    color: #ccc;
}

.my-post-title {
    margin: 0 0 15px;
    font-size: 20px;
    line-height: 1.4;
}

.my-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.my-post-title a:hover {
    color: #007cba;
}

.my-post-excerpt {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.my-post-btn {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    align-self: flex-start;
}

.my-post-btn i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.my-post-btn:hover i {
    transform: translateX(5px);
}

.my-post-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #222;
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 2;
}

/* Navigation */
.my-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.my-carousel-prev {
    left: 15px;
}

.my-carousel-next {
    right: 15px;
}

.my-carousel-arrow:hover {
    background: #222;
    color: #fff;
}

.swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .my-post-carousel-wrapper {
        padding: 0 15px;
    }
    
    .my-carousel-prev {
        left: 5px;
    }
    
    .my-carousel-next {
        right: 5px;
    }
}

@media (max-width: 767px) {
    .my-post-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .my-carousel-arrow {
        width: 35px;
        height: 35px;
    }
}