﻿.wmc-blog-section {
    background-color: #f8f8f8;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 5%;
    padding: 2rem 1rem;
}

.section-blog {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.wmc-blog-header {
    margin-bottom: 2rem;
    text-align: center;
}

.blog-title {
    color: black;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.wmc-blog-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.wmc-blog-grid {
    display: flex;
    transition: transform 0.3s ease;
}

.wmc-blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    flex: 0 0 calc(33.333% - 1.33rem);
    margin-right: 2rem;
}

    .wmc-blog-card:hover {
        transform: translateY(-4px);
    }

.wmc-blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

    .wmc-blog-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.wmc-blog-content {
    padding: 1.5rem;
}

.wmc-blog-date {
    display: block;
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.wmc-blog-title {
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.wmc-blog-excerpt {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 24px;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

    .carousel-arrow:hover {
        background: rgba(0, 0, 0, 0.5);
    }

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }

/* Responsive Design */
@media (max-width: 1200px) {
    .wmc-blog-card {
        flex: 0 0 calc(50% - 1rem);
        margin-right: 1rem;
    }
}

@media (max-width: 768px) {
    .wmc-blog-section {
        padding: 1.5rem 0.5rem;
    }

    .wmc-blog-card {
        flex: 0 0 100%;
        margin-right: 0;
    }

    .blog-title {
        font-size: 1.25rem;
    }

    .wmc-blog-title {
        font-size: 1.1rem;
    }

    .wmc-blog-excerpt {
        font-size: 0.8rem;
    }

    .carousel-arrow {
        font-size: 20px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .wmc-blog-section {
        padding: 1rem 0.25rem;
    }

    .wmc-blog-image {
        height: 150px;
    }

    .wmc-blog-content {
        padding: 1rem;
    }

    .blog-title {
        font-size: 1.1rem;
    }

    .wmc-blog-title {
        font-size: 1rem;
    }

    .wmc-blog-excerpt {
        -webkit-line-clamp: 2;
    }

    .carousel-arrow {
        font-size: 18px;
        padding: 2px 6px;
    }
}
