
.unified-posts-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    direction: rtl;
}

.category-section {
    margin-bottom: 60px;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.category-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

.view-all-btn {
    background: #d4a574;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(212, 165, 116, 0.3);
}

.view-all-btn:hover {
    background: #b8956a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
}

.posts-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(4, 1fr);
}

.posts-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

.posts-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.posts-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.posts-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.post-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.post-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background-color: #f8f9fa;
    contain: layout style paint;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #d4a574;
}

.post-excerpt {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 15px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.read-more-link {
    color: #d4a574;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #b8956a;
}

.post-date {
    color: #95a5a6;
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .posts-grid[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .posts-grid[data-columns="4"],
    .posts-grid[data-columns="3"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .unified-posts-grid-container {
        padding: 0 15px;
    }
    
    .category-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        text-align: center;
    }
    
    .category-title {
        font-size: 26px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-title {
        font-size: 18px;
    }
    
    .category-section {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .category-title {
        font-size: 22px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .post-title {
        font-size: 16px;
    }
    
    .view-all-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .post-item,
    .post-thumbnail img,
    .view-all-btn,
    .read-more-link {
        transition: none;
    }
    
    .post-item:hover {
        transform: none;
    }
    
    .post-item:hover .post-thumbnail img {
        transform: none;
    }
}
