/* Blog Carousel Styles */

.blog-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    min-height: 450px;
}

.carousel-slide {
    min-width: 100%;
    padding: 0;
    display: flex;
    gap: 30px;
}

.carousel-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 30px;
    width: 100%;
}

.carousel-post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.carousel-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.carousel-post-card:hover .post-excerpt-extended {
    opacity: 1;
    transform: translateY(0);
}

.post-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-post-card:hover .post-image {
    transform: scale(1.05);
}

.new-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff8c42;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.post-content {
    padding: 20px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #4c5fd5;
}

.post-title {
    color: #1a1f71;
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 600;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.post-excerpt-extended {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 31, 113, 0.95), rgba(26, 31, 113, 0.85));
    color: white;
    padding: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.5;
}

.post-link {
    color: #4c5fd5;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.post-link:hover {
    color: #1a1f71;
}

/* Navigation Controls */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 31, 113, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel-nav:hover {
    background: #1a1f71;
    transform: translateY(-50%) scale(1.1);
}

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

.carousel-nav-prev {
    left: 20px;
}

.carousel-nav-next {
    right: 20px;
}

/* Dots Navigation */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: #4c5fd5;
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #1a1f71;
    width: 30px;
    border-radius: 5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .carousel-posts-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav-prev {
        left: 10px;
    }
    
    .carousel-nav-next {
        right: 10px;
    }
    
    .post-image-container {
        height: 180px;
    }
    
    .carousel-track {
        min-height: auto;
    }
}