/* Carousel Specific Styles - Consistent with Theme */
.custom-carousel {
    position: relative;
    margin: 40px 0;
    overflow: hidden;
    font-family: var(--font-family-base);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.carousel-item {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0px 0px;
    box-sizing: border-box;
    background: var(--grid-post-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--dropdown-shadow);
}

/* Multi-column carousel */
.carousel-columns-2 .carousel-item {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
}

.carousel-columns-3 .carousel-item {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}

.carousel-columns-4 .carousel-item {
    flex: 0 0 calc(25% - 20px);
    max-width: calc(25% - 20px);
}

/* Navigation arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.carousel-arrow {
    pointer-events: all;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    margin: 0 10px;
    font-family: var(--font-family-buttons);
}

.carousel-arrow:hover {
    background: var(--primary-color);
}

/* Navigation dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Item content styles */
.item-image {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
}

.item-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.item-image:hover img {
    transform: scale(1.03);
}

.item-title {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-family: var(--font-family-entry-title);
    padding: 0 15px;
}

.item-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.item-title a:hover {
    color: var(--primary-color);
}

.item-meta {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 10px;
    padding: 0 15px;
    font-family: var(--font-family-entry-meta);
}

.item-excerpt {
    margin-bottom: 15px;
    line-height: 1.5;
    padding: 0 15px;
    font-family: var(--font-family-entry-content);
}

.item-readmore {
    margin: 15px;
}

.readmore-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-family-read-more);
}

.readmore-link:hover {
    text-decoration: underline;
}

.readmore-link::after {
    content: "→";
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.readmore-link:hover::after {
    transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .carousel-columns-3 .carousel-item,
    .carousel-columns-4 .carousel-item {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
    }
    
    .carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}
/* Add this to the existing carousel.css */
.carousel-item .item-image {
    position: relative;
    height: 200px;
    background-color: var(--code-bg);
}

.carousel-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-item .empty-thumbnail {
    height: 200px;
    width: 100%;
    background-color: var(--code-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-item .empty-thumbnail:before {
    content: "No Image";
    color: var(--light-text);
    font-size: 0.9rem;
    opacity: 0.7;
    font-family: var(--font-family-base);
}