.blog-content {
    position: relative;
    overflow: hidden;
    padding: 16px 0;
    max-width: 100%;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.blog-post {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
    /* Prevent shrinking */
    flex-shrink: 0;
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.blog-post__wrapper {
    padding: 16px 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.carousel-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1A237E;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.carousel-button:hover:not(:disabled) {
    background: #283593;
}

.carousel-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background: #1A237E;
}

@media (max-width: 992px) {
    .blog-post {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .blog-post {
        flex: 0 0 100%;
    }
    
    .carousel-container {
        padding: 0 20px;
    }
    
    .blog-post img {
        height: 180px;
    }
}