/**
* 2018-2025 ICC Digital
*
*  @author    ICC Digital <contact@icc-digital.fr>
*  @copyright 2018-2025 ICC Digital
*  @license   https://www.icc-digital.fr  Proprietary
*/

.icc-leoblog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.icc-blog-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.icc-blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.icc-blog-image {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
}

.icc-blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.icc-blog-item:hover .icc-blog-image img {
    transform: scale(1.05);
}

.icc-blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    justify-content: space-between;
}

.icc-blog-category {
    display: inline-block;
    padding: 5px 12px;
    background: #007bff;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 10px;
    text-decoration: none;
}

.icc-blog-category:hover {
    background: #0056b3;
    color: #fff;
}

.icc-blog-title {
    margin: 10px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.icc-blog-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icc-blog-title a:hover {
    color: #009ee2;
}

.icc-blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    font-size: 13px;
    color: #666;
}

.icc-blog-author,
.icc-blog-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.icc-blog-author a {
    color: #666;
    text-decoration: none;
}

.icc-blog-author a:hover {
    color: #007bff;
}

.icc-blog-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.icc-blog-readmore {
    display: inline-block;
    padding: 8px 20px;
    background: #009ee2;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.icc-blog-readmore:hover {
    background: #0056b3;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .icc-leoblog-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .icc-leoblog-list {
        grid-template-columns: repeat(2, 1fr);
    }
}