.grid-post-wrapper {
    display: grid;
    gap: 30px;
    max-width: 100%;
    grid-template-columns: repeat(3, 1fr);
}

.grid-post-item {
    position: relative;
    padding: 15px;
    box-shadow: 0 0 9px 8px #f5f5f5;
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.grid-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.grid-post-item a {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.grid-post-item a img,
.grid-post-item .post-thumbnail {
    width: 100%;
    max-width: 100%;
    height: auto;
    transform: scale(1);
    transition: all 0.4s ease;
    border-radius: 6px;
}

.grid-post-item a:hover > img,
.grid-post-item a:hover > .post-thumbnail {
    transform: scale(1.1);
}

.grid-post-item .post-date {
    position: absolute;
    color: #222;
    background: #fff;
    padding: 6px 17px;
    font-size: 14px;
    font-weight: 600;
    right: 20px;
    bottom: 20px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.grid-post-item .post-content {
    padding: 20px 0 10px;
}

.grid-post-item .post-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.grid-post-item .post-categories a {
    color: #000;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.grid-post-item .post-categories a:hover {
    color: #F01E2C;
}

.grid-post-item .post-categories .separator {
    color: #ccc;
}

.grid-post-item .post-content .post-title {
    margin-bottom: 20px;
    margin-top: 0;
    line-height: 1.3;
}

.grid-post-item .post-content .post-title a {
    color: #222;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.grid-post-item .post-content .post-title a:hover {
    color: #F01E2C;
}

.grid-post-item .post-content .post-excerpt {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.grid-post-item .post-content .read-more-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.grid-post-item .post-content .read-more-link a {
    text-decoration: none;
    color: #222;
    transition: all 0.4s ease;
    font-size: 14px;
    font-weight: 500;
    margin-left: 0;
}

.grid-post-item .post-content .read-more-link svg {
    width: 16px;
    height: 16px;
    fill: #222;
    transition: all 0.4s ease;
}

.grid-post-item .post-content .read-more-link:hover > a {
    margin-left: 10px;
    color: #F01E2C;
}

.grid-post-item .post-content .read-more-link:hover > svg {
    fill: #F01E2C;
    transform: translateX(5px);
}

.blog-pagination {
    margin-top: 40px;
    text-align: center;
}

.blog-pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-pagination .page-numbers li {
    margin: 0;
}

.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    color: #222;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.blog-pagination .page-numbers a:hover,
.blog-pagination .page-numbers .current {
    background: #F01E2C;
    color: #fff;
    border-color: #F01E2C;
}

.blog-pagination .page-numbers .prev,
.blog-pagination .page-numbers .next {
    font-weight: 600;
}

@media (max-width: 1024px) {
    .grid-post-wrapper {
        gap: 25px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-post-item .post-content .post-title a {
        font-size: 16px;
    }
    
    .grid-post-item .post-content .post-excerpt {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .grid-post-wrapper {
        gap: 20px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-post-item {
        padding: 12px;
    }
    
    .grid-post-item .post-content {
        padding: 15px 0 8px;
    }
    
    .grid-post-item .post-content .post-title {
        margin-bottom: 15px;
    }
    
    .grid-post-item .post-content .post-title a {
        font-size: 15px;
    }
    
    .grid-post-item .post-content .post-excerpt {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .grid-post-item .post-date {
        font-size: 12px;
        padding: 4px 12px;
        right: 15px;
        bottom: 15px;
    }
    
    .blog-pagination .page-numbers a,
    .blog-pagination .page-numbers span {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 35px;
    }
}

@media (max-width: 480px) {
    .grid-post-wrapper {
        gap: 15px;
        grid-template-columns: repeat(1, 1fr);
    }
    
    .grid-post-item {
        padding: 10px;
    }
    
    .grid-post-item .post-content {
        padding: 12px 0 6px;
    }
    
    .grid-post-item .post-content .post-title a {
        font-size: 14px;
    }
    
    .grid-post-item .post-content .post-excerpt {
        font-size: 11px;
        margin-bottom: 12px;
    }
    
    .grid-post-item .post-categories {
        margin-bottom: 12px;
    }
    
    .grid-post-item .post-categories a {
        font-size: 11px;
    }
    
    .blog-pagination .page-numbers {
        gap: 8px;
    }
    
    .blog-pagination .page-numbers a,
    .blog-pagination .page-numbers span {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 30px;
    }
}

